UserDirectory Class

Base class for user directories.

Inheritance Hierarchy

Syntax

public class UserDirectory : Inedo.Diagnostics.ILogger

Constructors

Name Description
UserDirectory

Initializes a new instance of the UserDirectory class.

Events

Name Description
MessageLogged

Occurs when a message is logged.

Properties

Name Description
AnonymousUser

Gets the anonymous user.

ApiKeyUser

Gets the system API key user.

AuthenticatedGroup

Gets the pseudo-group that contains all users except AnonymousUser.

EveryoneGroup

Gets the pseudo-group that contains all users.

Methods

Name Description
FindGroups(string searchTerm)

Searches the directory for groups related to the specified search term.

FindPrincipals(string searchTerm)

Searches the directory for users or groups related to the specified search term.

FindUsers(string searchTerm)

Searches the directory for users related to the specified search term.

GetDescription

Returns a friendly description of this directory and its configuration.

GetGroupMembers(string groupName)

Returns an enumeration of IUserDirectoryUser for the group with the specified name.

Log(Inedo.Diagnostics.MessageLevel logLevel, string message)

Writes the specified message to the corresponding log.

TryGetAndValidateUser(string userName, string password)

Returns a IUserDirectoryUser for the user with the specified user name and password.

TryGetGroup(string groupName)

Returns a IUserDirectoryGroup for the group with the specified name.

TryGetPrincipal(string principalName)

Returns a IUserDirectoryPrincipal for the user or group with the specified name.

TryGetUser(string userName)

Returns a IUserDirectoryUser for the user with the specified user name.

TryParseLogonUser(string logonUser)

Returns a IUserDirectoryUser for the user with the specified LOGON_USER string.