Tuesday 23 September 2008 3:25:53 am
hi @all, if i enable my debugging modus, i always get this error:
Warning: PHP Sep 23 2008 11:00:52
ldap_search() [<a href='function.ldap-search'>function.ldap-search</a>]: Search: Operations error in /data/srv/www/ez/kernel/classes/datatypes/ezuser/ezldapuser.php on line 263
Warning: PHP Sep 23 2008 11:00:52
ldap_get_entries(): supplied argument is not a valid ldap result resource in /data/srv/www/ez/kernel/classes/datatypes/ezuser/ezldapuser.php on line 266
Warning: ezi18n Sep 23 2008 11:00:52
No translation for file(translation.ts) in context(lib/template): 'The maximum nesting level of %max has been reached. The execution is stopped to avoid infinite recursion.' with comment()
i tried the ldapsearch with the same parameters written on line 263
else
$sr = ldap_search( $ds, $LDAPBaseDN, $LDAPFilter, $retrieveAttributes );
in the ezldapusers.php on the shell of my unix system. It is working fine on the command line. The second thing i tried is to write my own php file to get the ldap_search php function working, but i get always the same errors. My own written file locks like this:
<?php
$conn = ldap_connect("LDAP_server_IP") or die ("cant connect");
$ldaprdn = 'user';
$ldappass = 'pw';
$bind = ldap_bind($conn) or die ("not possible");
$result=ldap_search($conn, "dc=domain,dc=de", "(&(samaccountname=cronauer))") or die ("Failure during search");
$info = ldap_get_entries($conn, $result);
for ($i=0; $i<$info["count"]; $i++) {
echo "dn is: ". $info[$i]["dn"] ."<br>";
echo "erste cn ist: ". $info[$i]["cn"][0] ."<br>";
echo "erste E-Mail-Adresse ist: ". $info[$i]["mail"][0]."<p>";
}
echo "Anzahl der Einträge: " . ldap_count_entries($conn, $result) ."<p>";
ldap_close($conn);
?>
If i execute the php on the commandline with "php saerchscript.php" i get the same error as the configuration from ez publisher ldap gets.
Warning: ldap_search(): Search: Operations error in /home/pascal/ldaptest.php on line 11
Failure during search
I think it is probably an error with ldap_search function from php.... ??? Please, can someone help?
nice greetings Pascal
|