note 58473 added to function.ldap-connect

From: Date: Sat, 05 Nov 2005 09:20:02 +0000
Subject: note 58473 added to function.ldap-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-98106@lists.php.net to get a copy of this message
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"; } ?> ---- Manual Page -- http://www.php.net/manual/en/function.ldap-connect.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58473 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58473&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58473&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58473&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58473&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58473&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58473&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58473&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58473&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98106) next »