[horde] composite authentication and ldap

Laurent Foucher laurent.foucher at iut-tlse3.fr
Tue Apr 26 10:22:04 UTC 2011


Here the default configuration in /usr/share/php/Horde/Ldap.php

class Horde_Ldap
{
     protected $_config = array(
         'hostspec'        => 'localhost',
         'port'            => 389,
         'version'         => 3,
         'tls'             => false,
         'binddn'          => '',
         'bindpw'          => '',
         'basedn'          => '',
         'options'         => array(),
         'filter'          => '(objectClass=*)',
         'scope'           => 'sub',
         'user'            => array(),
         'auto_reconnect'  => false,
         'min_backoff'     => 1,
         'current_backoff' => 1,
         'max_backoff'     => 32,
         'cache'           => false,
         'cachettl'        => 3600);

I change the hostspec line with

  'hostspec'        => '10.0.0.1',


Laurent Foucher

>
> Zitat von Laurent Foucher <laurent.foucher at iut-tlse3.fr>:
>
>> Hi,
>>
>> I would like to use this configuration using composite authentication :
>>
>> $conf['auth']['driver'] = 'composite';
>> $conf['auth']['params']['admin_driver']['driver'] = 'ldap';
>> $conf['auth']['params']['admin_driver']['params'] = array(
>>        'hostspec' => '10.0.0.1',
>>        'binddn' => 'cn=horde_user,dc=yyyyyy,dc=fr',
>>        'bindpw' => 'xxxxxxx',
>>        'bindas' => 'admin',
>>        'basedn' => 'dc=yyyyyy,dc=fr',
>>        'scope' => 'sub',
>>        'ad' => false,
>>        'uid' => 'uid',
>>        'encryption' => 'md5-hex',
>>        'newuser_objectclass' => array('shadowAccount', 'inetOrgPerson'),
>>        'filter' => '(objectclass=shadowAccount)',
>>        'password_expiration' => 'no',
>>        'driverconfig' => 'custom'
>> );
>> $conf['auth']['params']['auth_driver']['driver'] = 'application';
>> $conf['auth']['params']['auth_driver']['params'] = array(
>>        'app' => 'imp');
>>
>> I have the following error :
>>
>> HORDE Bind failed: Can't contact LDAP server [pid 12279 on line 243  
>> of "/usr/share/php/Horde/Ldap.php"]
>>
>> When i set the hotspec with 10.0.0.1 in the file  
>> /usr/share/php/Horde/Ldap.php, all works fine.
>
> What *is* the hostspec if you don't set it manually?
>
> Jan.
>
> -- 
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
>
> -- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
>



-- 
- Laurent Foucher
< I U T 'A'  Paul Sabatier >
laurent.foucher at iut-tlse3.fr
Enseignant/Chargé de mission Systèmes & Réseau

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1703 bytes
Desc: Cl? publique PGP
URL: <http://lists.horde.org/archives/horde/attachments/20110426/7643ddb7/attachment.bin>


More information about the horde mailing list