Authentication

 
 
Picture of Syed Ahmad
Re: long ldap basedn not working
 

found out the different is :

$ldap_result = ldap_search($ldapconnection, $context,
'(&'.$objectclass.'('.$search_attrib.'='.ldap_filter_addslashes($username).'))',
array($search_attrib));

regardng the objectclass. how to 'not use' object class?

thanks 

 
Average of ratings: -
Picture of Syed Ahmad
Re: long ldap basedn not working
 

just to let you all know, after study back all the codes.. now i get the solution

my solution is putting "top" for objectclass

thanks 

 
Average of ratings: -
Picture of Iñaki Arenaza
Re: long ldap basedn not working
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

I'd use 'inetOrgPerson' for your objectClass, as that's really the structural object class you are using for your users (according to the output of ldapsearch you sent before).

'top' is not really meant as a final object class.

Saludos. Iñaki.

 
Average of ratings: -