kidders n00b
Joined: 06 Jan 2005 Posts: 14 Location: Dublin, IE
|
Posted: Fri May 05, 2006 3:07 pm Post subject: gpg --send-keys (GnuPG and LDAP) |
|
|
I've started learning how to store PGP keys on an LDAP server, but it hasn't taken me long to hit a brick wall I'm having real trouble even figuring out what I'm doing wrong, never mind solving it, partly because there are so many little variations in behaviour and config syntax between versions of OpenLDAP and GnuPG.
I'm using OpenLDAP 2.2.28-r3 and GnuPG 1.4.2.2. This is what I've done so far ...
I found a PGP schema and added it to my slapd.conf:
Code: | include /etc/openldap/schema/pgp-keyserver.schema |
I created somewhere to put keys in a pre-existing database:
Code: | dn: ou=PGP Keys,dc=EXAMPLE,dc=COM
objectClass: organizationalUnit
ou: PGP Keys
dn: cn=PGPServerInfo,ou=PGP Keys,dc=EXAMPLE,dc=COM
cn: PGPServerInfo
objectClass: pgpServerInfo |
Then I ran into trouble with gpg --send-keys. My ~/.gnupg/gpg.conf contains ...
Code: | keyserver ldap://ldap.EXAMPLE.COM
keyserver-options basedn="ou=PGP Keys,dc=EXAMPLE,dc=COM"
keyserver-options binddn="cn=God,dc=EXAMPLE,dc=COM"
keyserver-options bindpw=SECRET |
... but gpg doesn't seem to try to bind and I got "Modifications require authentication" in my slapd logs. It ignores binddn & bindpw and only pays attention to basedn. One place I visited suggested that those options aren't implemented. Eventually, I resorted to several variations of ...
Code: | allow update_anon
access to *
by * read
by * write |
... in an effort to get anything at all to happen, but I still can't make gpg --send-keys happy. My slapd logs show:
Code: | slapd[9425]: conn=0 fd=11 ACCEPT from IP=192.168.4.102:60130 (IP=0.0.0.0:389)
slapd[9428]: conn=0 op=0 MOD dn="pgpCertID=8927DF9B409C12A5,ou=PGP Keys,dc=EXAMPLE,dc=COM"
slapd[9428]: conn=0 op=0 MOD attr=pgpDisabled pgpKeyID pgpKeyType pgpUserID pgpKeyCreateTime etc etc blah blah...
slapd[9428]: conn=0 op=0 RESULT tag=103 err=32 text=
slapd[9429]: conn=0 op=1 ADD dn="pgpCertID=8927DF9B409C12A5,ou=PGP Keys,dc=EXAMPLE,dc=COM"
slapd[9429]: conn=0 op=1 RESULT tag=105 err=50 text=no write access to parent
slapd[9429]: conn=0 fd=11 closed |
I'd love to get a private mini keyserver going over LDAP with proper authentication, but I get the distinct impression I'm not fully understanding some subtlty or other in the configuration. I'd really appreciate some help. |
|