[horde] Horde Authentication over OpenLDAP

luiz at pucrs.br luiz at pucrs.br
Tue Jan 27 03:24:47 PST 2004


Hello Edwin

Thanks a lot! My problem was, effectivelly, in the 'auth' array. I was
using 'mail' and the LDAP didn´t bind correctly. The correct array:

$conf['auth']['params'] = array(
        'hostspec' => 'localhost',
        'port' => '389',
        'basedn' => 'dc=my,dc=domain',
        'uid' => 'uid'
);

Thanks again for your help.
Best regards to all

Luiz



                                                                                                                                              
                      Edwin Culp                                                                                                              
                      <eculp at viviendaatualca        To:       horde at lists.horde.org                                                           
                      nce.com.mx>                   cc:                                                                                       
                      Sent by:                      Subject:  Re: [horde] Horde Authentication over OpenLDAP                                  
                      horde-bounces at lists.ho                                                                                                  
                      rde.org                                                                                                                 
                                                                                                                                              
                                                                                                                                              
                      26/01/2004 19:04                                                                                                        
                                                                                                                                              
                                                                                                                                              




Quoting luiz at pucrs.br:

> Hello
>
> I´m trying to install the Horde in one Solaris 9 box running OpenLDAP and
> Courier IMAP Server. In the google and list archives, I´ve found some
docs
> about to use the LDAP to store prefs of the Horde, but anything about
> authentication using OpenLDAP. Is it possible to make it? When I try to
log
> in with one LDAP user, there are the following error:
>
> "Required 'hostspec' not specified in authentication configuration."

For my version of horde, head, for prefs I use:

$conf['prefs']['params']['hostspec'] = 'localhost';

The array may be different in your version, I don't remember.

For auth I use the same localhost and it works fine.


$conf['auth']['params'] = array(         'hostspec' => 'localhost',
        'port' => 389,

I hope this helps,

ed
>
> My horde/test.php:
> Horde Versions
> Horde: 2.2.4
> Turba: 1.2.1
> PHP Version
> View phpinfo() screen
> PHP Version: 4.3.4
> PHP Major Version: 4.3
> PHP Minor Version: 4
> PHP Version Classification: release
> You are running a supported version of PHP.
> PHP Module Capabilities
> DOM XML Support: No
> FTP Support: No
> Gettext Support: Yes
> IMAP Support: Yes
> LDAP Support: Yes
> MCAL Support: No
> Mcrypt Support: Yes
> MySQL Support: Yes
> PostgreSQL Support: No
> XML Support: Yes
> Miscellaneous PHP Settings
> magic_quotes_runtime disabled: Yes
> file_uploads enabled: Yes
> safe_mode disabled: Yes
> trans_sid disabled: Yes
> PHP Sessions
> Session counter: 1
> To unregister the session: click here
> PEAR
> PEAR - Yes
> Recent PEAR - Yes
> Mail - Yes
> Log - Yes
> DB - Yes
> Net_Socket - Yes
> Date - Yes
> HTML_Common/HTML_Select - No
> Horde requires the HTML_Common and HTML_Select classes only for Kronolith
> 1.0 to display forms correctly.
>
> My horde/config/horde.php
> <--snip-->
> $conf['auth']['driver'] = 'ldap';
> $conf['auth']['params'] = array();
> <--snip-->
> $conf['prefs']['driver'] = 'ldap';
> $conf['prefs']['params']['hostspec'] = 'ldap.my.domain';
> $conf['prefs']['params']['port'] = '389';
> $conf['prefs']['params']['basedn'] = 'dc=my,dc=domain';
> $conf['prefs']['params']['uid'] = 'mail';
> <--snip-->
>
> I think that I need to define 'hostspec' (and the other LDAP parameters)
in
> another part of horde.php or another file, but I don´t know where.
> Can someone help me?
>
> Thanks (a lot) in advance
>
>
>
>
>
> --
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org

--
Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: horde-unsubscribe at lists.horde.org








More information about the horde mailing list