Versions:
gpgsm (GnuPG) 2.0.9
dirmngr 1.0.2-svn293
Both installed from the debian packages available at http://apt.intevation.de/
dirmngr is running as a system daemon. There is one ldap server configured in
/etc/dirmngr/ldapservers.conf:
ca.intevation.de:389:::o=Intevation GmbH,c=DE
The only root certificate in /etc/dirmngr/trusted-certs/ is that of "Wurzel ZS
3" available on that LDAP server.
For the test, run gpgsm as a user with the following settings:
pubring.kbx is empty gpgsm.conf has prefer-system-dirmngr trustlist.txt is empty
Now start gpgsm in server mode and search for "herzog" in external keys:
$ gpgsm --server
[...]
OK GNU Privacy Guard's S/M server 2.0.9 ready
OPTION list-mode=2
OK
OPTION with-validation=0
OK
LISTKEYS herzog
D crt::1024:1:E7C3E460CF8FD68A:20071005T171321:20091004T171321:2C::CN=ZS
4,O=Intevation
GmbH,C=DE::esES:%0Afpr:::::::::99D0AB57BFDCC65BF0722B94E7C3E460CF8FD68A::::%0Auid:::::::::CN=Bernhard
Herzog,O=Intevation GmbH,C=DE::%0Auid:::::::::<bh@intevation.de>::%0A
ERR 167772187 Nicht gefunden <Dirmngr>
Why does this result in an error ("Nicht gefunden") even though the correct
certificate has been found?
The non-server way to look for external keys gives no error message:
$ gpgsm --list-external-keys herzog
gpgsm: DBG: connection to dirmngr established
[external keys]
ID: 0xCF8FD68A S/N: 2C Issuer: /CN=ZS 4/O=Intevation GmbH/C=DE Subject: /CN=Bernhard Herzog/O=Intevation GmbH/C=DE aka: bh@intevation.de validity: 2007-10-05 17:13:21 through 2009-10-04 17:13:21 key type: 1024 bit RSA key usage: digitalSignature nonRepudiation keyEncipherment fingerprint: 99:D0:AB:57:BF:DC:C6:5B:F0:72:2B:94:E7:C3:E4:60:CF:8F:D6:8A
secmem usage: 0/16384 bytes in 0 blocks
$ echo $?
0
This unexpected error leads to problems with Kleopatra as described in this
kolab issue:
https://www.intevation.de/roundup/kolab/issue2653