file
ad_schema.c
Typedefs
- using op_fn = enum OperationReturnCode(*)(char*attribute_value, void*user_data)
Functions
-
static auto ldap_schema_read_entry(ld_
entry_ * entry, op_t 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_ * connection, ld_ctx_ t entry_ ** entries, op_t fn callback, void* user_data) -> enum OperationReturnCode - ldap_schema_callback_common This callback processes LDAP attributes from entries with a callback parameter.
- static auto attribute_type_callback(char* attribute_value, void* user_data) -> enum OperationReturnCode
- attribute_type_callback This callback appends LDAP attribute type to schema.
- 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 subschema_subentry_callback(char* attribute_value, void* user_data) -> enum OperationReturnCode
- subschema_subentry_callback This callback appends LDAP object class to schema.
-
static auto ldap_schema_attribute_types_search_callback(struct ldap_
connection_ * connection, ld_ctx_ t entry_ ** entries, void* user_data) -> enum OperationReturnCodet - object_class_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_ * connection, ld_ctx_ t entry_ ** entries, void* user_data) -> enum OperationReturnCodet - object_class_callback This callback wraps ldap_schema_callback_common for object class appending to schema.
-
static auto ldap_schema_subschema_subentry_search_callback(struct ldap_
connection_ * connection, ld_ctx_ t entry_ ** entries, void* user_data) -> enum OperationReturnCodet - object_class_callback This callback wraps ldap_schema_callback_common for object class appending to schema.
-
auto schema_load_active_directory(struct ldap_
connection_ * connection, struct ldap_ctx_ t schema_ * schema) -> enum OperationReturnCodet - ldap_schema_load Loads the schema of OpenLDAP directory type from the connection.
Variables
- static char* LDAP_ATTRIBUTE_TYPES
- static char* LDAP_OBJECT_CLASSES
- static char* LDAP_SUBSCHEMA_SUBENTRY
- static char* schema_entry_path
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 |
|
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 |
|
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 subschema_subentry_callback(char* attribute_value, void* user_data)
subschema_subentry_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)
object_class_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)
object_class_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 |
|
static enum OperationReturnCode ldap_schema_subschema_subentry_search_callback(struct ldap_connection_ctx_t * connection,
ld_entry_t ** entries,
void* user_data)
object_class_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_active_directory(struct ldap_connection_ctx_t * connection,
struct ldap_schema_t * schema)
ldap_schema_load 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 |
|