Novell::iFolder::Utility::LdapUtility Class Reference

LDAP Utility Object. More...

List of all members.

Public Member Functions

 LdapUtility (string url, string dn, string password)
 Constructor.
void Connect ()
 Connect and/or Bind to the LDAP Server.
void Disconnect ()
 Disconnect from the LDAP Server.
bool ChangePassword (string dn, string password)
 change the password
bool CreateUser (string dn, string password)
 Create a New User in the LDAP Tree.
void GrantReadRights (string userDN, string containerDN)
 Grant Read Rights to the LDAP User on the the LDAP Container.
LdapDirectoryType QueryDirectoryType ()
 Queries to find the type of directory.
bool ValidateSearchContext (string context)
 Validates a context.

Static Public Attributes

static readonly string LDAP_SCHEME = "ldap"
 LDAP Scheme.
static readonly string LDAP_SCHEME_SECURE = "ldaps"
 Secure LDAP Scheme.

Properties

string DN [get]
 LDAP Bind User DN.
string Host [get]
 LDAP Host.
LdapDirectoryType DirectoryType [get]
 Gets the LDAP directory type.
string Password [get]
 LDAP Bind User Password.
int Port [get]
 LDAP Port.
bool Secure [get]
 LDAP Secure Connection.


Detailed Description

LDAP Utility Object.


Constructor & Destructor Documentation

Novell::iFolder::Utility::LdapUtility::LdapUtility ( string  url,
string  dn,
string  password 
) [inline]

Constructor.

Parameters:
url LDAP URL
dn LDAP User DN
password LDAP User Password


Member Function Documentation

void Novell::iFolder::Utility::LdapUtility::Connect (  )  [inline]

Connect and/or Bind to the LDAP Server.

void Novell::iFolder::Utility::LdapUtility::Disconnect (  )  [inline]

Disconnect from the LDAP Server.

bool Novell::iFolder::Utility::LdapUtility::ChangePassword ( string  dn,
string  password 
) [inline]

change the password

Parameters:
dn sn for which change is to be done
password password
Returns:
true if changed successfully

bool Novell::iFolder::Utility::LdapUtility::CreateUser ( string  dn,
string  password 
) [inline]

Create a New User in the LDAP Tree.

Parameters:
dn The New User DN
password The New User Password
Returns:
true, if the user was created. false, if the user already exists.

void Novell::iFolder::Utility::LdapUtility::GrantReadRights ( string  userDN,
string  containerDN 
) [inline]

Grant Read Rights to the LDAP User on the the LDAP Container.

Parameters:
userDN The LDAP User DN
containerDN The LDAP Container DN

LdapDirectoryType Novell::iFolder::Utility::LdapUtility::QueryDirectoryType (  )  [inline]

Queries to find the type of directory.

Returns:
The LDAP directory type.

bool Novell::iFolder::Utility::LdapUtility::ValidateSearchContext ( string  context  )  [inline]

Validates a context.

Parameters:
context The context to validate.
Returns:
True if the context is valid; otherwise, False is returned.


Member Data Documentation

readonly string Novell::iFolder::Utility::LdapUtility::LDAP_SCHEME = "ldap" [static]

LDAP Scheme.

Secure LDAP Scheme.


Property Documentation

string Novell::iFolder::Utility::LdapUtility::DN [get]

LDAP Bind User DN.

string Novell::iFolder::Utility::LdapUtility::Host [get]

LDAP Host.

LdapDirectoryType Novell::iFolder::Utility::LdapUtility::DirectoryType [get]

Gets the LDAP directory type.

string Novell::iFolder::Utility::LdapUtility::Password [get]

LDAP Bind User Password.

int Novell::iFolder::Utility::LdapUtility::Port [get]

LDAP Port.

bool Novell::iFolder::Utility::LdapUtility::Secure [get]

LDAP Secure Connection.


The documentation for this class was generated from the following file:

Generated on Wed Apr 8 14:43:41 2009 for simias by  doxygen 1.5.6