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.
Using mantis with another web application(automatic logon)
Moderators: Developer, Contributor
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
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
login
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>";
$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>";