[Date Prev][Date Next] [Chronological] [Thread] [Top]

Openldap on z/OS with XPLINK


using the info from http://www.openldap.org/faq/data/cache/719.html
I almost got OpenLDAP-2.3.33  to run on z/OS 1.7 with XPLINK and ASCII options.

I used this compiler script acc:


I got the server and tools to compile and link (z/OS 1.7). ldapsearch
works against IBM's z/OS LDAP server.

The openldap server starts, says it is listening, the bind address is
OK (I added some more debug output), but the socket is closed and
cannot be connected to.

Have you ever seen this? Actually in daemon.c there seems to be no
listen() call, so I wonder if the listen() call fails, I'll have to
check tomorrow.

Another source of problems might be that not all headers are included,
e.g. daemon.c uses inet_ntop() which requires arpa/inet.h but is not
I think the ASCII library functions versions are only pulled in if the
header is included, so some magic preprocessor tricks that select
ascii versions can trigger.

#include <arpa/inet.h>
const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);

Thanks very much,

$ libexec/slapd -d 1 -h ldap://sh90:6989
@(#) $OpenLDAP: slapd 2.3.33 (Jan 25 2007 13:43:07) $
daemon_init: listen on ldap://sh90:6989
daemon_init: 1 listeners to open...
daemon: getaddrinfo input host (sh90) output :s
daemon: inet_ntop result:
daemon: l.sl_name.bv_val: IP=
daemon: listener initialized ldap://sh90:6989
daemon_init: 1 listeners opened
slapd init: initiated server.

$ netstat -s | grep 69 Stream Closed 00001513