Ik heb hetvolgende probleem :
code :
Geeft in m'n ontwikkelomgeving (WinXP / PHP 4.4 / Nusphere PHPEd) keurig een connectie naar de betreffende Novell 6.5 server, E-dir is ook prima uit te lezen met LDAP.
Door naar productieomgeving (Slackware 10) kan er geen verbinding gemaakt worden vanuit PHP met hetzelfde script : Unable to connect to LDAP server
Doe ik vanuit die slackware doos een ldapsearch -h 192.168.11.10 dan wordt de hele NDS weer keurig uitgelezen. LDAP connectie werkt dus wel vanuit die doos maar niet vanuit PHP.
Onderstaand de resultaten van phpinfo() op beide dozen. Ik zie maar minimale verschillen maar of dat de oorzaak is ?
Wie helpt me uit de brand ?
Jan
phpinfo() WinXP ontwikkeldoos (Nusphere PHPed)
PHP Version 4.4.0
System Windows NT WKS-SB-022 5.1 build 2600
Build Date Jul 11 2005 16:08:47
Server API CGI/FastCGI
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\Program Files\nusphere\phped\php\php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety enabled
Registered PHP Streams php, http, ftp, compress.zlib
LDAP Support enabled
RCS Version $Id: ldap.c,v 1.130.2.13 2005/05/08 16:06:24 sniper Exp $
Total Links 0/unlimited
API Version 2004
Vendor Name OpenLDAP
Vendor Version 0
phpinfo() Slackbox (de probleem doos)
PHP Version 4.3.11
System Linux slackbox 2.4.29 #23 Thu Jan 20 17:16:46 PST 2005 i686
Build Date May 13 2005 07:06:57
Configure Command './configure' '--prefix=/usr' '--disable-static' '--with-apxs=/usr/sbin/apxs' '--sysconfdir=/etc' '--enable-discard-path' '--with-config-file-path=/etc/apache' '--enable-safe-mode' '--with-openssl' '--with-mhash' '--enable-bcmath' '--with-bz2' '--with-pic' '--enable-calendar' '--enable-ctype' '--with-gdbm' '--with-db3' '--with-imap-ssl=/usr/local/lib/c-client' '--with-imap=/usr/local/lib/c-client' '--enable-dbase' '--enable-ftp' '--with-iconv' '--with-exif' '--enable-exif' '--with-gd' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png' '--with-gmp' '--with-mysql=shared,/usr' '--with-gettext=shared,/usr' '--with-expat-dir=/usr' '--with-xml' '--enable-wddx' '--with-mm=/usr' '--enable-trans-sid' '--enable-shmop' '--enable-sockets' '--with-regex=php' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp' '--enable-memory-limit' '--with-tsrm-pthreads' '--enable-shared' '--disable-debug' '--with-zlib=/usr' '--with-ldap=/usr' '--with-oci8-instant-client=/usr/lib/instantclient10_1'
LDAP Support enabled
RCS Version $Id: ldap.c,v 1.130.2.11 2005/01/19 00:28:49 sniper Exp $
Total Links 0/unlimited
API Version 3001
Vendor Name OpenLDAP
Vendor Version 20224
code :
code:
1
2
3
4
| echo "<h3>LDAP query test</h3>"; echo "Connecting ..."; $ds=ldap_connect("192.168.11.10"); // must be a valid LDAP server! echo "connect result is " . $ds . "<br />"; |
Geeft in m'n ontwikkelomgeving (WinXP / PHP 4.4 / Nusphere PHPEd) keurig een connectie naar de betreffende Novell 6.5 server, E-dir is ook prima uit te lezen met LDAP.
Door naar productieomgeving (Slackware 10) kan er geen verbinding gemaakt worden vanuit PHP met hetzelfde script : Unable to connect to LDAP server
Doe ik vanuit die slackware doos een ldapsearch -h 192.168.11.10 dan wordt de hele NDS weer keurig uitgelezen. LDAP connectie werkt dus wel vanuit die doos maar niet vanuit PHP.
Onderstaand de resultaten van phpinfo() op beide dozen. Ik zie maar minimale verschillen maar of dat de oorzaak is ?
Wie helpt me uit de brand ?
Jan
phpinfo() WinXP ontwikkeldoos (Nusphere PHPed)
PHP Version 4.4.0
System Windows NT WKS-SB-022 5.1 build 2600
Build Date Jul 11 2005 16:08:47
Server API CGI/FastCGI
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\Program Files\nusphere\phped\php\php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety enabled
Registered PHP Streams php, http, ftp, compress.zlib
LDAP Support enabled
RCS Version $Id: ldap.c,v 1.130.2.13 2005/05/08 16:06:24 sniper Exp $
Total Links 0/unlimited
API Version 2004
Vendor Name OpenLDAP
Vendor Version 0
phpinfo() Slackbox (de probleem doos)
PHP Version 4.3.11
System Linux slackbox 2.4.29 #23 Thu Jan 20 17:16:46 PST 2005 i686
Build Date May 13 2005 07:06:57
Configure Command './configure' '--prefix=/usr' '--disable-static' '--with-apxs=/usr/sbin/apxs' '--sysconfdir=/etc' '--enable-discard-path' '--with-config-file-path=/etc/apache' '--enable-safe-mode' '--with-openssl' '--with-mhash' '--enable-bcmath' '--with-bz2' '--with-pic' '--enable-calendar' '--enable-ctype' '--with-gdbm' '--with-db3' '--with-imap-ssl=/usr/local/lib/c-client' '--with-imap=/usr/local/lib/c-client' '--enable-dbase' '--enable-ftp' '--with-iconv' '--with-exif' '--enable-exif' '--with-gd' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png' '--with-gmp' '--with-mysql=shared,/usr' '--with-gettext=shared,/usr' '--with-expat-dir=/usr' '--with-xml' '--enable-wddx' '--with-mm=/usr' '--enable-trans-sid' '--enable-shmop' '--enable-sockets' '--with-regex=php' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp' '--enable-memory-limit' '--with-tsrm-pthreads' '--enable-shared' '--disable-debug' '--with-zlib=/usr' '--with-ldap=/usr' '--with-oci8-instant-client=/usr/lib/instantclient10_1'
LDAP Support enabled
RCS Version $Id: ldap.c,v 1.130.2.11 2005/01/19 00:28:49 sniper Exp $
Total Links 0/unlimited
API Version 3001
Vendor Name OpenLDAP
Vendor Version 20224