file
directory.h
Enums
- enum LdapDirectoryType { LDAP_TYPE_UNINITIALIZED = -1, LDAP_TYPE_UNKNOWN = 0, LDAP_TYPE_ACTIVE_DIRECTORY = 1, LDAP_TYPE_OPENLDAP = 2, LDAP_TYPE_FREE_IPA = 3 }
Functions
-
auto directory_get_type(struct ldap_
connection_ ctx_ t* connection) -> enum OperationReturnCode - directory_get_type Request LDAP type from service.
-
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.
Enum documentation
enum LdapDirectoryType
Enumerators | |
---|---|
LDAP_TYPE_UNINITIALIZED |
Directory type has not been initialized with valid value. Connection initially internally initialized with this directory type. |
LDAP_TYPE_UNKNOWN |
We have not been able to determine directory service type we working with. |
LDAP_TYPE_ACTIVE_DIRECTORY |
We've been working with Active Directory or something similar(e.g. Samba). |
LDAP_TYPE_OPENLDAP |
We've been working with OpenLDAP. |
LDAP_TYPE_FREE_IPA |
We've been working with FreeIPA. |
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 |
|
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 |
|