ldap_connect function is working but when i tried use "ldap_bind" function it returns an empty result.
I tried with domain name and username still its not working.Windows server is 2012. below is my code
$ldapServer = 'ldap://server:389';
$ldapServer = 'ldap://server.com:3268';
$domain = 'server.com';
$ldapBase = 'DC=server,DC=com';
$ldapConn = ldap_connect ($ldapServer);
if ($ldapConn) {
ldap_set_option ( $ldapConn, LDAP_OPT_PROTOCOL_VERSION, 3 );
ldap_set_option ( $ldapConn, LDAP_OPT_REFERRALS, 0 );
$ldapBind = ldap_bind ($ldapConn, "{$userId}@{$domain}", $password );
}