[imp] LDAP is mocking me
Anthony Stanton
anthony.stanton@es.easynet.net
Wed, 25 Sep 2002 14:35:38 +0200
On Wed, Sep 25, 2002 at 08:21:58AM -0400, Brett Charbeneau wrote:
> Greetings,
>
Hi Brett,
> Second, while not new to Linux, I'm a total newbie to LDAP and PHP
> and I wonder now how I made it this far without dealing with them. If
> there's a cool LDAP FAQ I'm not able to find, a bump in that direction
> would be most appreciated!
> I've set up Horde 2.1 and IMP 3.1 on a RH7.1 machine. After
> initially getting it up and running, easy because of the killer docs and
> FAQs, I am now trying to set up preferences containers via LDAP.
> I'm and RPM kinda guy, so that's what I've used (I'll include
> a list of them at the bottom of this post). For LDAP I used:
>
> openldap-clients-2.0.21-0.7.1
> openldap-2.0.21-0.7.1
> openldap-servers-2.0.21-0.7.1
I don't know the PHP RPM setup, but you'd need PHP compiled/installed with
LDAP support.
> Here's (what I think are) the relevant contents of my horde.php
> file:
>
> $conf['auth']['driver'] = 'ldap';
Do you really need this? This is for authentication, not preferences. This
would be for doing logins off LDAP. You probably want to auth off IMP, which
is done by uncommenting these lines in horde/config/registry.php:
$this->registry['auth']['login'] = 'imp';
$this->registry['auth']['logout'] = 'imp';
> $conf['prefs']['params'] = array();
> $conf['prefs']['driver'] = 'ldap';
> $conf['prefs']['params']['hostspec'] = '209.96.177.123';
> $conf['prefs']['params']['port'] = '389';
> $conf['prefs']['params']['basedn'] = 'dc=wrl,dc=org';
> $conf['prefs']['params']['uid'] = 'mail';
>
>
> I left this stuff as is 'cause, after all, I'm an LDAP idiot:
>
> //$conf['prefs']['params']['rootdn'] = 'cn=root,dc=wrl,dc=org';
> //$conf['prefs']['params']['username'] = 'Manager';
> //$conf['prefs']['params']['password'] = 'password';
>
> This could be the key.
To write to LDAP you usually do need to bind to the server with a
username and password. Check the archives for this list, this has been
covered several times.
> Anyway, test.php gives me a definite "LDAP Support: No" so I'm
> gobering something up right good.
This is probably what I said earlier about not having LDAP support in
your PHP. Maybe it's called php-ldap-something.rpm, I'm not really
familiar with RPM.
Hope this helps,
--
Anthony Stanton +34 91 789 46 00
Systems Administrator http://www.es.easynet.net/
Easynet Espaņa - Madrid - Espaņa anthony.stanton@es.easynet.net