sfi.director.repository.LDAP Class Reference

Inheritance diagram for sfi.director.repository.LDAP:

sfi.director.repository.DBConnection List of all members.

Public Member Functions

 LDAP ()
 LDAP (String url)
void setCredentials (Credentials cred)
synchronized void setURL (String url) throws DirectorException
DN completeDN (DN dn)
Enumeration search (String expr, final Options searchopt) throws DirectorException
DBAccessor get (DN dn) throws DirectorException
void replace (DBObject dbo) throws DirectorException
void remove (DBObject dbo) throws DirectorException
void modify (DBObject dbo, Vector attrs) throws DirectorException
void append (DBObject dbo) throws DirectorException
 *
Exceptions:
DirectorException 

void truncate () throws DirectorException
DN forceRelative (String name, DN base)

Static Public Member Functions

static Attributes toAttributes (DBObject dbo)

Static Public Attributes

static final int retryLoopDelay = 5000
static final int retryMaxCount = 24

Protected Member Functions

CompositeName makeName (String dn) throws DirectorException

Static Protected Member Functions

static String mangleFilter (String filter)

Protected Attributes

LdapContext rootContext
String host
DN rootDN
Credentials accessCreds
String orgUrl
boolean wasConnectedBefore = false
boolean flakyServer = false
 Is our LDAP server not standard-compliant? If set to true the LDAP module will try to emulate some functions.

Static Protected Attributes

static int reconnectRetries
 track number of maximum unsuccessful re-connection retries the LDAP is willing to do.

Classes

class  LDAPAccessor

Constructor & Destructor Documentation

sfi.director.repository.LDAP.LDAP  ) 
 

sfi.director.repository.LDAP.LDAP String  url  ) 
 


Member Function Documentation

void sfi.director.repository.LDAP.append DBObject  dbo  )  throws DirectorException [virtual]
 

*

Exceptions:
DirectorException 

Parameters:
dbo 

Implements sfi.director.repository.DBConnection.

DN sfi.director.repository.LDAP.completeDN DN  dn  ) 
 

Reimplemented from sfi.director.repository.DBConnection.

DN sfi.director.repository.LDAP.forceRelative String  name,
DN  base
 

DBAccessor sfi.director.repository.LDAP.get DN  dn  )  throws DirectorException
 

Reimplemented from sfi.director.repository.DBConnection.

CompositeName sfi.director.repository.LDAP.makeName String  dn  )  throws DirectorException [protected]
 

static String sfi.director.repository.LDAP.mangleFilter String  filter  )  [static, protected]
 

void sfi.director.repository.LDAP.modify DBObject  dbo,
Vector  attrs
throws DirectorException
 

Reimplemented from sfi.director.repository.DBConnection.

void sfi.director.repository.LDAP.remove DBObject  dbo  )  throws DirectorException
 

Reimplemented from sfi.director.repository.DBConnection.

void sfi.director.repository.LDAP.replace DBObject  dbo  )  throws DirectorException
 

Reimplemented from sfi.director.repository.DBConnection.

Enumeration sfi.director.repository.LDAP.search String  expr,
final Options  searchopt
throws DirectorException
 

void sfi.director.repository.LDAP.setCredentials Credentials  cred  ) 
 

Reimplemented from sfi.director.repository.DBConnection.

synchronized void sfi.director.repository.LDAP.setURL String  url  )  throws DirectorException
 

Reimplemented from sfi.director.repository.DBConnection.

static Attributes sfi.director.repository.LDAP.toAttributes DBObject  dbo  )  [static]
 

void sfi.director.repository.LDAP.truncate  )  throws DirectorException [virtual]
 

Implements sfi.director.repository.DBConnection.


Member Data Documentation

Credentials sfi.director.repository.LDAP.accessCreds [protected]
 

boolean sfi.director.repository.LDAP.flakyServer = false [protected]
 

Is our LDAP server not standard-compliant? If set to true the LDAP module will try to emulate some functions.

Currently this does only effect the way how attributes are deleted. LDAP lets you remove attributes by replacing it by replacing them with an empty attribute. At least OpenLDAP 1.x rejects doing so. This is set by the LDAP() constructor from Setup.properties (setup property "FlakyLDAPServer" in director.conf).

String sfi.director.repository.LDAP.host [protected]
 

String sfi.director.repository.LDAP.orgUrl [protected]
 

int sfi.director.repository.LDAP.reconnectRetries [static, protected]
 

track number of maximum unsuccessful re-connection retries the LDAP is willing to do.

This is 'static' since we want to avoid the number of retries increase with the number of open connections.

final int sfi.director.repository.LDAP.retryLoopDelay = 5000 [static]
 

final int sfi.director.repository.LDAP.retryMaxCount = 24 [static]
 

LdapContext sfi.director.repository.LDAP.rootContext [protected]
 

DN sfi.director.repository.LDAP.rootDN [protected]
 

boolean sfi.director.repository.LDAP.wasConnectedBefore = false [protected]
 


The documentation for this class was generated from the following file:
Generated on Sat Feb 11 01:20:24 2012 for Node Director by  doxygen 1.4.5