note 87503 rejected from function.ldap-add by danbrown

From: Date: Mon, 08 Dec 2008 03:56:29 +0000
Subject: note 87503 rejected from function.ldap-add by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147897@lists.php.net to get a copy of this message
Note Submitter: writetomayank at gmail dot com ---- 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

« previous php.notes (#147897) next »