PHP 8.5.0 Released!

Voting

: one minus zero?
(Example: nine)

The Note You're Voting On

baroque at citromail dot hu
20 years ago
This code sample shows how to connect and bind to eDirectory in PHP using LDAP for Netware.
<?php
$server='137.65.138.159';
$admin='cn=admin,o=novell';
$passwd='novell';
$ds=ldap_connect($server); // assuming the LDAP server is on this host
if ($ds) {
 // bind with appropriate dn to give update access
 $r=ldap_bind($ds, $admin, $passwd);
 if(!$r) die("ldap_bind failed<br>");
 echo "ldap_bind success";
 ldap_close($ds);
} else {
 echo "Unable to connect to LDAP server"; 
}
?>

<< Back to user notes page

AltStyle によって変換されたページ (->オリジナル) /