01-14-2010, 11:14 PM
(This post was last modified: 01-16-2010, 08:27 AM by administrator.)
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";
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";