ID:               19494
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Bogus
+Status:           Open
 Bug Type:         LDAP related
 Operating System: Linux 2.4.17
 PHP Version:      4.2.2 and 4.3.0-dev
 New Comment:

Well it seems like ldap_connect has some problem.
1. Scenario
$ds=ldap_connect($CONFIG["ldap_server"]);
-> echo $ldap_error($ds) say "Success" but ldap_bind fails
(also $ds is true and var_dump says "ressource (X) of type (ldap
link)")
2. Scenario
$ds=ldap_connect("ldaps://my.ldap.server");
-> echo $ldap_error($ds) say success and ldap_bind works.

of course $CONFIG["ldap-server"] is defined as "ldaps://my.ldap.server"
i checked that 3 times.

So is this right that ldap_connect says everything is OK though it is
not really ?

Chris


Previous Comments:
------------------------------------------------------------------------

[2002-09-23 08:54:10] [EMAIL PROTECTED]

very funny, when i use URL-syntax in ldap_connect it works. the state
after the ldap_connect seems to be identical except that the ldap_bind
now works with and without bind-dn

------------------------------------------------------------------------

[2002-09-23 01:43:27] [EMAIL PROTECTED]

thought that too after i read that on some other bug here. i tried with
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3) still no change.

------------------------------------------------------------------------

[2002-09-20 13:47:05] [EMAIL PROTECTED]

I'm not so sure this is the problem, but are you running
OpenLDAP 2.1 server? By default it only accepts LDAPv3
binds, and the API by default do LDAPv2 binds. IF you do,
try to tell the API to use v3 binds using ldap_set_option().

------------------------------------------------------------------------

[2002-09-19 07:14:23] [EMAIL PROTECTED]

>It's most likely some problem with your ldap server.
>Have you tried to connect to some public ldap server?

unlikely because i use it for nss_ldap and pam_ldap login on several
machines also as i wrote in the very beginning it binds but without the
given bind-dn

>Also, try adding 'echo ldap_error($ds);' after the >ldap_connect()
call.
this prints "Success"

------------------------------------------------------------------------

[2002-09-19 07:00:00] [EMAIL PROTECTED]

It's most likely some problem with your ldap server.
Have you tried to connect to some public ldap server?

Also, try adding 'echo ldap_error($ds);' after the ldap_connect()
call.



------------------------------------------------------------------------

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/19494

-- 
Edit this bug report at http://bugs.php.net/?id=19494&edit=1

Reply via email to