Edit report at https://bugs.php.net/bug.php?id=47786&edit=1
ID: 47786 Updated by: m...@php.net Reported by: tedc21thc at hotmail dot com Summary: ldap_list get "Decoding error" on some specific searching attribute -Status: Assigned +Status: Feedback Type: Bug Package: LDAP related Operating System: FreeBSD 7.1 PHP Version: 5.2.9 Block user comment: N Private report: N New Comment: There's no difference in what PHP does for ldap_search and ldap_list, except that ldap_lsit uses LDAP_SCOPE_ONELEVEL. Previous Comments: ------------------------------------------------------------------------ [2012-04-30 07:40:25] tedc21thc at hotmail dot com please solve this problem for ldap_list(); ( see:#5433 for ldap_search(); ) ------------------------------------------------------------------------ [2010-12-24 10:41:38] tedc21thc at hotmail dot com It seems be #5433 only fixed "ldap_search()" function,but not also fix ldap_list() function. please check again. The problem is, it will get Decoding error (-4) when querying some OU and have attributes. When I get decoding error, and I use this function again with no argument 4(attributes), It will be fine. samples: When $sr= @ldap_list($this->conn,$dn,$this->filter,$this->attrs); ldap_errno($this->conn) sometimes will be -4 gets Decoding error, query fails. Try use $sr= @ldap_list($this->conn,$dn,$this->filter); ldap_errno($this->conn) will be 0 and the data entries will be fine ------------------------------------------------------------------------ [2010-12-24 10:31:38] tedc21thc at hotmail dot com Hello there, It seems be #5433 only fixed "ldap_search()" function,but not also fix ldap_list() function. please check again. The problem is, it will get Decoding error (-4) when querying some OU and have attributes. When I get decoding error, and I use this function again with no argument 4(attributes), It will be fine. samples: When $sr= @ldap_list($this->conn,$dn,$this->filter,$this->attrs); ldap_errno($this->conn) sometimes will be -4 gets Decoding error, query fails. Try use $sr= @ldap_list($this->conn,$dn,$this->filter); ldap_errno($this->conn) will be 0 and the data entries will be fine ------------------------------------------------------------------------ [2009-04-08 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-04-01 01:53:45] tedc21thc at hotmail dot com the problem is when I change the searching attribute from ("cn","mail","proxyaddresses","ou") to any other like... ("mail","cn","proxyaddresses","ou") <- only switching sorting or... ("cn","mail","proxyaddresses","ou","something") <- add something or remove something or whatever the result of ""LDAP_ERROR($ds)"" become success, and I can get values from $info = ldap_get_entries($ds, $sr); and following steps..... ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=47786 -- Edit this bug report at https://bugs.php.net/bug.php?id=47786&edit=1