[Gpg4win-users-en] Trying to get gpg4win working with OpenLDAP as the keyserver

Philip Colmer philip.colmer at linaro.org
Mon Apr 4 13:00:52 CEST 2016


I've been following the instructions in
https://wiki.gnupg.org/LDAPKeyserver to set up our OpenLDAP server so
that it can store GPG keys. I'm at the stage where I'm trying to send
a key to the LDAP server but the gpg command in gpg4win just says:

gpg: keyserver communications error: System error w/o errno
gpg: keyserver send failed: System error w/o errno

If I turn on Guru level debugging for gpg, I get this:

gpg: enabled debug flags: packet mpi cipher filter iobuf memory cache
memstat trust hashing extprog cardio assuan
gpg: DBG: expanding string "C:\Program Files
(x86)\GNU\GnuPG\gpg2keys_ldap.exe -o "%o" "%i""
gpg: DBG: args expanded to "C:\Program Files
(x86)\GNU\GnuPG\gpg2keys_ldap.exe -o
"C:\Users\phili\AppData\Local\Temp\gpg-lfKLpW\tempout.txt"
"C:\Users\phili\AppData\Local\Temp\gpg-lfKLpW\tempin.txt"", use 1,
keep 0
gpg: DBG: using temp file
`C:\Users\phili\AppData\Local\Temp\gpg-lfKLpW\tempin.txt'
gpg: DBG: armor-filter: control: 5
gpg: DBG: iobuf-1.1: push `armor_filter'
gpg: DBG: armor-filter: control: 5
gpg: DBG: iobuf chain: 1.1 `armor_filter' filter_eof=0 start=0 len=0
gpg: DBG: iobuf chain: 1.0 `[none]' filter_eof=0 start=0 len=0
gpg: DBG: armor-filter: control: 1
gpg: DBG: fd_cache_open
(C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg) not cached
gpg: DBG: iobuf-2.0: open
`C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg' fd=404
gpg: DBG: iobuf-2.0: underflow: req=8192
gpg: DBG: iobuf-2.0: underflow: got=1211 rc=0
gpg: DBG: parse_packet(iob=2): type=6 length=269
(search.../../gnupg2-2.0.29/g10/keyring.c.1038)
gpg: DBG: free_packet() type=6
gpg: DBG: fd_cache_open
(C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg) not cached
gpg: DBG: iobuf-3.0: open
`C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg' fd=424
gpg: DBG: iobuf-3.0: underflow: req=8192
gpg: DBG: iobuf-3.0: underflow: got=1211 rc=0
gpg: DBG: parse_packet(iob=3): type=6 length=269
(parse.../../gnupg2-2.0.29/g10/keyring.c.402)
gpg: DBG: parse_packet(iob=3): type=13 length=40
(parse.../../gnupg2-2.0.29/g10/keyring.c.402)
gpg: DBG: parse_packet(iob=3): type=2 length=319
(parse.../../gnupg2-2.0.29/g10/keyring.c.402)
gpg: DBG: parse_packet(iob=3): type=12 length=2
(parse.../../gnupg2-2.0.29/g10/keyring.c.402)
gpg: DBG: free_packet() type=12
gpg: DBG: parse_packet(iob=3): type=14 length=269
(parse.../../gnupg2-2.0.29/g10/keyring.c.402)
gpg: DBG: parse_packet(iob=3): type=2 length=292
(parse.../../gnupg2-2.0.29/g10/keyring.c.402)
gpg: DBG: parse_packet(iob=3): type=12 length=2
(parse.../../gnupg2-2.0.29/g10/keyring.c.402)
gpg: DBG: free_packet() type=12
gpg: DBG: iobuf-3.0: underflow: req=8192
gpg: DBG: iobuf-3.0: underflow: got=0 rc=-1
gpg: DBG: C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg: close
handle 000001A8
gpg: DBG: fd_cache_close
(C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg) new slot created
gpg: DBG: iobuf-3.0: underflow: eof
gpg: DBG: iobuf-3.0: close `?'
gpg: DBG: build_packet() type=6
gpg: DBG: iobuf-4.0: close `?'
gpg: DBG: build_packet() type=13
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-5.0: close `?'
gpg: DBG: build_packet() type=14
gpg: DBG: iobuf-6.0: close `?'
gpg: DBG: build_packet() type=2
gpg: DBG: iobuf-7.0: close `?'
gpg: DBG: iobuf-2.0: close `file_filter(fd)'
gpg: DBG: C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg: close
handle 00000194
gpg: DBG: fd_cache_close
(C:/Users/phili/AppData/Roaming/gnupg/pubring.gpg) new slot created
gpg: DBG: iobuf-1.1: pop `armor_filter'
gpg: DBG: armor-filter: control: 4
gpg: DBG: armor-filter: control: 2
gpg: DBG: iobuf-1.0: popped filter
gpg: DBG: iobuf-1.0: close `?'
gpg: sending key F73E1842 to ldap server login.linaro.org
gpg: DBG: free_packet() type=6
gpg: DBG: free_packet() type=13
gpg: DBG: free_packet() type=2
gpg: DBG: free_packet() type=14
gpg: DBG: free_packet() type=2
gpg: DBG: system() command is C:\Program Files
(x86)\GNU\GnuPG\gpg2keys_ldap.exe -o
"C:\Users\phili\AppData\Local\Temp\gpg-lfKLpW\tempout.txt"
"C:\Users\phili\AppData\Local\Temp\gpg-lfKLpW\tempin.txt"
gpg: DBG: fd_cache_open
(C:\Users\phili\AppData\Local\Temp\gpg-lfKLpW\tempout.txt) not cached
gpg: DBG: iobuf-8.0: open
`C:\Users\phili\AppData\Local\Temp\gpg-lfKLpW\tempout.txt' fd=436
gpg: DBG: iobuf-8.0: ioctl `file_filter(fd)' no_cache=1
gpg: DBG: iobuf-8.0: underflow: req=8192
gpg: DBG: iobuf-8.0: underflow: got=29 rc=0
gpg: DBG: iobuf-8.0: underflow: req=8192
gpg: DBG: iobuf-8.0: underflow: got=0 rc=-1
gpg: DBG: C:\Users\phili\AppData\Local\Temp\gpg-lfKLpW\tempout.txt:
close handle 000001B4
gpg: DBG: fd_cache_close (436) real
gpg: DBG: iobuf-8.0: underflow: eof
gpg: DBG: iobuf-8.0: close `?'
gpg: keyserver communications error: System error w/o errno
gpg: keyserver send failed: System error w/o errno
random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
              outmix=0 getlvl1=0/0 getlvl2=0/0
secmem usage: 0/32768 bytes in 0 blocks

Looking at the LDAP logs, though, I cannot see any communication
between my computer and the LDAP server, so I'm not sure that a
connection is actually happening.

Following the guidance in the linked-to documentation, I've edited
gnupg.conf so that the keyserver options are defined as follows:

keyserver ldap://login.linaro.org
keyserver-options binddn="<my LDAP uid>"
keyserver-options bindpw=<my LDAP password>
keyserver-options tls=require
keyserver-options verbose
keyserver-options debug=1

I've also tried Kleopatra's way of configuring the keyserver, i.e.:

keyserver ldap://<my LDAP uid>:<my LDAP
password>@login.linaro.org/?dc=linaro,dc=org

but that doesn't work either.

It is working if I use the Linux implementation of gpg. Unfortunately,
I don't seem to be able to spot the contents of the temp files so I'm
a bit stuck trying to troubleshoot this any further.

Regards

Philip



More information about the Gpg4win-users-en mailing list