Question: Ldap Future

Ignacio Coupeau icoupeau at
Wed Dec 12 03:46:02 GMT 2001

Jean Francois Micouleau wrote:
> On Tue, 11 Dec 2001 fischerdr at wrote:
> > Currently in the Samba_2_2_2 tree we are able to use ldapsam for auth
> > but in the current tree and Samba_3_0 the "--with-ldapsam" no longer
> > works.

thanks for the group and AD stuff  to all the team... a nice work.

> it's broken ? I'll take a look then.

I tested it: is broken also in the HEAD (CVS 10:30 GMT) and in the
passdb/pdb_ldap.c: In function `ldap_open_connection':
passdb/pdb_ldap.c:74: `LDAP_SSL_ON' undeclared (first use in this
passdb/pdb_ldap.c:74: (Each undeclared identifier is reported only once
passdb/pdb_ldap.c:74: for each function it appears in.)
passdb/pdb_ldap.c:98: `LDAP_SSL_START_TLS' undeclared (first use in this
passdb/pdb_ldap.c:124: `LDAP_SSL_OFF' undeclared (first use in this
passdb/pdb_ldap.c:99: warning: unreachable code at beginning of switch
passdb/pdb_ldap.c: In function `ldap_connect_system':

In the from SAMBA_2_2 (that compiles well) the -lresolv is
# Check whether --with-ldapsam or --without-ldapsam was given.
AC_MSG_CHECKING(whether to use LDAP SAM database)
[  --with-ldapsam          Include experimental LDAP SAM support
    LIBS="-lldap -llber -lresolv $LIBS"

I think the lines in include/includes.h 
#include <ldap.h>
#undef HAVE_LDAP
may cause a warning conflict if the ldap.h is loaded twice,

Ignacio Coupeau, Ph.D.     e-mail: icoupeau at
CTI, Director              fax:    948 425619
University of Navarra      voice:  948 425600
Pamplona, SPAIN  

More information about the samba-technical mailing list