Jared Forrester
2011-Apr-13 20:15 UTC
[Samba] Samba 3.5.8 on AIX 5.3 with IBM LDAP libraries
Hello, We're currently using Samba 3.5.8 with the IBM AIX supplied LDAP libraries on AIX 5.3 (using gcc). We were not able to compile this originally without making the following modifications: 1. create a symlink libldap.a to libibmldapn.a in /usr/ldap/lib 2. change ber_init() to ber_init2() in the following 3 c files passdb/pdb_nds.c line 234 lib/smbldap.c line 1533 libads/ldap.c line 1021 3. define LDAP_OPT_DESC in lib/smbldap.c (as 1) This was in addition to normal things like setting flags for the compiler and using gmake (via having /usr/linux/bin first in PATH, which is common for building on AIX ). Afterwards, ./configure --with-ldap=/usr/ldap and make install worked. Active Directory support didn't work ( configure says missing ldap_initialize() ) but since we don't use it, we didn't investigate further. We were wondering if anyone else does this? It seems that everyone ends up installing openldap and just using that. Things have been working well so far with LDAP support compiled as mentioned above. Ideally, we would like to able to use the supplied AIX LDAP libraries without having to modify the source code. Is there a better method to accomplish this? If this is the correct method, would it be possible to have our changes merged to the main source tree so future installs require only ./configure ... , make , make install ? We can not allow direct access to our machine for testing, but we do have a test machine available to test any source changes, should that be required. Thanks, Jared. NOTICE: This confidential e-mail message is only for the intended recipients. If you are not the intended recipient, be advised that disclosing, copying, distributing, or any other use of this message, is strictly prohibited. In such case, please destroy this message and notify the sender. NOTICE: This confidential e-mail message is only for the intended recipients. If you are not the intended recipient, be advised that disclosing, copying, distributing, or any other use of this message, is strictly prohibited. In such case, please destroy this message and notify the sender.
Hi i am trying to use ADS in samba 3.3.12 on Aix...and facing the same issue (ldap_initialize missing). i have ibmldap installed... when i run ./configure --with-ads --with-pam --with-winbind --with-krb5=/usr/local/lib it stops giving this error... checking for LDAP support... auto checking ldap.h usability... yes checking ldap.h presence... yes checking for ldap.h... yes checking lber.h usability... yes checking lber.h presence... yes checking for lber.h... yes checking for ber_tag_t... yes checking for ber_scanf in -llber... no checking for ber_sockbuf_add_io... no checking for LDAP_OPT_SOCKBUF... no checking for LBER_OPT_LOG_PRINT_FN... no checking for ldap_init in -lldap... yes checking for ldap_set_rebind_proc... yes checking whether ldap_set_rebind_proc takes 3 arguments... 2 checking for ldap_initialize... no checking whether LDAP support is used... yes checking for Active Directory and krb5 support... yes checking for ldap_initialize... (cached) no configure: error: Active Directory support requires ldap_initialize