note 58472 added to function.ldap-bind

From: Date: Sat, 05 Nov 2005 09:18:21 +0000
Subject: note 58472 added to function.ldap-bind
Groups: php.notes 
Request: Send a blank email to php-notes+get-98104@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-bind.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58472 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58472&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58472&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58472&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58472&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58472&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58472&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58472&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58472&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98104) next »