[horde] Horde SQL Authentication with Postnuke....?

Hugo Proost horde at proost.net
Tue Apr 1 09:09:20 PST 2003


Thanx for the advice! (Even though I am not quiet sure that I understand
it)

So far I managed to get Horde to us the Postnuke userdatabase by
changing the following lines in the main horde config.php

-------------------------

/**
 ** Horde Authentication
 **/

$conf['auth']['admins'] = array('admin','hugo'); $conf['auth']['driver']
= 'sql';

$conf['auth']['params'] = array();

// $conf['auth']['params']['phptype'] = 'mysql;
// $conf['auth']['params']['hostspec'] = 'localhost';
// $conf['auth']['params']['protocol'] = 'tcp';
// $conf['auth']['params']['username'] = 'horde';
// $conf['auth']['params']['password'] = '*****';
$conf['auth']['params']['database'] = 'phoenix';
$conf['auth']['params']['table'] = 'nuke_users';
$conf['auth']['params']['username_field'] = 'pn_uname';
$conf['auth']['params']['password_field'] = 'pn_pass';


// $conf['auth']['params']['query_auth'] = '';
// $conf['auth']['params']['options'] = '';
// $conf['auth']['params']['tty'] = '';
// $conf['auth']['params']['port'] = '';
-----------------------

It works even though it is probably not the correct way to do things.

For the part about the "postnuke's session cookies/auth tokens/whatever
it  uses" ..... 

...I don't even know where to start on this one. Most of the PHP files I
looked at are like Chinees to me. I think postnuke uses cookies but that
doesn't realy help me a lot.

Where do I tell Horde to use files like the "horde\lib\Auth\IPBASIC.PHP"
or the "horde\lib\Auth\HTTP.PHP"
 
Thnx

-----Original Message-----
From: horde-bounces at lists.horde.org
[mailto:horde-bounces at lists.horde.org] On Behalf Of Chuck Hagenbuch
Sent: Monday, March 31, 2003 8:30 PM
To: horde at lists.horde.org
Subject: Re: [horde] Horde SQL Authentication with Postnuke....?

Quoting Hugo Proost <hugo.proost at bigfoot.com>:

> Now I was wondering if it would be possible to let Horde
authentication
> look at the Postnuke MySQL database. I want to prevent users that have
> already been authenticated by Postnuke from having to fill in there
> username and password again if the want to enter Horde.

For that, you should write a transparent Auth driver (look at Auth_http
or
Auth_ip for an example) that checks postnuke's session cookies/auth
tokens/whatever it uses.

For using the database, look at Auth_customsql for a way of using any
kind
of user table.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"... It is not more light we need, but more warmth! We die of cold, not
of
darkness. It is not the night that kills, but the frost." - Miguel de
Unamuno

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



More information about the horde mailing list