C# 클래스 Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryUtils

Collection of Active directory utilities. Some are static methods, other require configuration, so they are instance methods.
파일 보기 프로젝트 열기: Evolveum/openicf 1 사용 예제들

공개 메소드들

메소드 설명
ActiveDirectoryUtils ( ActiveDirectoryConfiguration configuration ) : System

Constructor

ComToIcfException ( System.DirectoryServices.DirectoryServicesCOMException originalException, String message ) : Exception

Converts a DirectoryServicesCOMException into more meaningful ICF exception (e.g. AlreadyExistsException).

ConvertADGUIDtoObjectGUID ( string uid ) : string
ConvertUIDBytesToSearchString ( Byte guidBytes ) : String

Converts a guid in byte array form to a string suitable for ldap search.

ConvertUIDToSearchString ( Uid uid ) : String
GetCnValueUnescaped ( String nameValue ) : String
GetDomainControllerName ( ActiveDirectoryConfiguration configuration ) : string
GetNameAsCN ( String nameValue ) : String

Returns the leaf value of a distinguished name

GetRelativeName ( Name name ) : String
GetSecureString ( String stringToSecure ) : SecureString
NormalizeLdapString ( String ldapString ) : String

Puts an ldap string into a normalilzed format

OtherComToIcfException ( System originalException, String message ) : Exception

Converts a System.Runtime.InteropServices.COMException into more meaningful ICF exception (e.g. AlreadyExistsException).

RandomStr ( ) : string

비공개 메소드들

메소드 설명
AddConnectorAttributeToADProperties ( ObjectClass oclass, System.DirectoryServices.DirectoryEntry directoryEntry, ConnectorAttribute attribute, UpdateType type ) : void
ConvertBytesToADSpecialString ( string attribute, Byte bytes ) : String
ConvertSIDBytesToGUIDString ( Byte sidBytes ) : String
ConvertUIDBytesToGUIDString ( Byte guidBytes ) : String

Converts a guid in byte array form to a string with the format >GUID = xxxxxxxxxxxxxxxxxxxxxxxxxxxxx< where the x's represent uppercase hexadecimal digits

GetADObjectClass ( ObjectClass oclass ) : String

Returns the AD ObjectClass associated with a particular Connector ObjectClass

GetADSchema ( ) : System.DirectoryServices.ActiveDirectory.ActiveDirectorySchema
GetConnectorAttributeFromADEntry ( ObjectClass oclass, String attributeName, System.DirectoryServices searchResult, System.DirectoryServices.DirectoryEntry entry ) : ConnectorAttribute
GetDirectoryEntryFromUid ( String serverName, Uid uid, string adminUserName, string adminPassword ) : System.DirectoryServices.DirectoryEntry

Finds a DirectoryEntry by it's uid

GetDnFromPath ( string fullPath ) : string
GetDomainController ( ActiveDirectoryConfiguration configuration ) : System.DirectoryServices.ActiveDirectory.DomainController
GetFullPath ( string provider, string serverName, string path ) : String

Returns a path string in the format: provider://servernameIfSpecified/path

GetGCPath ( string serverName, string path ) : String

Returns a path string in the format: GC://servernameIfSpecified/path

GetLDAPPath ( string serverName, string path ) : String

Returns an ldap path in the form of: LDAP://servernameIfSpecified/path

GetLargeIntegerFromLong ( System.Int64 int64Value ) : LargeInteger
GetLongFromLargeInteger ( LargeInteger largeInteger ) : ulong
GetParentDn ( string childDn ) : string

Gets the dn of the parent object of the object specified by childDn

GetSingleValue ( System.DirectoryServices.PropertyValueCollection pvc ) : Object

Gets a single value from a propertyvaluecollection for a particular property name. Its an error if the property contains multiple values.

HandleNameAndContainerChange ( UpdateType type, System.DirectoryServices.DirectoryEntry directoryEntry, ICollection attributes, ActiveDirectoryConfiguration config ) : void

IsValidDn ( string dn ) : bool

Determines whether dn is a valid distinguished name.

A DN is valid if it can be processed by the AD API. This method does not test RFC 2253 compliance, but only basic syntactical check.

UpdateADObject ( ObjectClass oclass, System.DirectoryServices.DirectoryEntry directoryEntry, ICollection attributes, UpdateType type, ActiveDirectoryConfiguration config ) : void

Updates an AD object (also called by create after object is created)

getADSPathname ( string provider, string serverName, string path ) : IADsPathname

uses iadspathname to create paths in a standard way

메소드 상세

ActiveDirectoryUtils() 공개 메소드

Constructor
public ActiveDirectoryUtils ( ActiveDirectoryConfiguration configuration ) : System
configuration ActiveDirectoryConfiguration /// Configuration object for the connector. ///
리턴 System

ComToIcfException() 공개 정적인 메소드

Converts a DirectoryServicesCOMException into more meaningful ICF exception (e.g. AlreadyExistsException).
public static ComToIcfException ( System.DirectoryServices.DirectoryServicesCOMException originalException, String message ) : Exception
originalException System.DirectoryServices.DirectoryServicesCOMException
message String
리턴 System.Exception

ConvertADGUIDtoObjectGUID() 공개 정적인 메소드

public static ConvertADGUIDtoObjectGUID ( string uid ) : string
uid string
리턴 string

ConvertUIDBytesToSearchString() 공개 정적인 메소드

Converts a guid in byte array form to a string suitable for ldap search.
public static ConvertUIDBytesToSearchString ( Byte guidBytes ) : String
guidBytes Byte
리턴 String

ConvertUIDToSearchString() 공개 정적인 메소드

public static ConvertUIDToSearchString ( Uid uid ) : String
uid Org.IdentityConnectors.Framework.Common.Objects.Uid
리턴 String

GetCnValueUnescaped() 공개 정적인 메소드

public static GetCnValueUnescaped ( String nameValue ) : String
nameValue String
리턴 String

GetDomainControllerName() 공개 정적인 메소드

public static GetDomainControllerName ( ActiveDirectoryConfiguration configuration ) : string
configuration ActiveDirectoryConfiguration
리턴 string

GetNameAsCN() 공개 정적인 메소드

Returns the leaf value of a distinguished name
public static GetNameAsCN ( String nameValue ) : String
nameValue String
리턴 String

GetRelativeName() 공개 정적인 메소드

public static GetRelativeName ( Name name ) : String
name Org.IdentityConnectors.Framework.Common.Objects.Name
리턴 String

GetSecureString() 공개 정적인 메소드

public static GetSecureString ( String stringToSecure ) : SecureString
stringToSecure String
리턴 System.Security.SecureString

NormalizeLdapString() 공개 정적인 메소드

Puts an ldap string into a normalilzed format
public static NormalizeLdapString ( String ldapString ) : String
ldapString String
리턴 String

OtherComToIcfException() 공개 정적인 메소드

Converts a System.Runtime.InteropServices.COMException into more meaningful ICF exception (e.g. AlreadyExistsException).
public static OtherComToIcfException ( System originalException, String message ) : Exception
originalException System
message String
리턴 System.Exception

RandomStr() 공개 정적인 메소드

public static RandomStr ( ) : string
리턴 string