[turba] Fwd: Re: ldap address book configuration

Chuck Hagenbuch chuck at horde.org
Mon Jul 11 08:28:37 PDT 2005


Please keep threads on the list.

----- Forwarded message from g.barreau at gmail.com -----
    Date: Mon, 11 Jul 2005 11:18:35 -0300
    From: Guillaume Barreau <g.barreau at gmail.com>
Reply-To: Guillaume Barreau <g.barreau at gmail.com>
Subject: Re: [turba] ldap address book configuration
      To: Chuck Hagenbuch <chuck at horde.org>

Hi chuck and thanks for your very prompt reply,

> Okay - a patch for the shared configuration would be great. We'll
> remove the core.schema patch once you submit a tweaked example that
> works.

See below ...

> > Even better would be to find a solution which would work with a single
> > name field. One way would be to map the name attribute to both the cn
> > and sn attributes in ldap. I have tried putting both:
> > 'name' => 'cn',
> > 'name' => 'sn',
> > in sources.php but that didn't work. Does anybody know how to do that?
>
> We'd have to change the config format a bunch for that; simply doesn't
> work in PHP.

Is there no other way to have the same result with less effort that
you can think of? Because that would be my preferred solution (cn=sn).

> > Fatal error: _checkrequiredattributes(): Failed opening required
> > 'Net/LDAP.php'
> > (include_path='/var/www/horde/lib:.:/usr/share/php:/usr/share/pear')
> > in /var/www/horde/turba/lib/Driver/ldap.php on line 519
>
> The error is pretty clear, no?

Well something like "missing Pear Module Net_LDAP" would be clearer
but yet I agree that I could have eventually figured it out.

> pear install Net_LDAP

Okay I did that (although that module is not stable, it installed okay
from the tgz). And as a result it worked with a whitespace for
checkrequired_string being added automatically for sn. Great!

So my suggestion is to modify the sources.php.dist to have:

// necessary to bypass the need to generate a valid sn for the person
objectClass
        'checkrequired' => true, instead of false in the localldap 
example (I haven't tried the other
ldap example).

And may be instruct that Net_LDAP is a prerequisite for getting turba
to work with LDAP. That seems much better than tweaking core.schema to
me. What do you think?

Guillaume


----- End forwarded message -----


-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams


More information about the turba mailing list