LDAP module dynamic clients.
More...
#include <freeradius-devel/rad_assert.h>
#include <ctype.h>
#include "ldap.h"
Go to the source code of this file.
LDAP module dynamic clients.
- Id:
- 1b8f10c2a87e88a46c0977edd5b77cef0e766417
- Author
- Arran Cudbard-Bell a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg
- Copyright
- 2013,2015 Arran Cudbard-Bell a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg
-
2013-2015 The FreeRADIUS Server Project.
Definition in file clients.c.
static int _get_client_value |
( |
char ** |
out, |
|
|
CONF_PAIR const * |
cp, |
|
|
void * |
data |
|
) |
| |
|
static |
static int rlm_ldap_client_get_attrs |
( |
char const ** |
values, |
|
|
int * |
idx, |
|
|
CONF_SECTION const * |
cs |
|
) |
| |
|
static |
Iterate over pairs in mapping section recording their values in an array.
This array is the list of attributes we retrieve from LDAP, and is NULL terminated.
If we hit a CONF_SECTION we recurse and process its CONF_PAIRS too.
- Parameters
-
[out] | values | array of char pointers. |
[in,out] | idx | records current array offset. |
[in] | cs | to iterate over. |
- Returns
- 0 on success.
- -1 on failure.
Definition at line 45 of file clients.c.
Load clients from LDAP on server start.
- Parameters
-
[in] | inst | rlm_ldap configuration. |
[in] | tmpl | to use as the base for the new client. |
[in] | map | to load client attribute/LDAP attribute mappings from. |
- Returns
- 0 on success.
- -1 on failure.
Definition at line 102 of file clients.c.