ID: 21643 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: LDAP related Operating System: windows 2000 PHP Version: 4.3.0 New Comment:
Ok, I'll close this. Basically the functionality has been changed a bit, it seems that the new version of php_ldap.dll now requires escape characters on special characters including '(' & ')' ... the old version for win32 did not. It appears that this has been the case on the unix based versions for some time now. Previous Comments: ------------------------------------------------------------------------ [2003-01-20 16:52:26] [EMAIL PROTECTED] Sorry, I was counting the wrong thing... the single quotes are not required, but the parens are a problem. Anyway, that seems to be what it boils down to. ------------------------------------------------------------------------ [2003-01-20 16:40:00] [EMAIL PROTECTED] Aha... it doesn't like the parens ... also, it seems to not like the single quote. The problem with that is if i don't use the single quotes I get back 2 records. :-\ ------------------------------------------------------------------------ [2003-01-20 16:33:14] [EMAIL PROTECTED] Ok, I give up. After I actually found one of those servers that worked I couldn't find a single valid attribute to search on. I tried cn, name, ... and other common attribute types. All returned invalid attribute type. So here's a simpler sample of the problem: <?PHP $ds=ldap_connect("censored"); $dn = "cn=censored, ou=censored, dc=ibs, dc=org"; $password = "censored"; $dir = "cn=users, dc=IBS, dc=org"; $criteria = "'name=Ryan Jameson (USA)'"; if ($ds) { $r=ldap_bind($ds,$dn,$password); $sr=ldap_search($ds,$dir, $criteria); $info = ldap_get_entries($ds, $sr); echo count($info) . " records returned."; } ldap_close($ds); ?> PHP 4.2.3 extension returns: 1 records returned. PHP 4.3.0 extension returns: Warning: ldap_search(): Search: Bad search filter in R:\WebApps\api\ldapSearcherTest.php on line 9 Warning: ldap_get_entries(): supplied argument is not a valid ldap result resource in R:\WebApps\api\ldapSearcherTest.php on line 10 0 records returned. ------------------------------------------------------------------------ [2003-01-19 17:57:16] [EMAIL PROTECTED] leaving as feedback until a response comes in... ------------------------------------------------------------------------ [2003-01-18 08:18:39] [EMAIL PROTECTED] I'm on the edit submission tab but it still says "New Comment" I hope this is the right way to respond to this. Anyway, I will try to build a simple sample on Monday. Thanks! ------------------------------------------------------------------------ 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 http://bugs.php.net/21643 -- Edit this bug report at http://bugs.php.net/?id=21643&edit=1