M
MJ
Hi,
I'm trying to authenticate a user by creating a
DirectoryEntry using the contructor with signature
Dim objEntry = New DirectoryEntry(path, username, pwd).
and then i check for
If Not objEntry is Nothing then ... to continue processing
When a correct username/pwd is passed, everything works
fine. The problem is when an Invalid Username/pwd is
supplied.
objEntry is returned as an object so well it's
not 'Nothing'. Trying to access the underlying
NativeObject results in an exception. There are private
properties(Bound) and methods (adsobject) which could be
of help but since they are private, they cannot be
accessed. Could somebody please help me with how I could
check if the DirectoryEntry object returned is truly
bound and valid?
Thanks,
MJ
I'm trying to authenticate a user by creating a
DirectoryEntry using the contructor with signature
Dim objEntry = New DirectoryEntry(path, username, pwd).
and then i check for
If Not objEntry is Nothing then ... to continue processing
When a correct username/pwd is passed, everything works
fine. The problem is when an Invalid Username/pwd is
supplied.
objEntry is returned as an object so well it's
not 'Nothing'. Trying to access the underlying
NativeObject results in an exception. There are private
properties(Bound) and methods (adsobject) which could be
of help but since they are private, they cannot be
accessed. Could somebody please help me with how I could
check if the DirectoryEntry object returned is truly
bound and valid?
Thanks,
MJ