ID: 21643 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Open Bug Type: LDAP related Operating System: windows 2000 PHP Version: 4.3.0 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [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! ------------------------------------------------------------------------ [2003-01-17 21:03:32] [EMAIL PROTECTED] Please don't reply to your own report using 'Add Comment', use 'Edit Submission' link instead!!! And yes, it might be possible that your search string is not valid, please ask on some openldap mailing list. And I didn't ask for you to make your own ldap server public, but come up with script accessing one of these servers: http://www.emailman.com/ldap/public.html ------------------------------------------------------------------------ [2003-01-16 11:42:08] [EMAIL PROTECTED] "Are you absolutely sure you updated PHP correctly? All the dlls from the dlls/ folder too?" - I am positive. I copied the dlls folder to system32 just to check. Same result. 4.3 is completely functional except I have to use the php_ldap.dll file from 4.2.3. "And could you come up with a short example script using some public ldap server so that I can try it myself within Linux?" - I really can't. The only reason I can't is that our network would go haywire if I set up a temporary Active Directory server. Is it possible that the changes made cause the search function to look at the criteria differently? Maybe my search string is no longer valid? ------------------------------------------------------------------------ [2003-01-15 16:09:24] [EMAIL PROTECTED] And could you come up with a short example script using some public ldap server so that I can try it myself within Linux? ------------------------------------------------------------------------ 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