The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Functions for managing server/client side sort controls. More...
#include <freeradius-devel/ldap/base.h>
Go to the source code of this file.
Functions | |
int | fr_ldap_control_add_client (fr_ldap_connection_t *conn, LDAPControl *ctrl, bool freeit) |
Add a clientctrl to a connection handle. More... | |
int | fr_ldap_control_add_server (fr_ldap_connection_t *conn, LDAPControl *ctrl, bool freeit) |
Add a serverctrl to a connection handle. More... | |
void | fr_ldap_control_clear (fr_ldap_connection_t *conn) |
Clear and free any controls associated with a connection. More... | |
USES_APPLE_DEPRECATED_API void | fr_ldap_control_merge (LDAPControl *serverctrls_out[], LDAPControl *clientctrls_out[], size_t serverctrls_len, size_t clientctrls_len, fr_ldap_connection_t *conn, LDAPControl *serverctrls_in[], LDAPControl *clientctrls_in[]) |
Merge connection and call specific client and server controls. More... | |
Functions for managing server/client side sort controls.
Definition in file control.c.
int fr_ldap_control_add_client | ( | fr_ldap_connection_t * | conn, |
LDAPControl * | ctrl, | ||
bool | freeit | ||
) |
Add a clientctrl to a connection handle.
All internal LDAP functions will pass this clientctrl to libldap.
conn | to add control to. |
ctrl | to add. |
freeit | Whether the control should be freed when the handle is released or closed. |
int fr_ldap_control_add_server | ( | fr_ldap_connection_t * | conn, |
LDAPControl * | ctrl, | ||
bool | freeit | ||
) |
Add a serverctrl to a connection handle.
All internal LDAP functions will pass this serverctrl to the server.
conn | to add control to. |
ctrl | to add. |
freeit | Whether the control should be freed when the handle is released or closed. |
void fr_ldap_control_clear | ( | fr_ldap_connection_t * | conn | ) |
USES_APPLE_DEPRECATED_API void fr_ldap_control_merge | ( | LDAPControl * | serverctrls_out[], |
LDAPControl * | clientctrls_out[], | ||
size_t | serverctrls_len, | ||
size_t | clientctrls_len, | ||
fr_ldap_connection_t * | conn, | ||
LDAPControl * | serverctrls_in[], | ||
LDAPControl * | clientctrls_in[] | ||
) |
Merge connection and call specific client and server controls.
LDAP_OPT_CLIENT_CONTROLS and LDAP_OPT_SERVER_CONTROLS are useless because they're overridden in their entirety if any call specific controls are specified.
[out] | serverctrls_out | Where to write serverctrls. |
[out] | clientctrls_out | Where to write clientctrls. |
[in] | serverctrls_len | length of serverctrls array. |
[in] | clientctrls_len | length of clientctrls array. |
[in] | conn | to get controls from. |
[in] | serverctrls_in | from arguments. |
[in] | clientctrls_in | from_arguments. |
Definition at line 48 of file control.c.