Mailinglisten-Archive |
Hi! Der bind zum LDAPS-Server haut nicht hin! Ich habe ein kleines Test-Skript: ---schnipp--- <?php $ldap_server="SERVER_IP"; $ldap_port="PORT"; $root_dn="DN"; $root_pwd="PASSWORD"; $ldap=ldap_connect($ldap_server,$ldap_port); $lbind=ldap_bind($ldap, $root_dn, $root_pwd); echo "LDAP: ".$ldap."<br>\n"; echo "LDAP_bind: ".$lbind."<br>\n"; $ldaps_server="ldaps://SERVER_IP"; $ldaps=ldap_connect($ldaps_server); $lsbind=ldap_bind($ldaps, $root_dn, $root_pwd); echo "LDAPS: ".$ldaps."<br>\n"; echo "LDAPS_bind: ".$lsbind."<br>\n"; ?> ---schnapp--- Das Ergbnis ist: ---schnipp--- LDAP: 1 LDAP_bind: 1 Warning: LDAP: Unable to bind to server: Can't contact LDAP server in /PFAD_ZUM_SKRIPT/ldap_test.php on line 19 LDAPS: 2 LDAPS_bind: ---schnapp--- Das connect funktioniert! Aber der bind geht in die Hose?! Ciao, Karsten > .. If you are using OpenLDAP 2.x.x you can specify a URL instead of the > hostname. To use LDAP with SSL, compile OpenLDAP 2.x.x with SSL support, > configure PHP with SSL, and use ldaps://hostname/ as host parameter. The > port parameter is not used when using URLs. URL and SSL support were added > in 4.0.4....
php::bar PHP Wiki - Listenarchive