>>>>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