Domain Logons

  • Thread starter Thread starter NetRacer
  • Start date Start date
N

NetRacer

i'm checking the logged on user at start of my program. if the user is not
in my database (e.g. he uses his private notebook instead of the company
desktop), i want to show a login screen where he can enter his windows
username and password. can i somehow send this to the logon server to check
if they are correct or do i have to enter passwords manually to my database
(i want to avoid this)?
 
Yes, you can obtain users and groups from Active Directory. We're doing
authentication from within VB.NET against Server 2003.

Take a look at the following:

DirectoryEntry
DirectorySearcher
SearchResultCollection
SearchResult

Specify your LDAP root.

Regards,

Tom
 
hmm... we have no ActiveDirectory here, only a simple NT4 domain. is it
somehow possible with this, too?
 
I think you can still use the same methods as long as you can get to your
directory via LDAP.
 
NetRacer,
You still use the Active Directory components & namespace for NT4, however
you need to use the WINNT provider (instead of the LDAP provider). For
details on the different providers, the following may be a good starting
point.

http://msdn.microsoft.com/library/d...WhatYouNeedToKnowAboutActiveDirectoryADSI.asp

Unfortunately I don't have a sample handy...

Hope this helps
Jay

| hmm... we have no ActiveDirectory here, only a simple NT4 domain. is it
| somehow possible with this, too?
|
|
| | > Yes, you can obtain users and groups from Active Directory. We're doing
| > authentication from within VB.NET against Server 2003.
| >
| > Take a look at the following:
| >
| > DirectoryEntry
| > DirectorySearcher
| > SearchResultCollection
| > SearchResult
| >
| > Specify your LDAP root.
| >
| > Regards,
| >
| > Tom
| >
| >
| >
| > | >> i'm checking the logged on user at start of my program. if the user is
| >> not in my database (e.g. he uses his private notebook instead of the
| >> company desktop), i want to show a login screen where he can enter his
| >> windows username and password. can i somehow send this to the logon
| >> server to check if they are correct or do i have to enter passwords
| >> manually to my database (i want to avoid this)?
| >>
| >>
| >
| >
|
|
 
Back
Top