Moalmamoun Posted October 29, 2013 Share Posted October 29, 2013 hello my friends i'm trying to get some data from the active directory but i have a problem when the stored eamil in capital letters or mixed letters , i want the ldap_search() to search the AD ignoring the case of the letters here's my function and thank you in advance function LDAPget($email){$ldap['server'] = 'xx.xx.xx.xx';$ldap['user'] = 'x';$ldap['pass'] = 'any';$ds = ldap_connect($ldap['server']);$bind = ldap_bind($ds, $ldap['user'], $ldap['pass']);$filter = "(mail=$email)";$sr = ldap_search($ds, $ldap['base_dn'], $filter, array('*'));$rows = ldap_get_entries($ds, $sr);} Quote Link to comment Share on other sites More sharing options...
mentalist Posted October 29, 2013 Share Posted October 29, 2013 Personally never used it but a quick Google yielded this: http://stackoverflow.com/questions/2017152/case-insensitive-ldap-searches Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.