[PHP] ldap_connect allways returns true even if logically it shouldn't?

2006-06-19 Thread Steve Turnbull
Hi I have this code (PHP5) as part of a class to do some LDAP stuff... public function connect() { $this-ds = @ldap_connect( $this-server, $this-port ); ### This seems to return true no matter waht if ( $this-ds ) { // A successful connection was made

Re: [PHP] ldap_connect allways returns true even if logically it shouldn't?

2006-06-19 Thread Joe Wollard
I believe the manual says that ldap_connect doesn't actually make the connection but rather it just simply sets up the connection parameters. The actual connection doesn't happen until ldap_bind is executed. - or so I recall reading some where ;-) On Jun 19, 2006, at 9:06 AM, Steve

Re: [PHP] ldap_connect error

2005-04-19 Thread Steve Turnbull
Richard Lynch wrote: On Mon, April 18, 2005 2:43 am, Steve Turnbull said: I am running a LAMP setup consisting of Debian (testing), PHP4, Apache2, and MySQL 4. When I installed php, I used apt-get, and included in the list of modules was libapache2_mod_php4 php4 php4-ldap ... PHP works

[PHP] ldap_connect error

2005-04-18 Thread Steve Turnbull
Hi I am running a LAMP setup consisting of Debian (testing), PHP4, Apache2, and MySQL 4. When I installed php, I used apt-get, and included in the list of modules was libapache2_mod_php4 php4 php4-ldap ... PHP works fine, and a test phpinfo() brings up all of the expected parameters (at least I

Re: [PHP] ldap_connect error

2005-04-18 Thread Richard Lynch
On Mon, April 18, 2005 2:43 am, Steve Turnbull said: I am running a LAMP setup consisting of Debian (testing), PHP4, Apache2, and MySQL 4. When I installed php, I used apt-get, and included in the list of modules was libapache2_mod_php4 php4 php4-ldap ... PHP works fine, and a test

[PHP] LDAP_connect()

2003-08-02 Thread Ron Allen
Everytime I try to run this function it says that it is an undefined function LDAP_connection -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ldap_connect()

2002-07-24 Thread Michael Gladden
I am new to using PHP on RedHat 7.3 and am running into a problem with ldap_connect(). When I attempt to run ldap_connect, I get the error: Call to undefined function: ldap_connect() The system I am working on has the default install of Redhat 7.3 with Apache version Apache/1.3.23. It has

[PHP] ldap_connect(URI)?

2001-12-04 Thread Susanne Benkert
Hello, my problem is to enable a secure connection between a PHP script an an LDAP directory using SSL. The LDAP server is already recompiled and running with ssl/tsl-support. PHP-4.0.6. is compiled with-openssl. But when I try to use ldap_connect('ldaps://hostname/') like suggested in the

Re: [PHP] ldap_connect(URI)?

2001-12-04 Thread Stig Venaas
Hi again Susanne, I'm on this list too... On Tue, Dec 04, 2001 at 11:13:51AM +0100, Susanne Benkert wrote: The LDAP server is already recompiled and running with ssl/tsl-support. PHP-4.0.6. is compiled with-openssl. But when I try to use ldap_connect('ldaps://hostname/') like suggested in the

Re: [PHP] ldap_connect(URI)?

2001-12-04 Thread Susanne Benkert
Hi Stig, Unknown Sender wrote: This works for me. For ldap_connect(ldap://hostname;) to work, you need OpenLDAP 2.x libs but that's all. Are you sure PHP is using that library? I'm quite sure, because other ldap functions work properly such as ldap_connect(hostname); or ldapsearch()... I

Re: [PHP] ldap_connect(URI)?

2001-12-04 Thread Stig Venaas
On Tue, Dec 04, 2001 at 12:19:24PM +0100, Susanne Benkert wrote: This works for me. For ldap_connect(ldap://hostname;) to work, you need OpenLDAP 2.x libs but that's all. Are you sure PHP is using that library? I'm quite sure, because other ldap functions work properly such as

[PHP] ldap_connect question

2001-08-29 Thread Ian McNish
the ldap_connect man page states that calling ldap_connect with no arguements should return the link identifier to the open ldap connection. in the following code i find that the script stops before writing the second printf statement: $LDAP_CONNECTION = ldap_connect($MY_LDAP_SERVER);

Re: [PHP] ldap_connect question

2001-08-29 Thread Ian McNish
Brad S. Jackson wrote: It looks like the documentation is wrong. The C source code for the LDAP module doesn't do anything special with zero arguments. switch(ZEND_NUM_ARGS()) { case 0: host = NULL; port = 0; that would explain why