MantisBT - CDash
View Issue Details
0009943CDashpublic2009-11-21 13:462013-12-21 17:01
Patrick R. Gansterer 
Julien Jomier 
normalfeatureN/A
closedfixed 
 
 
0009943: Add possibility for "singel sign on"
Add the possibility to check the (CVS-)user via $_SERVER["REMOTE_USER"].
No tags attached.
Issue History
2009-11-21 13:46Patrick R. GanstererNew Issue
2009-11-21 13:48Julien JomierNote Added: 0018500
2009-11-21 14:08Patrick R. GanstererNote Added: 0018501
2009-11-21 14:12Julien JomierNote Added: 0018502
2009-11-21 14:12Julien JomierStatusnew => assigned
2009-11-21 14:12Julien JomierAssigned To => Julien Jomier
2009-11-21 14:17Patrick R. GanstererNote Added: 0018503
2009-11-21 14:21Julien JomierNote Added: 0018504
2009-11-21 14:26Patrick R. GanstererNote Added: 0018505
2011-10-12 17:11Chris ScharverNote Added: 0027579
2013-12-21 17:01Julien JomierNote Added: 0034849
2013-12-21 17:01Julien JomierStatusassigned => closed
2013-12-21 17:01Julien JomierResolutionopen => fixed

Notes
(0018500)
Julien Jomier   
2009-11-21 13:48   
Could you describe a little more?
(0018501)
Patrick R. Gansterer   
2009-11-21 14:08   
I use a apache server, where the login is done by a apache module. The other services on this server use the $_SERVER["REMOTE_USER"] variable to identify the user. At the moment i need to log me in serate to use CDash. Instead it should use the $_SERVER["REMOTE_USER"] variable to avoid this addional prompt.
Because CDash doesn't have a separate user (only email) the cvsusername should be used for this.
(0018502)
Julien Jomier   
2009-11-21 14:12   
You can use $CDASH_EXTERNAL_AUTH=1 and it will use the $_SERVER["REMOTE_USER"] as email and bypass CDash's registration. The cvsusername is project specific and cannot really work to authenticate user in the system.
(0018503)
Patrick R. Gansterer   
2009-11-21 14:17   
When you use mod_svn with apache the cvsusername is exactly the right value. $_SERVER["REMOTE_USER"] is used when commiting.
I know your internal table structure ;-)
(0018504)
Julien Jomier   
2009-11-21 14:21   
I guess I don't get what you are trying to achieve. I understand that in your case the $_SERVER["REMOTE_USER"] is the cvsusername but what should we match this to in the CDash database to authenticate the user?
(0018505)
Patrick R. Gansterer   
2009-11-21 14:26   
With the current table structure it is not possible.
If you don't use the email address as login you can't use the mail function of CDash. Maybe you can add a additional column at the user table for the cvsuser, which is used as fallback for the project specific cvsusername
(0027579)
Chris Scharver   
2011-10-12 17:11   
Perhaps it should function similar to the LDAP authentication ... cdash appears to automatically register a user in the database. This does NOT happen when using external authentication. $_SERVER["REMOTE_USER"] isn't automatically registered as appears to happen when using LDAP.

I think fix would be for cdash to automatically register external users. Thus, users on a server configured with a single sign-on would be able to automatically access cdash.
(0034849)
Julien Jomier   
2013-12-21 17:01   
Feel free to reopen if needed