[Date Prev][Date Next]
(ITS#4170) 64 bit OpenLDAP server doesnot connects with client tools
Full_Name: Shaick Mohamed
Version: 2.2.X and 2.3.X
Submission from: (NULL) (22.214.171.124)
we had an issue with OpenLDAP 64 bit build. This issue exists in all the
versions we tried so for( 2.1.X, 2.2.X, 2.3.X ). Details are given below,
Issue : 64 bit slapd unable to connect with client tools (ldapsearch,etc)
Cause : OpenLDAP code is written for XOPEN standard, but in HPUX default build
is in BSD socket style. This incompatibility causes the issue.
Ref : man accept in HPUX
Ref : 3rd argument for accept call is declared as socklen_t in
servers/slapd/daemon.c at line number 1218
Note : In 32 bit build we don't have issue since size_t is equal to int.
We can add following lines in the configure script,
1662 case $host_os in
1664 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
1665 LIBS="$LIBS -lxnet"
Ref : man xopen_networking
Ref : same fix is made in postgresql to work on HPUX
This fix works for us.
Reproducing steps :
OS = HPUX ; Model =9000/800/rp3440 and ia64 hp server rx2600
gmake test [ Without the above fix test will fail ]
Let me know if something is not clear.