file
schema.c
Functions
-
static auto ldap_schema_destructor(ldap_
schema_ t* schema) -> int - ldap_schema_destructor Destroys schema associated hash tables and frees memory.
-
auto ldap_schema_new(TALLOC_CTX* ctx) -> ldap_
schema_ t* - ldap_schema_new Allocates ldap_
schema_ t and checks it for validity. -
auto ldap_schema_object_classes(const ldap_
schema_ t* schema) -> LDAPObjectClass** - ldap_schema_object_classes Returns a list of LDAPObjectClass structs.
-
auto ldap_schema_attribute_types(const ldap_
schema_ t* schema) -> LDAPAttributeType** - ldap_schema_attribute_types Returns a list of LDAPAttributeType structs.
-
auto ldap_schema_get_objectclass_by_oid(const ldap_
schema_ t* schema, const char* oid) -> LDAPObjectClass* - ldap_schema_get_objectclass_by_oid Returns a LDAPObjectClass struct corresponding to the specified OID.
-
auto ldap_schema_get_objectclass_by_name(const ldap_
schema_ t* schema, const char* name) -> LDAPObjectClass* - ldap_schema_get_objectclass_by_name Returns a LDAPObjectClass struct corresponding to the specified name.
-
auto ldap_schema_get_attributetype_by_oid(const ldap_
schema_ t* schema, const char* oid) -> LDAPAttributeType* - ldap_schema_get_attributetype_by_oid Returns a LDAPAttributeType struct corresponding to the specified OID.
-
auto ldap_schema_get_attributetype_by_name(const ldap_
schema_ t* schema, const char* name) -> LDAPAttributeType* - ldap_schema_get_attributetype_by_name Returns a LDAPAttributeType struct corresponding to the specified name.
-
auto ldap_schema_append_attributetype(struct ldap_
schema_ t* schema, LDAPAttributeType* attributetype) -> bool - ldap_schema_append_attributetype Appends attribute type to the list of schema's attribute types.
-
auto ldap_schema_append_objectclass(struct ldap_
schema_ t* schema, LDAPObjectClass* objectclass) -> bool - ldap_schema_append_objectclass Appends object class to the list of schema's object classes.
-
auto ldap_schema_load(struct ldap_
connection_ ctx_ t* connection) -> enum OperationReturnCode - ldap_schema_load Loads the schema from the connection depending on the type of directory.
-
auto ldap_schema_ready(struct ldap_
connection_ ctx_ t* connection) -> bool - ldap_schema_ready Verifies the schema is fully loaded and ready for use.
Defines
- #define return_null_if_null(parameter, error)
Function documentation
static int ldap_schema_destructor(ldap_ schema_ t* schema)
ldap_schema_destructor Destroys schema associated hash tables and frees memory.
Parameters | |
---|---|
schema in | Schema to free. |
ldap_ schema_ t* ldap_schema_new(TALLOC_CTX* ctx)
ldap_schema_new Allocates ldap_
Parameters | |
---|---|
ctx in | TALLOC_CTX to use. |
Returns |
|
LDAPObjectClass** ldap_schema_object_classes(const ldap_ schema_ t* schema)
ldap_schema_object_classes Returns a list of LDAPObjectClass structs.
Parameters | |
---|---|
schema in | Schema to work with. |
Returns |
|
LDAPAttributeType** ldap_schema_attribute_types(const ldap_ schema_ t* schema)
ldap_schema_attribute_types Returns a list of LDAPAttributeType structs.
Parameters | |
---|---|
schema in | Schema to work with. |
Returns |
|
LDAPObjectClass* ldap_schema_get_objectclass_by_oid(const ldap_ schema_ t* schema,
const char* oid)
ldap_schema_get_objectclass_by_oid Returns a LDAPObjectClass struct corresponding to the specified OID.
Parameters | |
---|---|
schema in | Schema to work with. |
oid in | OID of the object class. |
Returns |
|
LDAPObjectClass* ldap_schema_get_objectclass_by_name(const ldap_ schema_ t* schema,
const char* name)
ldap_schema_get_objectclass_by_name Returns a LDAPObjectClass struct corresponding to the specified name.
Parameters | |
---|---|
schema in | Schema to work with. |
name in | Name of the object class. |
Returns |
|
LDAPAttributeType* ldap_schema_get_attributetype_by_oid(const ldap_ schema_ t* schema,
const char* oid)
ldap_schema_get_attributetype_by_oid Returns a LDAPAttributeType struct corresponding to the specified OID.
Parameters | |
---|---|
schema in | Schema to work with. |
oid in | OID of the attribute type. |
Returns |
|
LDAPAttributeType* ldap_schema_get_attributetype_by_name(const ldap_ schema_ t* schema,
const char* name)
ldap_schema_get_attributetype_by_name Returns a LDAPAttributeType struct corresponding to the specified name.
Parameters | |
---|---|
schema in | Schema to work with. |
name in | One of the attribute names. |
Returns |
|
bool ldap_schema_append_attributetype(struct ldap_ schema_ t* schema,
LDAPAttributeType* attributetype)
ldap_schema_append_attributetype Appends attribute type to the list of schema's attribute types.
Parameters | |
---|---|
schema in | Schema to work with. |
attributetype in | Attribute type to add. |
Returns |
|
bool ldap_schema_append_objectclass(struct ldap_ schema_ t* schema,
LDAPObjectClass* objectclass)
ldap_schema_append_objectclass Appends object class to the list of schema's object classes.
Parameters | |
---|---|
schema in | Current schema we working with. |
objectclass in | Object class we want to add to schema. |
Returns |
|
enum OperationReturnCode ldap_schema_load(struct ldap_ connection_ ctx_ t* connection)
ldap_schema_load Loads the schema from the connection depending on the type of directory.
Parameters | |
---|---|
connection in | Connection to work with. |
Returns |
|
bool ldap_schema_ready(struct ldap_ connection_ ctx_ t* connection)
ldap_schema_ready Verifies the schema is fully loaded and ready for use.
Parameters | |
---|---|
connection in | Connection to work with. |
Returns |
|