[turba] ldap address book configuration
Guillaume Barreau
g.barreau at gmail.com
Mon Jul 11 09:07:40 PDT 2005
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
More information about the turba
mailing list