ldapsearch problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi there,

i'm having a problem regarding ldapsearch(filters).

on the console everything works fine:
<snip>
ldapsearch -bdc=xxx,dc=at -Dcn=admin,dc=xxx,dc=at -hxx.xx.xx.xx -p389 -x
-W socialSecurityNumber=xxxxxxxxxx
</snip>
with this is get a valid result, but with

but in my php script
<code>
$ldap = ldap_connect('xx.xx.xx.xx','389');
ldap_bind($ldap,'cn=admin,dc=xxx,dc=at','xxxxxx');

$filter = "(socialSecurityNumber=xxxxxxxxxx)";
$search =
ldap_search($ldap,'ou=People,dc=xxx,dc=at',filter,array("uid","ou"));
$result = ldap_get_entries($ldap,$search);
var_dump($result);

ldap_unbind($ldap);
</code>

i just get the output:
<snip>
array(1) {
  ["count"]=>
  int(0)
}
</snip>

any ideas?

lg, Michael Fischer
-- 
email: michi.fischer@xxxxxxx
web: http://www.webfischer.at


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux