|
PSA 2.x - 5.x Horde IMP Virtual Host Authentication |
|
|
|
Written by scott
|
|
Wednesday, 03 May 2006 |
People have been asking for a solution to the way authentication is handled in PSA's webmail system for a while now. I along with many others have been trying to figure out a solution to this problem for a while now. The following was entirely stumbled across by accident. Its functional, but ugly, I'm hoping someone else will pitch in here and give me a hand *wink*
About
This is a modification to Horde IMP that will add in the ability to distiquish users between multiple domains on the same PSA server. This solves the problem of user1@domain1.com from logging into webmail.domain2.com. This code, much like everything else I seem to have made lately is extremely rough, but functional.
Download
imp-auth-0.2.tgz(Thanks Mike!)
Installation
Step 1:
Replace $conf['user']['alternate_login'] = false; in
horde/imp/conf.php with
$conf['user']['alternate_login'] = 'index.html';
Step 2:
copy both files in the distribution to horde/imp
Step 3:
Set the admin password in hp2.php
$db = mysql_connect(":/var/lib/mysql/mysql.sock", "admin", "setup");
Change "setup" to your PSA admin password
Thats it, its rough, ugly, scary code. :)
Questions, comments, etc can be directed to me, scott AT atomicrocketturtle.com. No warranty, expressed or implied, yadda yadda. If this breaks things on your server, I'll be sad for you, but not responsible. :) ~ Only registered users can write comments. Please login or register. Powered by AkoComment 2.0.3! |