file
openldap_schema.c
Typedefs
- using op_fn = enum OperationReturnCode(*)(char*attribute_value, void*user_data)
Functions
-
static auto ldap_schema_read_entry(ld_
entry_ t* entry, op_ fn callback, void* user_data) -> enum OperationReturnCode - ldap_schema_read_entry Reads attribute values of entry and writes to output parameter.
-
static auto ldap_schema_callback_common(struct ldap_
connection_ ctx_ t* connection, ld_ entry_ t** entries, op_ fn callback, void* user_data) -> enum OperationReturnCode - ldap_schema_callback_common This callback processes LDAP attributes from entries with a callback parameter.
- auto attribute_type_destructor(LDAPAttributeType** reference) -> int
- attribute_type_destructor Destructor of the attribute type description.
- static auto attribute_type_callback(char* attribute_value, void* user_data) -> enum OperationReturnCode
- attribute_type_callback This callback appends LDAP attribute type to schema.
- auto object_class_destructor(LDAPObjectClass** reference) -> int
- object_class_destructor Destructor of the object class description.
- static auto object_class_callback(char* attribute_value, void* user_data) -> enum OperationReturnCode
- object_class_callback This callback appends LDAP object class to schema.
-
static auto ldap_schema_attribute_types_search_callback(struct ldap_
connection_ ctx_ t* connection, ld_ entry_ t** entries, void* user_data) -> enum OperationReturnCode - ldap_schema_attribute_types_search_callback This callback wraps ldap_schema_callback_common for attribute type appending to schema.
-
static auto ldap_schema_object_classes_search_callback(struct ldap_
connection_ ctx_ t* connection, ld_ entry_ t** entries, void* user_data) -> enum OperationReturnCode - ldap_schema_object_classes_search_callback This callback wraps ldap_schema_callback_common for object class appending to schema.
-
auto schema_load_openldap(struct ldap_
connection_ ctx_ t* connection, struct ldap_ schema_ t* schema) -> enum OperationReturnCode - schema_load_openldap Loads the schema of OpenLDAP directory type from the connection.
Variables
- char* LDAP_ATTRIBUTE_TYPES
- char* LDAP_OBJECT_CLASSES
Function documentation
static enum OperationReturnCode ldap_schema_read_entry(ld_ entry_ t* entry,
op_ fn callback,
void* user_data)
ldap_schema_read_entry Reads attribute values of entry and writes to output parameter.
Parameters | |
---|---|
entry in | Entry to work with. |
callback in | Callback for processing attribute values. |
user_data in | An output parameter for returning data from callback. |
Returns |
|
static enum OperationReturnCode ldap_schema_callback_common(struct ldap_ connection_ ctx_ t* connection,
ld_ entry_ t** entries,
op_ fn callback,
void* user_data)
ldap_schema_callback_common This callback processes LDAP attributes from entries with a callback parameter.
Parameters | |
---|---|
connection in | Connection to work with. |
entries in | Entries to work with. |
callback in | Callback for processing attribute values. |
user_data in | An output parameter for returning data from callback. |
Returns |
|
int attribute_type_destructor(LDAPAttributeType** reference)
attribute_type_destructor Destructor of the attribute type description.
Parameters | |
---|---|
reference in | Pointer to the pointer to attribute type description. |
Returns | 0 - on success. |
static enum OperationReturnCode attribute_type_callback(char* attribute_value, void* user_data)
attribute_type_callback This callback appends LDAP attribute type to schema.
Parameters | |
---|---|
attribute_value in | Attribute value to work with. |
user_data in | An output parameter for returning data (schema in this case) from callback. |
Returns |
|
int object_class_destructor(LDAPObjectClass** reference)
object_class_destructor Destructor of the object class description.
Parameters | |
---|---|
reference in | Pointer to pointer to object class description. |
Returns | 0 - on success. |
static enum OperationReturnCode object_class_callback(char* attribute_value, void* user_data)
object_class_callback This callback appends LDAP object class to schema.
Parameters | |
---|---|
attribute_value in | Attribute value to work with. |
user_data in | An output parameter for returning data (schema in this case) from callback. |
Returns |
|
static enum OperationReturnCode ldap_schema_attribute_types_search_callback(struct ldap_ connection_ ctx_ t* connection,
ld_ entry_ t** entries,
void* user_data)
ldap_schema_attribute_types_search_callback This callback wraps ldap_schema_callback_common for attribute type appending to schema.
Parameters | |
---|---|
connection in | Connection to work with. |
entries in | Entries to work with. |
user_data in | An output parameter for returning data (schema in this case) from callback. |
Returns |
|
static enum OperationReturnCode ldap_schema_object_classes_search_callback(struct ldap_ connection_ ctx_ t* connection,
ld_ entry_ t** entries,
void* user_data)
ldap_schema_object_classes_search_callback This callback wraps ldap_schema_callback_common for object class appending to schema.
Parameters | |
---|---|
connection in | Connection to work with. |
entries in | Entries to work with. |
user_data in | An output parameter for returning data (schema in this case) from callback. |
Returns |
|
enum OperationReturnCode schema_load_openldap(struct ldap_ connection_ ctx_ t* connection,
struct ldap_ schema_ t* schema)
schema_load_openldap Loads the schema of OpenLDAP directory type from the connection.
Parameters | |
---|---|
connection in | Connection to work with. |
schema in | Schema for loading data from connection. |
Returns |
|