Re: Retrieve attributes from Active Directory
- From: "Babu VT" <babuvt@xxxxxxxxxxxxx>
- Date: Thu, 27 Jul 2006 16:12:44 +0530
Hi Pictor,
In this scenario, I would develop a login page with Userid and Pwd to
feed.When user enters his uid and pwd, i will then compare it with Active
directory to ensure both userid & password are correct.
Once done, store these uid & pwd session variables and use it to connect to
SQL database for any database operations in the web page.
You should ensure that your SQL server is in the same domain as the active
directory which you are quering.
I have indeed implemented a project on similar lines for one of our clients.
Note:
How do you compare uid & pwd with AD.. here is the answer...
http://www.codeproject.com/aspnet/activedirectoryuse.asp
rgds
babu
"Pictor" <Pictor@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:795FCD5A-DC4E-4ACF-9613-FBB37B6BBD0C@xxxxxxxxxxxxxxxx
My WebServer is configured with Anonymous Access disabled.
Infact untill now I can only retrieve the user account name (with
servervariables) and search it in the Active Directory (on another server)
to
autologin my users in the site.
So I can do some queries.
Now I have to synchronize the Active Directory users database with the
SQL-Server user database.
And I need to read the (i.e.) sAMAccountName.
But untill now I couldn't use it in the "SELECT .." clause (the same with
the LDAP syntax).
How can I specify in the code the user to use to query the Active
Directory?
I think with this I should resolve the problem, shouldn't it?
Or maybe you can suggest me what else can be the mistake.... :)
Thanks a lot!
"Babu VT" wrote:
.
- References:
- Re: Retrieve attributes from Active Directory
- From: Babu VT
- Re: Retrieve attributes from Active Directory
- Prev by Date: Re: group membership
- Next by Date: Re: group membership
- Previous by thread: Re: Retrieve attributes from Active Directory
- Next by thread: Re: Retrieve attributes from Active Directory
- Index(es):
Relevant Pages
|