|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-13 00:12 UTC] p dot boven at chello dot nl
[2005-01-28 12:51 UTC] peter dot burden at gmail dot com
[2005-01-28 16:11 UTC] michael dot siebke at keymile dot com
[2005-02-03 22:03 UTC] peter dot burden at gmail dot com
[2005-02-24 10:52 UTC] michael dot siebke at keymile dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 15:00:01 2025 UTC |
Description: ------------ It's not possible to search a Windows 2003 active directory using the LDAP interface (Windows 2000 works fine). However, using other tools (like LDAP browers), searching the Windows 2003 directory works. The problems occurs only using the PHP library. Reproduce code: --------------- $connect = ldap_connect("[i]server.domain.de[/i]"); if ($connect != FALSE) { $res = ldap_bind($connect, "[i]username[/i]", "[i]password[/i]"); if ($res == FALSE) { echo "Unable to bind to LDAP server<br>"; exit; } $attributes = array("sAMAccountName", "dn", "mail"); $data = ldap_search($connect, "[i]DC=company,DC=de[/i]", "(sAMAccountName=[i]targetaccount[/i])"); if ($data != FALSE) { echo "Reading data...<br>"; $data = ldap_get_entries($connect, $data); } else { echo "Nothing :-(<br>"; } ldap_close($connect); } Expected result: ---------------- "Reading data..." Actual result: -------------- Warning: ldap_search() [function.ldap-search]: Search: Operations error in /data/htdocs/hd5dev/Test.php on line 57 Nothing :-(