This topic is locked
[SOLVED]

 ASPrunner and active directory or windows logon

12/7/2006 12:15:28 PM
ASPRunnerPro General questions
D
dunga author

I have a question, may be "beginner " level
is it at all possible to train ASP runner to accept windows user login automatically?
so that users wil not be entering their logins and passwords but logged in automatically with appropriate right?

Admin 12/7/2006

You can use LoginOnLoad event for this purpose.
Sample code:

if Request.ServerVariables("LOGON_USER")<>"" then

SESSION("UserID") = Request.ServerVariables("LOGON_USER")

SESSION("AccessLevel") = ACCESS_LEVEL_USER

Response.Redirect "..._list.asp"

end if
M
maurello 12/8/2006

I am also interested in this topic. Could you please explain me where I have to add that code?

And moreover, how do I manage the user permissions groups once I implement the single sign-on?
I would like users to connet to my web application by windows authentication, but at the same time maintain different permission levels.

Admin 12/8/2006

You need to add this code to LoginOnLoad event.
If you like to implement Group Permissions as well you need to set SESSION("GroupID") variable however I'm not sure where you can get group name from.

M
maurello 12/12/2006

I basically have to synchronize SQL Server with the AD and import the list of users as Users table to be used with ASP Runner. In that case, I could then assign group permissions and map each user to his/her group.
What does the code you sent me actually do? I can't see any difference. Do I have to modify it in accordance to our AD domain?
I would like to offer single sign-on to my users using Windows authentication against the AD. A user should automatically see the menu.asp and not the login.asp if accessing the website when logged in our domain.

P
PerOfoslo 12/12/2006

Stange when people don't tell what platform they are running 'asprunner' on (OS/DB): but when 'running':

If the server running asprunner is a member of 'your domain' this is automatic when you turn off the anonymous access for your site in the IIS admin? You might have to see if Windows autentication is turned on? There are several other issues here (windows AD!), but in general AD seems to work fine for IIS? If security is an issue look up IIS https. 2k3 is on this point very similar to 2k.

Admin 12/12/2006

Mauro,
my code allows you to use authenticated user AD name as a username in ASPRunnerPro to bypass ASPRunnerPro login page.

That is what your original question was about.