note 87503 added to function.ldap-add
| From: | writetomayank at gmail dot com | Date: | Mon, 08 Dec 2008 02:59:10 +0000 |
| Subject: | note 87503 added to function.ldap-add | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-147896@lists.php.net to get a copy of this message | ||
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Protocol error in
/Users/admin/Sites/a.php on line 8
ldap_bind failed
<?php
$server='192.168.0.19';
$username='cn=admin';
$password='pa55word';
$ds=ldap_connect($server);
if ($ds) {
$r=ldap_bind($ds, $username, $password);
if(!$r) die("ldap_bind failed<br>");
echo "ldap_bind success";
ldap_close($ds);
}
can someone please point me in the right direction. I am using a mac osx server and i keep getting
this protocol error or dn error and can not make the php script work
----
Server IP: 209.41.74.194
Probable Submitter: 64.119.88.66
----
Manual Page -- http://www.php.net/manual/en/function.ldap-add.php
Edit -- https://master.php.net/note/edit/87503
Del: integrated -- https://master.php.net/note/delete/87503/integrated
Del: useless -- https://master.php.net/note/delete/87503/useless
Del: bad code -- https://master.php.net/note/delete/87503/bad+code
Del: spam -- https://master.php.net/note/delete/87503/spam
Del: non-english -- https://master.php.net/note/delete/87503/non-english
Del: in docs -- https://master.php.net/note/delete/87503/in+docs
Del: other reasons-- https://master.php.net/note/delete/87503
Reject -- https://master.php.net/note/reject/87503
Search -- https://master.php.net/manage/user-notes.php