Re: VB6 & Active Directory
- From: "Mark Yudkin" <DoNotContactMe@xxxxxxxxxxxxxx>
- Date: Wed, 1 Aug 2007 19:02:12 +0200
The OP asked "Is it possible to verify AD passwords for use with 2.", where
"2. User logs in the app using his AD username & password.". I therefore
understood him to want to validate a given username + password pair inside
of his application, not as wanting to to manipulate AD properties from
within his application.
As of W2K, a DC authenticates domain accounts "using AD information" via
Kerberos. Kerberos does not pass passwords across the network, rather it
uses a "double-encryption technique" (that's very sloppy I know) to verify
that both parties know the same shared secret, without either party having
to reveal that secret. That validation produces a ticket granting ticket
that is used for all further authentication purposes, so that applications
never need to know anything about passwords. This is what makes it possible
to replace passwords with smartcards, SecurId, biometric devices or the
like.
"Tony Proctor" <tony_proctor@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ukQJqzE1HHA.3768@xxxxxxxxxxxxxxxxxxxxxxx
There is no such thing as an AD password
It's probably a "word" issue Mark but I would say that term does have some
validity. AD is a just hierarchical database of network-wide objects. As
of
W2K, a domain controller validates domain accounts using AD. Local
accounts
are still validated against the registry-based SAM used pre-W2K. Mostly,
though (with a few exceptions), user management shouldn't have to worry
about that
Coming back to Ivan's question: have you looked at using the "Active DS
Type
Library", e.g. IADsUser, etc. They allows you to browse machines, groups,
users in a group, etc., and manage their properties
Tony Proctor
"Mark Yudkin" <DoNotContactMe@xxxxxxxxxxxxxx> wrote in message
news:emPSJib0HHA.1484@xxxxxxxxxxxxxxxxxxxxxxx
Judging from your question you seemed to be very confused between AD andany
security. There is no such thing as an AD password. AD is a directory.
Security is provided by security providers such as Kerberos.
Provided your application understands Windows security, your user doesn't
need to log in. Making a VB6 application understand Windows security is
normally very easy, in the worst case you have to do a bit of COM+
coding,
but that's a piece of cake in VB6 once you've understood the basics. The
usual case in which authentication is needed is web clients, but for that
case IIS provides all the parts you need as part of ASP / ASP.NET.
If your application needs to log in a user, the API is called LogonUser.
Normally such applications should run as services; under Windows 2000 and
earlier, the API must be run from within the SYSTEM TCB.
An appliation prompting a user for a password should use
CredUIPromptForCredentials or CredUICmdLinePromptForCredentials. You can
then call CredUIParseUserName and CredUIConfirmCredentials to validate
the
credentials.
There is no easy way to verify a user's password (I believe Vista added
an
API, but am unsure). You can use the SSPI directly; C code was provided
in
the April 2001 MSDN Magazine, and it may be possible to convert this to
VB6 - you're on your own if you choose to follow this route.
"Ivan Debono" <ivanmdeb@xxxxxxxxxxx> wrote in message
news:OMi$G8C0HHA.464@xxxxxxxxxxxxxxxxxxxxxxx
Hi all!!
A VB6 app must integrate with AD, specifically the user management
part.
Basically this is what needs to be done.
1. App displays list of AD users (this should be easy with the
activeds.tlb)
2. User logs in the app using his AD username & password.
Question...
Is it possible to verify AD passwords for use with 2 as I didn't find
relevant method so far???
Thanks,
Ivan
.
- Follow-Ups:
- Re: VB6 & Active Directory
- From: Tony Proctor
- Re: VB6 & Active Directory
- References:
- Re: VB6 & Active Directory
- From: Tony Proctor
- Re: VB6 & Active Directory
- Prev by Date: Re: newbie: Converting code back to VB 5.0
- Next by Date: Re: Stupid problem
- Previous by thread: Re: VB6 & Active Directory
- Next by thread: Re: VB6 & Active Directory
- Index(es):
Relevant Pages
|