Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I need a API's function

104 views
Skip to first unread message

Gerardo Piemontese

unread,
Nov 24, 2008, 12:31:33 PM11/24/08
to
Hello:
I need a API's function that I send the username and password and
return TRUE or FALSE, if this username exists in the windows domain.

Is it possible?

Sorry for my english.

Thanks.

Gerardo Piemontese Inteligencia y Tecnología S.A. Montevideo 770 9º
C1019ABP - Ciudad de Buenos Aires (+54 11) 5199-9904 ISO9001:2000
Certificado. www.intecsoft.com.ar


DaveMo

unread,
Nov 25, 2008, 10:27:03 AM11/25/08
to
On Nov 24, 9:31 am, "Gerardo Piemontese"

You don't need a password just to find out if an account exists.
LookupAccountName() (native code) or WindowsIdentity() (managed) would
be adequate to verify the account exists.

It may be that are trying to verify the password & account, and if so,
then LogonUser() works for best either directly in native code or
pinvoked in managed code.

HTH,
Dave

0 new messages