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
Purpose: Returns the current authentication type
Notes:



Top Method Summary
Options Name Purpose
+ CHARACTER GetGroups (character) Returns a comma separated 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 Distinguished 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 Distinguished Name of ? when the object has not been found */
+ CHARACTER GetPropertyValues (DirectoryEntry, character) Returns a delimited-list of property value(s) for the given Directory Entry
+ CHARACTER GetPropertyValues (DirectoryEntry, character, character) Returns a delimited-list of property value(s) for the given Directory 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 separated 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 Distinguished 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 Distinguished 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
Directory 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
Directory 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-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 13:32:24