Click or drag to resize
Galactic API

ActiveDirectoryRoleProvider Class

A role provider for ASP.NET applications that utilizes Active Directory groups for role storage.
Inheritance Hierarchy

Namespace:  Galactic.Web.Security.ActiveDirectory
Assembly:  Galactic.Web.Security.ActiveDirectory (in Galactic.Web.Security.ActiveDirectory.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public class ActiveDirectoryRoleProvider : RoleProvider

The ActiveDirectoryRoleProvider type exposes the following members.

Constructors
  NameDescription
Public methodActiveDirectoryRoleProvider
Initializes a new instance of the ActiveDirectoryRoleProvider class
Top
Properties
  NameDescription
Public propertyApplicationName
The name of the application using the role information specified in the configuration file (Web.config). The ApplicationName is stored in the data source with related user information and used when querying for user information. This property is read-write and defaults to the ApplicationPath if not specified explicitly.
(Overrides RoleProviderApplicationName.)
Public propertyDescription
Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs).
(Inherited from ProviderBase.)
Public propertyMaxRoleNameLength
The maximum number of characters that a role name may contain.
Public propertyName (Overrides ProviderBaseName.)
Top
Methods
  NameDescription
Public methodAddUsersToRoles
Adds the specified user names to the specified roles for the configured applicationName.
(Overrides RoleProviderAddUsersToRoles(String, String).)
Public methodCreateRole
Adds a new role to the data source for the configured applicationName.
(Overrides RoleProviderCreateRole(String).)
Public methodDeleteRole
Removes a role from the data source for the configured applicationName.
(Overrides RoleProviderDeleteRole(String, Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindUsersInRole
Gets an array of user names in a role where the user name contains the specified user name to match.
(Overrides RoleProviderFindUsersInRole(String, String).)
Public methodGetAllRoles
Gets a list of all the roles for the configured applicationName.
(Overrides RoleProviderGetAllRoles.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetMembers
Gets a list of SAM Account Names for the security principals that belong to the role.
Public methodGetRolesForUser
Gets a list of the roles that a specified user is in for the configured applicationName.
(Overrides RoleProviderGetRolesForUser(String).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUsersInRole
Gets a list of users in the specified role for the configured applicationName.
(Overrides RoleProviderGetUsersInRole(String).)
Public methodInitialize
Takes as input the name of the provider and a NameValueCollection of configuration settings. Used to set property values for the provider instance including implementation-specific values and options specified in the configuration file (Machine.config or Web.config).
(Overrides ProviderBaseInitialize(String, NameValueCollection).)
Public methodIsUserInRole
Gets a value indicating whether the specified user is in the specified role for the configured applicationName.
(Overrides RoleProviderIsUserInRole(String, String).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveMember
Removes a members (group or user) from a role.
Public methodRemoveUsersFromRoles
Removes the specified user names from the specified roles for the configured applicationName.
(Overrides RoleProviderRemoveUsersFromRoles(String, String).)
Public methodRoleExists
Gets a value indicating whether the specified role name already exists in the role data source for the configured applicationName.
(Overrides RoleProviderRoleExists(String).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also