[PHP] LDAP problems

2003-06-12 Thread Praveen Kumar
Dear Walker, After connecting to the LDAP using ldap_connect('localhost'); you should use ldap_bind like the code given below. ?php $conn = ldap_connect(localhost) or die(Could not connect to server. Error is . ldap_error($conn)); // bind to the LDAP server $r = ldap_bind($conn, $root_dn,

[PHP] LDAP problems

2003-06-11 Thread Caleb Walker
Can anyone tell me what is wrong with this simple code? It errors with the ldap_get_values and says: supplied resource is not a valid ldap result entry resource I am very new at PHP LDAP so pardon my error... ? //include inc/connect.inc.php; $ds = ldap_connect(localhost); $base =

[PHP] LDAP problems Apache 1.3.22 PHP 4.2.1

2002-05-29 Thread Oakes, Edward B
I am having problems with Apache occasionally giving me a segmentation fault when making ldap calls from php. I am currently using openldap-2.0.23, Apache 1.3.22 and PHP 4.2.1. My php program is being used to authenticate a user against several Microsoft Active Directory Servers. It works

[PHP] LDAP problems

2001-01-18 Thread Bill . Hoffman
Here is my environment again: System Linux [EMAIL PROTECTED] 2.2.5-15 #1 Mon Apr 19 22:21:09 EDT 1999 i586 unknown Build Date Sep 7 2000 Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs' ' --with-config-file-path=/usr/local/apache/conf' '--enable-versioning' '