## Authentication

### long ldap basedn not working

This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.
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: -
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: -
Re: long ldap basedn not working

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: -