authenticate user

Giganews Newsgroups
Subject: authenticate user
Posted by:  hngo01 (hngo…@discussions.microsoft.com)
Date: Thu, 21 Sep 2006

I am using VB 6 and ADSI object to authenticate user….

Set oAuth = oDSObj.OpenDSObject("LDAP://" + strNamingContext, strUsername,
strPassword, ADS_SECURE_AUTHENTICATION)

When a user has expired password or entered wrong password it return the
SAME error number “-2147023570”.
Is there a way to differentiate that?

Thanks

Replies