Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I validate an NT password?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00909838
Message ID:
00936454
Vues:
34
>>>>David,
>>>Hi George
>>>It works fine if password if valid, but get an OLE error, "Access is denied" on this line
>>>
>>>
loName.InitEx(3, "", lcUser, "", tcPassword)
>>>
>>>if either the password or user name (and possibly the domain/forest) is incorrect.
>>>
>>>I've fixed a little bug in the calling example, see below.
>>>
>>>So you're VERY close here.
>>
>>Whoops! Well, it was originally written to be a web service.< s > My bad. Note that there are two calls to validate the password. It's been found that the first sometimes suceeds with an invalid password. Probably needs two TRY...CATCH blocks.
>>
>>You want me to make this modification? I'm sure, however, that you could easily implement it.
>
>I was thinking another try/catch :-) too. Leave it to me George.

Dave,

Sure thing pal. I'd initially set the exception object to NULL and check with ISNULL() in the inner block...but you've probably thought of that also.< g >
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform