How to modify redirect.php for auto login ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

First of all, sorry for my english because I'm a french user....
And thanks a lot to the developpers for this fantastic program.

I work in a school and we have in intranet on which teachers and students
have to login with their account and password. After login, there is a link
on the intranet to go to SM.

With 1.2 version, link pointed directly on /mail/src/redirect.php and this
file was modified to retrieve login and password from intranet
authentication :

if (isset($_SESSION['userdata']['utilisateurID']))
{$login_username = $_SESSION['userdata']['utilisateurID'];}

if (isset($_SESSION['userdata']['pAssWOrD!']))
{$secretkey = $userdata["pAssWOrD!"];}

I made an upadate from SM 1.2 to 1.4.19 (ans I test 1.4.20RC2 but same
problem) and the problem is : now redirect.php uses sqgetglobalvar, and I
don't now how to modify this !
I had to change the link to /mail/src/login.php so users have to identify
twice, and it is a big problem for me...
Is their any solution to retrieve login and passowrd in redirect.php ?

I tried hours and hours to modified it, I read a lot on internet
(http://www.nabble.com/Auto-Login-in-SquirrelMail.-td16292466.html) and
their is no way for me, I don't know anything in php :(

On the intranet login form is

<form action='traitementLdapAuth.php' name='ldapAuth' method='post'
onsubmit=\"validLDAPAuth();\" ><br />
Identifiant : <input type='text' name='login' style=\"text-align:center\"
size=\"15\" maxlength=\"20\" id=\"loginLDAP\" value=\"";
if($_COOKIE['lnd_username']) 
echo $_COOKIE['lnd_username'];
echo "\"></input><br /><br />
Mot De Passe : <input type='password' name='mDP' style=\"text-align:center\"
size=\"15\" maxlength=\"20\" id=\"mDP\" value=\"";
if($_COOKIE['lnd_password']) 
echo $_COOKIE['lnd_password'];	   
echo "\"></input><br /><br />
<input type='submit' value='CONNEXION'></input>
</form>

and these parameters are treated by another file in which there is :

$login = $_POST["login"];
$pass = $_POST["mDP"];

$userdata["utilisateurID"] = $login;
$userdata["pAssWOrD!"] = $pass;


I think I'm really unclear and sorry for this
Thanks a lot for your help
Matthieu
-- 
View this message in context: http://www.nabble.com/How-to-modify-redirect.php-for-auto-login---tp26024970p26024970.html
Sent from the squirrelmail-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux