Like normal, $ds= ldap_connect($host,$port)
is connecting to my server, but I cannot bind the username and password to my ldap server. I tried binding with ldap_bind($ds,$user,$pwd)
.
I also tried with ldap_bind($ds,$user.$domainName,$pwd)
.
Then, my client told me that their Ldap server had a server.username ='INHY_PSB'
and server.password = 'some_password'
.
This kind of ldap connections are only possible with zend_php class. Now I cannot move my whole project to zend frame work. Is there any way to connect to ldap using zend classes? Please help me to figure out this..
This code was taken from Zend frame work website3