Namespace: Consultingwerk.Windows.Ldap
Class 
DirectoryHelper Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:DirectoryHelper
Author(s):Marko Rüterbories / Consultingwerk Ltd.
Created:Thu Feb 12 14:00:52 CET 2009



Top Method Summary
Options Name Purpose
+ CHARACTER GetGroups (character) Returns a comma seperated list of groups the given user is assigned to
+ CHARACTER GetObjectDistinguishedName (ObjectClassEnum, character, character) Returns the distinguishedName or ObjectGUID of an object contained in an ActiveDirectory. If the returned value is ? means that no Object with the given name has been found in the AD. @param poObjectClass Indicates what type of object is looked up. Possible values are "User, Group, Computer" @param cObjectName The object name (User Name) @param cLdapDomain This is the AD Domain for example "consultingwerk" @return The Objects Dsitinguished Name of ? when the object has not been found ------------------------------------------------------------------------------*/
+ CHARACTER GetObjectGuid (ObjectClassEnum, character, character) Returns the distinguishedName or ObjectGUID of an object contained in an ActiveDirectory. If the returned value is ? means that no Object with the given name has been found in the AD. @param poObjectClass Indicates what type of object is looked up. Possible values are "User, Group, Computer" @param cObjectName The object name (User Name) @param cLdapDomain This is the AD Domain for example "consultingwerk" @return The Objects Dsitinguished Name of ? when the object has not been found ------------------------------------------------------------------------------*/
+ CHARACTER GetPropertyValues (DirectoryEntry, character) Returns a delimited-list of property value(s) for the given Diretory Entry
+ CHARACTER GetPropertyValues (DirectoryEntry, character, character) Returns a delimited-list of property value(s) for the given Diretory Entry

Top Constructor Summary
Options Name Purpose
- DirectoryHelper () Disallow instance creation

Top Property Summary
Options Name Purpose
+ CHARACTER CurrentAuthenticationType
+ CHARACTER CurrentUserDomain
+ CHARACTER CurrentUserName


Method Detail
Top

PUBLIC CHARACTER GetGroups (character)

Purpose: Returns a comma seperated list of groups the given user is
assigned to
Notes:

Parameters:
pcUserDN CHARACTER
Use the Output of the method GetObjectDistinguishedName to be sure you have a working DN
Returns CHARACTER
The comma delimited list of groups the user is assigned to
Top

PUBLIC CHARACTER GetObjectDistinguishedName (ObjectClassEnum, character, character)

Purpose: Returns the distinguishedName or ObjectGUID of an object contained
in an ActiveDirectory.
If the returned value is ? means that no Object with the given
name has been found in the AD.

Parameters:
poObjectClass Consultingwerk.Windows.Ldap.ObjectClassEnum
Indicates what type of object is looked up. Possible values are "User, Group, Computer"
cObjectName CHARACTER
The object name (User Name)
cLdapDomain CHARACTER
This is the AD Domain for example "consultingwerk"
Returns CHARACTER
The Objects Dsitinguished Name of ? when the object has not been found
Top

PUBLIC CHARACTER GetObjectGuid (ObjectClassEnum, character, character)

Purpose: Returns the distinguishedName or ObjectGUID of an object contained
in an ActiveDirectory.
If the returned value is ? means that no Object with the given
name has been found in the AD.

Parameters:
poObjectClass Consultingwerk.Windows.Ldap.ObjectClassEnum
Indicates what type of object is looked up. Possible values are "User, Group, Computer"
cObjectName CHARACTER
The object name (User Name)
cLdapDomain CHARACTER
This is the AD Domain for example "consultingwerk"
Returns CHARACTER
The Objects Dsitinguished Name of ? when the object has not been found
Top

PUBLIC CHARACTER GetPropertyValues (DirectoryEntry, character)

Purpose: Returns a delimited-list of property value(s) for the given
Diretory Entry
Notes: Uses , as default delimiter
For a list of properties, see http://www.selfadsi.de/user-attributes.htm

Parameters:
poDirectoryEntry System.DirectoryServices.DirectoryEntry
The directory entry
pcPropertyName CHARACTER
The name of the property to return the value from
Returns CHARACTER
The property value
Top

PUBLIC CHARACTER GetPropertyValues (DirectoryEntry, character, character)

Purpose: Returns a delimited-list of property value(s) for the given
Diretory Entry
Notes: For a list of properties, see http://www.selfadsi.de/user-attributes.htm

Parameters:
poDirectoryEntry System.DirectoryServices.DirectoryEntry
The directory entry
pcPropertyName CHARACTER
The name of the property to return the value from
pcSeparator CHARACTER
The list delimiter to use
Returns CHARACTER
The property value


Constructor Detail
Top

PRIVATE DirectoryHelper ()

Purpose: Disallow instance creation
Notes:



Property Detail
Top

PUBLIC CHARACTER CurrentAuthenticationType


Returns CHARACTER
Top

PUBLIC CHARACTER CurrentUserDomain


Returns CHARACTER
Top

PUBLIC CHARACTER CurrentUserName


Returns CHARACTER


©2006-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.08.2019 00:08:49