S
Steve Kallal
I am a relative newbie to ASP .NET security. I have an administrivate screen
to add users to a small database that manages privileges within a Web app.
The table contains the domain name and username. I want to be able to add a
user to the table and check to see if the Domain\Username combination is
valid in an Active Directory role.
However all of the .NET code samples I find require the domain, username and
password. I am looking for a way to verify a user is in an Active Directory
role without passing the password. For example, I can pass my Domain and
Username to a routine along with a password using the LogonUser API call and
then verify my membership in a role. But I want to be able to do this for
other users without knowing their passwords. My hunch is that this is not
possible. But I am hoping it is.
Otherwise, I will simply need to wait until the user logs onto the app and
the windows login fails.
Thanks in advance,
Steve Kallal
to add users to a small database that manages privileges within a Web app.
The table contains the domain name and username. I want to be able to add a
user to the table and check to see if the Domain\Username combination is
valid in an Active Directory role.
However all of the .NET code samples I find require the domain, username and
password. I am looking for a way to verify a user is in an Active Directory
role without passing the password. For example, I can pass my Domain and
Username to a routine along with a password using the LogonUser API call and
then verify my membership in a role. But I want to be able to do this for
other users without knowing their passwords. My hunch is that this is not
possible. But I am hoping it is.
Otherwise, I will simply need to wait until the user logs onto the app and
the windows login fails.
Thanks in advance,
Steve Kallal