Re: Retrieve attributes from Active Directory

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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:


.



Relevant Pages

  • Re: caching problem
    ... >I am new to asp.net I coded simple login form and placed two textboxes and ... I want to verify the uid and pwd in my databasewith the user ... You'll have to edit, compile, and then refresh the ...
    (microsoft.public.dotnet.framework.aspnet)
  • caching problem
    ... I want to verify the uid and pwd in my databasewith the user ... when i run the page from IE it is not updating the modified code. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: SQLSTRINGCONNECT und dann?
    ... pwd peer hand hinzugefuegt aber trotzdem geht es nicht. ... Nur DRIVER, SYSTEM, UID, PWD ist erforderlich. ... oder braucht vielleicht Foxpro irgendwas? ...
    (microsoft.public.de.fox)
  • Anllegen eines DSN funktioniert nur Ohne UID und PWD... warum?
    ... Allerinds funktioniert es nur wenn ich den odbc pfad ohne UID und PWD anlege. ... Im Code ist Uid und pwd auskommentiert so funktioniert der Code. ...
    (microsoft.public.de.sqlserver)