The Samba-Bugzilla – Bug 943
Compile with Netscape LDAP SDK fails
Last modified: 2005-11-14 09:28:34 UTC
Compile with Netscape SDK fails with the following error:
passdb/pdb_ldap.c: In function `rebindproc_with_state':
passdb/pdb_ldap.c:276: error: `ldap_state' undeclared (first use in this function)
passdb/pdb_ldap.c:276: error: (Each undeclared identifier is reported only once
Steps to Reproduce:
Compile in Solaris 9 with "./configure --with-ldapsam". Do not use openldap.
Solaris 9 comes with its own ldap SDK which is actually Netscape SDK
The reason for building Samba with Netscape SDK is to workaround the problem
whereby initgroups() system call fails to get supplmentary group from directory
server if compiles with OpenLdap and Native ldap client is enabled in Solaris.
Refer to the following discussion for this topic:
To workaround this problem, I did this:
>- Modify <samba_source>/source/passdb/pdb_ldap.c, change line 276
>*whop = strdup(ldap_state->bind_dn);
>*whop = strdup(lp_ldap_admin_dn());
Sorry, but the 2.2 is not under development any longer.
If you can reproduce this bug against the latest 3.0 release,
please reopen this bug and change the version in the report.