|
Implementation of functions related to database commands.
Functions related to connections to LDAP servers.
Implementation of LDAP per-connection related data structures and functions.
Data field conversion and type checking functions.
Implementation of ld_fld data structure representing LDAP fields and related functions.
LDAP module interface.
LDAP module interface.
Functions working with result structures received from LDAP servers.
Data structures and functions to convert results obtained from LDAP servers.
The implementation of parser parsing ldap:.
The functions parsing and interpreting ldap: URIs.
Per-connection flags for LDAP connections.
More...| enum ld_con_flags |
| int ld_cmd_exec | ( | db_res_t * | res, | |
| db_cmd_t * | cmd | |||
| ) |
This is the main execution function in this driver. It is executed whenever a SER module calls db_exec and the target database of the commands is ldap.
| res | A pointer to (optional) result structure if the command returns a result. |
| 0 | if executed successfully | |
| A | negative number if the database server failed to execute command | |
| A | positive number if there was an error on client side (SER) |
This function frees all memory used by ld_cmd structure.
| cmd | A pointer to generic db_cmd command being freed. | |
| payload | A pointer to ld_cmd structure to be freed. |
Definition at line 53 of file ld_cmd.c.
References ld_cmd::gen, and ld_cmd::result.
| int ld_con | ( | db_con_t * | con | ) |
This function creates a new ld_con structure and attachs the structure to the generic db_con structure in the parameter.
| con | A generic db_con structure to be extended with LDAP payload |
| 0 | on success | |
| A | negative number on error |
| int ld_con_connect | ( | db_con_t * | con | ) |
This function is called when a SER module calls db_connect to establish a new connection to the database server.
| con | A structure representing database connection. |
| 0 | on success. | |
| A | negative number on error. |
| void ld_con_disconnect | ( | db_con_t * | con | ) |
Disconnects a previously connected connection to LDAP server.
| con | A structure representing the connection to be disconnected. |
| static void ld_con_free | ( | db_con_t * | con, | |
| struct ld_con * | payload | |||
| ) | [static] |
This function function frees all memory that is in use by a ld_con structure.
| con | A generic db_con connection structure. | |
| payload | LDAP specific payload to be freed. |
Definition at line 51 of file ld_con.c.
References ld_uri::uri.
| int ld_fld | ( | db_fld_t * | fld, | |
| char * | table | |||
| ) |
This function creates a new LDAP specific payload structure and attaches the structure to the generic db_fld structure.
| fld | A generic db_fld structure to be exended. | |
| table | Name of the table on the server. |
| 0 | on success. | |
| A | negative number on error. |
| static void ld_fld_free | ( | db_fld_t * | fld, | |
| struct ld_fld * | payload | |||
| ) | [static] |
| int ld_uri | ( | db_uri_t * | uri | ) |
This function builds a new ld_uri structure from the body of the generic URI given to it in parameter.
| uri | A generic db_uri structure. |
| 0 | on success | |
| A | negative number on error. |
| static unsigned char ld_uri_cmp | ( | db_uri_t * | uri1, | |
| db_uri_t * | uri2 | |||
| ) | [static] |
This function is called whenever the database abstraction layer in SER needs to compare to URIs with the ldap scheme. The function compares hosts and port numbers of both URIs (host part comparison is case insensitive). The URI comparison is mainly used to by the connection pool to determine if a connection to a given server already exists.
Definition at line 57 of file ld_uri.c.
References cmpstr, and ld_uri::ldap_url.
1.7.1