ldapsdk  0.0.1
Public Member Functions | List of all members
LDAPSchema Class Reference

Represents the LDAP schema. More...

#include <LDAPSchema.h>

Public Member Functions

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

Detailed Description

Represents the LDAP schema.

Constructor & Destructor Documentation

◆ LDAPSchema()

LDAPSchema::LDAPSchema ( )

Constructs an empty object.

References DEBUG, and LDAP_DEBUG_CONSTRUCT.

◆ ~LDAPSchema()

LDAPSchema::~LDAPSchema ( )
virtual

Destructor.

References DEBUG, and LDAP_DEBUG_DESTROY.

Member Function Documentation

◆ getAttributeTypeByName()

LDAPAttrType LDAPSchema::getAttributeTypeByName ( string  name)

Returns attribute type object with given name.

◆ getObjectClassByName()

LDAPObjClass LDAPSchema::getObjectClassByName ( std::string  name)

Returns object class object with given name.

◆ setAttributeTypes()

void LDAPSchema::setAttributeTypes ( const StringList at)

Fill the attr_types map.

Parameters
atdescription of one attribute type (string returned by search command), in form: "( 1.2.3.4.6 NAME ( '<name>' ) DESC '<desc>' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )"

References StringList::begin(), DEBUG, StringList::end(), LDAPAttrType::getNames(), and LDAP_DEBUG_TRACE.

◆ setObjectClasses()

void LDAPSchema::setObjectClasses ( const StringList oc)


Fill the object_classes map

Parameters
ocdescription of one objectclass (string returned by search command), in form: "( 1.2.3.4.5 NAME '<name>' SUP <supname> STRUCTURAL DESC '<description>' MUST ( <attrtype> ) MAY ( <attrtype> ))"

References StringList::begin(), DEBUG, StringList::end(), LDAPObjClass::getNames(), and LDAP_DEBUG_TRACE.


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