src/directory.c file

Functions

auto directory_get_type(struct ldap_connection_ctx_t* connection) -> enum OperationReturnCode
directory_get_type Request LDAP type from service.
auto directory_process_attribute(const char* attribute_name, struct ldap_connection_ctx_t* connection) -> bool
directory_process_attribute
auto directory_parse_result(int rc, LDAPMessage* message, struct ldap_connection_ctx_t* connection) -> enum OperationReturnCode
directory_parse_result Parses results returned by directory_get_type.

Variables

static char* LDAP_DIRECTORY_ATTRS

Function documentation

enum OperationReturnCode directory_get_type(struct ldap_connection_ctx_t* connection)

directory_get_type Request LDAP type from service.

Parameters
connection in connection to use
Returns
  • RETURN_CODE_SUCCESS on success.
  • RETURN_CODE_FAILURE on failure.

bool directory_process_attribute(const char* attribute_name, struct ldap_connection_ctx_t* connection)

directory_process_attribute

Parameters
attribute_name in
connection in
Returns
  • true if directory type is recognized.
  • false if we have not detected directory type yet.

enum OperationReturnCode directory_parse_result(int rc, LDAPMessage* message, struct ldap_connection_ctx_t* connection)

directory_parse_result Parses results returned by directory_get_type.

Parameters
rc in Return code of ldap_result.
message in Message received from ldap.
connection in Connection to work with.
Returns
  • RETURN_CODE_SUCCESS on success.
  • RETURN_CODE_FAILURE on failure.