dik mus
|
| Posted: 01/12/2006, 5:42 AM |
|
Hi,
I am using codecharge for building applications that run on a company's intranet.
This works fine, but I would like to replace the standard login screen by a auto login of the users windows-username.
Anybody knows if , and how this can be done?
Thanks Dik
|
|
|
 |
dragoon
Posts: 173
|
| Posted: 01/12/2006, 6:57 AM |
|
then don't use a login form at all; just set IIS site to Integrated Authentication and that's all
|
 |
 |
dikmus
Posts: 19
|
| Posted: 01/13/2006, 5:23 AM |
|
thanks dragoon,
that would indeed be a simple solution.
But I need to work with different security groups. Where do i make them, and How do i maitain these, also how do i set within codecharge wich groups can access a certain page?
_________________
www.musit.nl |
 |
 |
E43509
Posts: 283
|
| Posted: 01/13/2006, 6:53 AM |
|
make a default.aspx page do some work before it redirects you to the working page.
Have the default page grab the server variable for the user in the windows authenticated directory that you have set up for your web app
REMOTE_USER
Unmapped username string sent in by the user. This is the name that is really sent by the user as opposed to the ones that are modified by any authentication filter installed on the server.
AUTH_USER
Raw authenticated username.
I think that remote and auth user really return the same login id.
|
 |
 |
dragoon
Posts: 173
|
| Posted: 01/13/2006, 8:32 AM |
|
Quote dikmus:
thanks dragoon,
that would indeed be a simple solution.
But I need to work with different security groups. Where do i make them, and How do i maitain these, also how do i set within codecharge wich groups can access a certain page?
I am in similar situation. I only develop at this moment just apps that are part of the intranet..
i usually keep my users in a table that is sync-ed with the AD based on their security identifiers (AD uniques: objectSid, objectGuid). beside information like samacountname, name, email, department phone...and so on that is retrieved from AD, I keep columns like security level where I define my own security groups and other custom information application related.
on the default page I define a session var where I keep the security level...and I'm applying where is the case; for denying pages in the Afetr Initialize event for that page, for example.
|
 |
 |
|