Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

LDAPSchema Class Reference

Represents the LDAP schema. More...

#include <LDAPSchema.h>

List of all members.

Public Member Functions

 LDAPSchema ()
 Constructs an empty object.
virtual ~LDAPSchema ()
 Destructor.
void setObjectClasses (const StringList &oc)
 Fill the object_classes map.
void setAttributeTypes (const StringList &at)
 Fill the attr_types map.
LDAPObjClass getObjectClassByName (std::string name)
 Returns object class object with given name.
LDAPAttrType getAttributeTypeByName (string name)
 Returns attribute type object with given name.

Private Attributes

map< string, LDAPObjClassobject_classes
 map of object classes: index is name, value is LDAPObjClass object
map< string, LDAPAttrTypeattr_types
 map of attribute types: index is name, value is LDAPAttrType object


Detailed Description

Represents the LDAP schema.


Constructor & Destructor Documentation

LDAPSchema::LDAPSchema  ) 
 

Constructs an empty object.

LDAPSchema::~LDAPSchema  )  [virtual]
 

Destructor.


Member Function Documentation

LDAPAttrType LDAPSchema::getAttributeTypeByName string  name  ) 
 

Returns attribute type object with given name.

LDAPObjClass LDAPSchema::getObjectClassByName std::string  name  ) 
 

Returns object class object with given name.

void LDAPSchema::setAttributeTypes const StringList at  ) 
 

Fill the attr_types map.

Parameters:
at description of one attribute type (string returned by search command), in form: "( SuSE.YaST.Attr:19 NAME ( 'skelDir' ) DESC '' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )"

void LDAPSchema::setObjectClasses const StringList oc  ) 
 

Fill the object_classes map.

Parameters:
oc description of one objectclass (string returned by search command), in form: "( SuSE.YaST.OC:5 NAME 'userTemplate' SUP objectTemplate STRUCTURAL DESC 'User object template' MUST ( cn ) MAY ( secondaryGroup ))"


Member Data Documentation

map<string, LDAPAttrType> LDAPSchema::attr_types [private]
 

map of attribute types: index is name, value is LDAPAttrType object

map<string, LDAPObjClass> LDAPSchema::object_classes [private]
 

map of object classes: index is name, value is LDAPObjClass object


The documentation for this class was generated from the following files:
Generated on Wed Nov 12 02:19:04 2008 for ldapsdk by  doxygen 1.3.9.1