Click or drag to resize
Galactic API

ActiveDirectory Class

ActiveDirectory is a class that allows for the query and manipulation of Active Directory objects.
Inheritance Hierarchy
SystemObject
  Galactic.ActiveDirectoryActiveDirectory

Namespace:  Galactic.ActiveDirectory
Assembly:  Galactic.ActiveDirectory (in Galactic.ActiveDirectory.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public class ActiveDirectory : IDisposable

The ActiveDirectory type exposes the following members.

Constructors
  NameDescription
Public methodActiveDirectory(String, String)
Binds to Active Directory using the configuration in the specified configuration item.
Public methodActiveDirectory(String, String, String)
Binds to Active Directory. Uses the current session credentials to authenticate.
Public methodActiveDirectory(String, String, SecureString, String)
Binds to Active Directory.
Public methodActiveDirectory(String, String, String, SecureString, String)
Constructs an Active Directory object with a base of the specified OU. Binds to Active Directory.
Top
Properties
  NameDescription
Public propertyAdministratorsGroupDN
The distinguished name of the Administrators group for this domain.
Public propertyDistinguishedName
The base distinguished name (DN) of Active Directory.
Public propertyDomainAdminsGroupDN
The distinguished name of the Domain Administrators group for this domain.
Public propertyDomainUsersGroupDN
The distinguished name of the Domain Users group for this domain.
Public propertyEnterpriseAdminsGroupDN
The distinguished name of the Enterprise Administrators group for this domain.
Public propertyName
The domain name of the Active Directory.
Public propertyNTName
The NT style domain name of the Active Directory.
Public propertyWellKnownSid_System
The SYSTEM sid.
Top
Methods
  NameDescription
Public methodAdd
Adds an entry to the Active Directory with the specified distinguished name and attributes.
Public methodAddOrReplaceAttributeValue
Adds or replaces the attribute value(s) in the supplied entry.
Public methodAppendDistinguishedName
Appends the distinguished name of this Active Directory domain to the relative path to the root supplied.
Public methodDelete
Deletes an entry with the specified GUID from Active Directory.
Public methodDeleteAttribute
Deletes an attribute's values from the specified entry in Active Directory.
Public methodDispose
Releases underlying resources associated with the Active Directory connection.
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 methodGetByteAttributeValue
Gets the first byte attribute value from the supplied entry.
Public methodGetByteAttributeValues
Gets all byte attribute values from the supplied entry.
Public methodStatic memberGetDateTimeFromUTCCodedTime
Gets a DateTime representation from the UTC coded time string used by some Active Directory attributes.
Public methodGetEntries
Gets all entries in a search given an LDAP search filter.
Public methodGetEntriesByAttribute
Gets entries that match a given wildcarded (*) attribute value in the supplied attribute.
Public methodGetEntriesBySAMAccountName
Gets entries that match a given wildcarded (*) SAM account name.
Public methodGetEntry
Gets the first entry in a search given an LDAP search filter.
Public methodGetEntryByAccountId
Gets an entry given its Account ID.
Public methodGetEntryByAttribute
Gets an entry given an attribute name and value to search for.
Public methodGetEntryByCommonName
Gets an entry given its common name.
Public methodGetEntryByDistinguishedName
Gets an entry given its distinguished name.
Public methodGetEntryByEmailAddress
Gets an entry given its E-mail address.
Public methodGetEntryByGUID
Gets an entry given its GUID.
Public methodGetEntryBySAMAccountName
Gets an entry given its SAM account name.
Public methodGetGUID
Gets the GUID of the supplied entry.
Public methodGetGUIDByAttribute
Gets the GUID of the entry with the supplied attribute value.
Public methodGetGUIDByCommonName
Gets the GUID of the entry with the supplied common name.
Public methodGetGUIDByDistinguishedName
Gets the GUID of the entry with the supplied distinguished name.
Public methodGetGUIDByEmployeeNumber
Gets the GUID of the entry with the supplied employee number.
Public methodGetGUIDBySAMAccountName
Gets the GUID of the entry with the supplied SAM account name.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetIntervalAttributeValue
Gets the UTC DateTime from a Interval attribute of the supplied entry.
Public methodStatic memberGetSiteDomainControllers
Gets the domain controllers associated with a specific Active Directory site from the Active Directory's DNS SRV records.
Public methodGetStringAttributeValue
Gets the first string attribute value from the supplied entry.
Public methodGetStringAttributeValues
Gets all string attribute values from the supplied entry.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberGetUserAccountControlName
Gets a string with the name of a User Account Control flag given its value.
Public methodStatic memberIsGroupNameValid
Checks whether the group name supplied conforms to the limitations imposed by Active Directory. Active Directory Group Name Limitations: 63 character length limit Can not consist solely of numbers, periods, or spaces. There must be no leading periods or spaces.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveRenameObject
Moves and / or renames an object in Active Directory.
Public methodSetSearchBase
Sets the object that is the base for all searches within Active Directory. This only needs to be set if you need to search somewhere other than the base of the directory.
Public methodStatic memberToInterval(DateTime)
Gets a Interval value of the supplied DateTime. Interval attributes are stored as Windows File Time strings with the number of 100-nanosecond intervals that have elapsed since 12:00 midnight, January 1, 1601 AD, UTC.
Public methodStatic memberToInterval(UInt64)
Gets a Interval value of the supplied UInt64. Interval attributes are stored as Windows File Time strings with the number of 100-nanosecond intervals that have elapsed since 12:00 midnight, January 1, 1601 AD, UTC.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberUserAccountControlContains
Tests whether an integer contains a UserAccountControl flag.
Top
Fields
  NameDescription
Public fieldStatic memberDEFAULT_FIRST_SITE_NAME
The default first site name in Active Directory.
Public fieldStatic memberGROUP_NAME_MAX_CHARS
The maximum number of characters supported for a group's name in Active Directory.
Public fieldStatic memberMAX_NUM_MULTIVALUE_ATTRIBUTES
The maximum number of values that can be retrieved from a multi-value attribute in a single search request. Windows 2000 DCs do not support this value and default to a maximum of 1000;
Public fieldStatic memberPAGE_SIZE
The size of page to use when searching Active Directory. This number is based upon hardcoded Microsoft limits within Active Directory's architecture.
Top
See Also