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

Re: Solaris 10 and openldap - help needed.

--On Wednesday, December 06, 2006 4:21 PM +0000 Robert Bannocks <R.Bannocks@nhm.ac.uk> wrote:

Hi all,

I have a number of issues with OpenLDAP on solaris 10.  These are mostly
to do with Samba, however, boiling the problem down I have tried to
simplify things.

I have openldap-2.3.27 configured with this configure line and compiled
with gcc version

Since you are starting from scratch, I'd recommend building 2.3.30.

./configure --prefix=/usr/local/opt/openldap/openldap-2.3.27
--enable-crypt --enable-ldap --enable-slapd=no --enable-shared=no

crypt is platform specific, and it is generally recommended not to use it.

I have tried to compile the following simple program:

$ more ldaptest.c
# include <ldap.h>

        char *ldapname="Dn=this is a long DN";
        char *result;

result=ldap_dn2ad_canonical( ldapname ); }

With the command line
/usr/sfw/bin/gcc -I/usr/local/opt//openldap/openldap-2.3.27/include
-L/usr/local/opt/openldap-2.3.27/lib/liblber.a ldaptest.c

Your paths on your -L lines don't match.


Quanah Gibson-Mount
Principal Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html