[imp] Fwd: PHPLIB + LDAP

Brent J. Nordquist bjn@horde.org
Wed, 14 Feb 2001 13:53:20 -0600 (CST)


Two or three people have recently asked about PHPLIB+LDAP.  It seems that
few people are doing this (or at least talking about it on the lists).
In theory, it should work (I have not tested it).  Here are a few
pointers:

(1)  Uncomment the "class HordeCT extends CT_Ldap" section in
horde/phplib/local.inc, AND specify ct_ldap.inc (not ct_sql.inc) in
horde/phplib/prepend.php3 -- that second one is the thing a lot of people
miss.

(2)  Make sure you specify the root dn and password in local.inc, which is
how PHPLIB would have access to modify LDAP.

(3)  Test with horde/test.php3 to make sure the PHPLIB link works and the
counter increments.  The following:

> Warning: LDAP: add operation could not be completed. in
> /usr/local/apache/php/ct_ldap.inc on line 48
> Session_ldap failed: LDAP add failed

suggests strongly to me that the root DN/password or other settings are
misconfigured.  What do your LDAP server logs say?  Are you able to make
modifications to your LDAP server using the command-line client tools
(ldapadd, etc.)?

(4)  For further information, read the PHPLIB documentation on how to
configure PHPLIB for LDAP:

http://phplib.netuse.de/documentation/documentation-3.html#ss3.7

-- 
Brent J. Nordquist <bjn@horde.org>
Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942