Hai,
excuse me for my english.
I´m from germany, and my english is not really good.
I´ve made a LDAP-Query (first time).
When i use this query i get following error:
Error: Can't bind to the LDAP directory
This is my Query:
$query_id=0;
// First define the serverId on which you want to run the query
$ldap_queries[$query_id]['ldapServerId'] = 0;
// Give a name that will appear on the user interface
$ldap_queries[$query_id]['name'] = 'Staff with an enabled account';
// Define the ldap base used for user searches
$ldap_queries[$query_id]['userbase'] = 'ou=DV,ou=_HLD,ou=Adolf Boehl Strasse,ou=Berghausen,ou=DE,ou=__EJOT-Standorte,dc=ejot-net,dc=com';
// Define the user filter to apply
// Must begin with '(' and end with '
'
$ldap_queries[$query_id]['userfilter'] = '(&(objectCategory=person)(objectClass=user)(account-status=enabled))';
// Define how deep under the userbase you want to search
// 'sub' means: search on the entire subtree
// 'one' means: only search 1 level under the userbase
// 'base' means: only search the userbase DN entry
$ldap_queries[$query_id]['userscope'] = 'sub';
// Define the user's attribute that provides the firstname
// do not use capital letters in the attribute name
// for instance use 'givenname' and not 'givenName'
$ldap_queries[$query_id]['firstname_attr'] = 'givenname';
// Give the user's attribute that provides the lastname
// do not use capital letters in the attribute name
$ldap_queries[$query_id]['lastname_attr'] = 'sn';
// Give the user's attribute that provides the email address
// do not use capital letters in the attribute name
// If multivalued, only the first entry is read
$ldap_queries[$query_id]['email_attr'] = 'mail';
// Optionnally give the user's attributes that provides the
// token, language, attr1 and attr2 piece of information
// do not use capital letters in the attribute name
// if unused, leave empty or comment the lines
$ldap_queries[$query_id]['token_attr'] = ''; // Leave empty for Auto Token generation bu phpsv
$ldap_queries[$query_id]['language'] = '';
$ldap_queries[$query_id]['attr1'] = '';
$ldap_queries[$query_id]['attr2'] = '';
Can somebody tell me, what´s wrong with the query?
Ask, if you need more information.
Version 1.53+ (4108)
Thank you!