[horde] passing authentication information

Tony Earnshaw tonni at billy.demon.nl
Sat Jan 11 11:53:04 PST 2003


lør, 2003-01-11 kl. 16:45 skrev Daniel Wittenberg:

> I think you might have understood what I'm trying to do.  I have done a
> lot of ldap and PHP programming, so I understand how that all works.  I
> specifically want the Turba module of Horde to take the username and
> password that someone logged into Horde with, and use that to
> authenticate them to the LDAP server.  I'm not using the LDAP server for
> authentincation per se, Horde should have already done that via
> imap/imp.  Make sense?

Yes, Ed was right, though as usual utra polite, and I was writing cr*p,
sorry.

Daniel what you want is what I have in Turba's sources.php, my miserable
excuses.

This is with PHP4.3, Openldap 2.1.10 and Turba 2.0-cvs. With it, I can
do whatever I want with my ldap DIT; update, different output on the
basis of ACLs, share with other apps etc.

$cn = Auth::getAuth();
$cfgSources['localldap'] = array(
    'title' => _("Local Directory Server"),
    'type' => 'ldap',
    'params' => array(
        'server' => 'ldaps://localhost/',
        'port' => 636,
        'root' => 'dc=billy,dc=demon,dc=nl',
 'cn=tonye,ou=people,ou=groups,dc=billy,dc=demon,dc=nl',
        'bind_dn' => 'cn=' . $cn .
',ou=people,ou=groups,dc=billy,dc=demon,dc=nl',
        'bind_password' => Auth::getCredential('password'),
        'dn' => array('cn'),
        'objectclass' => '*',
        'encoding' => 'utf8',
        'version' => 3
    ),

Best,

Tony

-- 

Tony Earnshaw

When all's said and done ...
there's nothing left to say or do.

e-post:		tonni at billy.demon.nl
www:		http://www.billy.demon.nl





More information about the horde mailing list