note 58439 added to function.ldap-connect

From: Date: Fri, 04 Nov 2005 10:53:49 +0000
Subject: note 58439 added to function.ldap-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-98061@lists.php.net to get a copy of this message
I don't why but on my server I am not able to connect successfully to my LDAP server unless I use the IP address of the LDAP server, rather than the hostname. So this DOESN'T work: <?php $ldapconn = ldap_connect('ldap.example.com'); ?> whereas this does work: <?php $ip = gethostbyname('ldap.example.com'); $ldapconn = ldap_connect($ip); ?> Of course you don't know it hasn't worked until you try to bind to the server and query it. ---- Manual Page -- http://www.php.net/manual/en/function.ldap-connect.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58439 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58439&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58439&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58439&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58439&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58439&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58439&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58439&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58439&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98061) next »