[turba] ldap authentication

Craig White craigwhite at azapple.com
Mon Aug 1 02:01:45 UTC 2011


nevermind - PEBKAC

On Sun, 2011-07-31 at 10:35 -0700, Craig White wrote:
> struggling a bit... I had this worked out for H3 but H4 is throwing me a
> bit.
> 
> Using 'Let a Horde application handle authentication' => Imp
> 
> in turba/config/backends.php
> 
> $_ldap_uid = $GLOBALS['registry']->getAuth('bare');
> $_ldap_passwd = $GLOBALS['registry']->getAuthCredential('password');
> $_ldap_basedn = 'dc=azapple.com,dc=com';
> $cfgSources['localldap'] = array(
>     // Disabled by default
>     'disabled' => false,
>     'title' => _("Shared Directory"),
>     'type' => 'ldap',
>     'params' => array(
>         'server' => 'localhost',
>         'port' => 389,
>         'tls' => false,
>         'root' => 'ou=addressbook,' . $_ldap_basedn,
>         'bind_dn' => 'uid=' . $_ldap_uid . ',ou=People,' .
> $_ldap_basedn,
>         'bind_password' => $_ldap_passwd,
> 
> the 'Shared Directory' doesn't show up. If I comment out the bind_dn &
> bind_password elements of the array, it does show up which tells me that
> the problem is binding (which makes sense because an anonymous bind
> allows read only access).
> 
> Do I have to implement something in a registry to get the values for:
> 
> $GLOBALS['registry']->getAuth('bare');
> $GLOBALS['registry']->getAuthCredential('password');
> 
> to populate properly?  Aren't they automatic?
> 
> Craig
> 




More information about the turba mailing list