Using mantis with another web application(automatic logon)

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
wannaknow

Using mantis with another web application(automatic logon)

Post by wannaknow »

What is the general steps/ideas to implement the followings?

1. How to get the user id/password from an upper layer CMS(Contents Management System - Which will be a parent page of Mantis)?
In this case, should Mantis have the same user accounts in its db?

2. In case that Mantis is the parent and has other web applications(eg. another customized mantis) on the custom menus, what is the proper way to pass the logon info to the child web applications?

Any comment/advice will be much appreciated.
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

I suggest you look at already existing implementations that link Mantis to a content management system, if you don't find your CMS already integrated, then you can at least use these as examples for how the integration can be done.

http://www.mantisbt.org/links.php

You can also look at how ldap authentication is done in Mantis. This is also similar to what you are trying to do, except that it uses ldap rather than your CMS.

Regards,
Victor.
http://www.futureware.biz
wannaknow

Post by wannaknow »

Thanks for your advice. :)
dejong

login

Post by dejong »

Another way is just to read the login and (encrypted) password from the mantis_user_table and use these for login.php page...




$res = mysql_query('SELECT * FROM mantis_user_table WHERE access_level<=95 Order BY realname',$connection);
echo mysql_error() ;

echo "<table>";
echo "<tr><th>account</th><th>name</th><th>email</th><th>last </th><th>faults</th></tr>";

while ($row = mysql_fetch_assoc($res)){
echo "<tr><td><a href=\"login.php?username=".$row['username']."&password=".$row['password']."\">".$row['username']."</a></td><td>";

echo $row['realname']."</td><td><a href=\"mailto:".$row['email']."\">".$row['email']."</a></td><td>".$row['last_visit']."</td>";

echo "<td><a href=\"?resetid=".$row['id']."\">reset ".$row['failed_login_count']."</a></td></tr>";
}
echo "</table>";
Post Reply