Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LDap problem ( Windows Related)
#1
hi ,
i had a big problem after ldap connexion ,

after good login and password i can t connect

Warning: ldap_search() [function.ldap-search]: Search: Operations error in C:\xampp\htdocs\mydms\op\op.Login.php on line 94


op\op.login.php

if (!is_bool($ds)) {
// Ensure that the LDAP connection is set to use version 3 protocol.
// Required for most authentication methods, including SASL.
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);

// try an anonymous bind first. If it succeeds, get the DN for the user.
$bind = @ldap_bind($ds);
$dn = false;

if ($bind) {
$search = ldap_search($ds, $settings->_ldapBaseDN, "uid=".$login);
if (!is_bool($search)) {
$info = ldap_get_entries($ds, $search);
if (!is_bool($info) && $info["count"]>0) {
$dn = $info[0]['dn'];
}
}
}



inc.settings.php

var $_ldapHost = "xx.x.x.x";
var $_ldapPort = xxx;
var $_ldapBaseDN = "OU=xxxx,DC=xxxxx,DC=xxx";
Reply


Messages In This Thread
LDap problem ( Windows Related) - by ddlan - 01-14-2010, 11:14 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)