[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
1.1-devel differences?
I fetched the current CVS and had to add a couple of checks like this to
my client:
#if LDAP_API_VERSION > 2000
php3_error(E_WARNING,"LDAP: Unable to bind to server: %s",ldap_err2string(ldap_get_lderrno(ldap,NULL,NULL)));
#else
php3_error(E_WARNING,"LDAP: Unable to bind to server: %s",ldap_err2string(ldap->ld_errno));
#endif
Probably something that should be noted in a portability readme somewhere.
Another thing I noticed, although I am sure this is a configuration
mistake on my part, is that for a LDIF that looks like this:
dn: ou=Core, o=Lerdorf, c=CA
ou: Core
objectclass: organizationalunit
dn: ou=Developers, o=Lerdorf, c=CA
ou: Developer
objectclass: organizationalunit
dn: ou=Users, o=Lerdorf, c=CA
ou: Users
objectclass: organizationalunit
dn: cn=Rasmus Lerdorf, ou=Core, o=Lerdorf, c=CA
cn: Rasmus Lerdorf
sn: Lerdorf
mail: rasmus@lerdorf.on.ca
mail: rasmus@php.net
objectclass: person
With the previous slapd I could send a query that looked like this:
$result = ldap_search($ds,"o=Lerdorf, c=CA","(sn=Ler*)");
and it worked fine. Now, however I have to do:
$result = ldap_search($ds,"ou=CORE, o=Lerdorf, c=CA","(sn=Ler*)");
What changed that would force me to add the ou here?
-Rasmus