[imp] select sever based on the user name
Michael Redinger
Michael.Redinger at uibk.ac.at
Sun Jul 24 04:47:01 PDT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
what is the best way to automatically select the server based on the
user name entered?
Eg. the user only enters the user name and cannot select the server. All
users starting with "cs" are sent to server A, users starting with "cx"
are sent to server B, all others to server C.
I could not find how to do this easily, therefore I wrote it myself.
See the links below for a diff for redirect.php and the sample hook
function. The hook is $conf['hooks']['autouserserver'] .
Warning: I have not written any code in PHP for quite some time, let
alone Horde/PHP. So this code is probably a mess ...
http://homepage.uibk.ac.at/~c102mr/autouserserver.diff
http://homepage.uibk.ac.at/~c102mr/autouserserver.hook
Greetings,
Michael
- --
Michael Redinger
Zentraler Informatikdienst (Central IT Services)
Universitaet Innsbruck
Technikerstrasse 13 Tel.: ++43 512 507 2335
6020 Innsbruck Fax.: ++43 512 507 2944
Austria Mail: Michael.Redinger at uibk.ac.at
BB98 D2FE 0F2C 2658 3780 3CB1 0FD7 A9D9 65C2 C11D
http://www.uibk.ac.at/~c102mr/mred-pubkey.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFC43+0D9ep2WXCwR0RAqaYAJ9OwqYctFvfUSOtcmzqXucZBOm0iQCg9aSQ
0v6Z7Hlom8pNYDECietVLfI=
=cHA3
-----END PGP SIGNATURE-----
More information about the imp
mailing list