Forms and Windows Auth on the Same IIS
Hi, we need to have windows (employees) and form (customers) authentication on the same Gemini. So we have setup 2 applications under IIS default site: one called "Gemini" and the other "Gemini2". Copied original gemini folder with web application into new folder, changed web.config authenitication to Forms, made change to gemini and gemini2 authentication settings: first windows only, second anon and forms. Can log in as expected and administer. However, when we go to projects (or issues) from windows auth site we get error 400 Bad Request to "http://our.site.com/Gemini/%3C!DOCTYPE%20html%20PUBLIC%20%22-//W3C//DTD%20XHTML%201.0%20Strict//EN%22%20%22http://www..."
In general settings Full Genini URL is set to the other (forms auth. site) "http://our.site.com/Gemini2", Enforce Gemini URL is set to Yes.
Thanks.
k3btg
· 1 |
|
Friday, May 21, 2010, 4:04:08 PM |
0
|
Which version of Gemini are you running? If 3.6.z then set Enfore URL to "NO" and it should do the trick. |
||||
|
0
|
v3.6.5 Build 2638 |
||||
|
0
|
Just realised that Administration -> Global Settings -> General -> "Full Gemini URL" is site-specific. Changed to 2 different addresses in windows and forms sites and now it seems to be working as expected. Could you confirm that settings are site specific; i.e. stored in config file of web site, not in the database. Thanks. |
||||
|
0
|
Unfortunately, it is not site specific. However, setting "Enforce" to "NO" should do it. I presume the URL got changed to the forms URL when in windows mode. Is that correct? |
||||
|
0
|
No, they stayed different. In the first our.site.com/gemini it is "http://our.site.com/gemini" and in the second our.site.com/gemini2 it is "http://our.site.com/gemini2". Closed browser, opened again and they stay as is. But the fact that this is not web site specific setting kinda worrying me now... Which table general setting are stored? |
||||
|
0
|
The settings are stored in the gemini_applicationsettings table. What I meant in my previous post is: When you login to the windows site and you click on an issue, you get an error. Is the url in the address bar for the forms site? |
||||
|
0
|
No, not from forms site. Previously http://our.site.com/gemini changed to http://192.1.1.1/gemini; i.e. not the forms site, not windows site, but something else. |
||||
|
0
|
Restart of IIS reset both sites to the same "Full Gemini URL" value equal to the value stored in the table. I opened the other site after restart of IIS, changed setting there and now both sites use their own values. |
||||
|