An NDoc Documented Class Library

ADLayer.FindUser Method 

Searches the forrest for the directory entry of the given user.

[Visual Basic]
Public Function FindUser( _ 
   ByVal principalname As String, _ 
   ByVal useGC As Boolean _ 
) As DirectoryEntry
[C#]
public DirectoryEntry FindUser(
   string principalname,
   bool useGC
);
[C++]
public: DirectoryEntry* FindUser(
   String* principalname,
   bool useGC
);
[JScript]
public function FindUser(
   String principalname,
   bool useGC
): DirectoryEntry;

Parameters

principalname
Name of the user to find. Must be in the form domain\user
useGC
Specifies whether to use the Global Catalog to find the user. If false, a standard LDAP-Query is used.

Return Value

The directoryentry of the user, if it is found. Null otherwise.

See Also

ADLayer Class | InfiniTec.ActiveDirectory Namespace