Skip to content

Commit

Permalink
export ldap_scope
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Jan 27, 2014
1 parent 5206c45 commit c3d37c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/modules/rlm_ldap/ldap.h
Expand Up @@ -278,6 +278,9 @@ typedef enum {
#define LDAP_EXT() if (extra) LDAP_ERR(extra)
#define LDAP_EXT_REQ() do { if (extra) { if (request) REDEBUG("%s", extra); else LDAP_ERR("%s", extra); }} while (0)

extern FR_NAME_NUMBER const ldap_scope[];
extern FR_NAME_NUMBER const ldap_tls_require_cert[];

/*
* ldap.c - Wrappers arounds OpenLDAP functions.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/modules/rlm_ldap/rlm_ldap.c
Expand Up @@ -38,7 +38,7 @@ RCSID("$Id$")
/*
* Scopes
*/
const FR_NAME_NUMBER ldap_scope[] = {
FR_NAME_NUMBER const ldap_scope[] = {
{ "sub", LDAP_SCOPE_SUB },
{ "one", LDAP_SCOPE_ONE },
{ "base", LDAP_SCOPE_BASE },
Expand All @@ -48,7 +48,7 @@ const FR_NAME_NUMBER ldap_scope[] = {
};

#ifdef LDAP_OPT_X_TLS_NEVER
const FR_NAME_NUMBER ldap_tls_require_cert[] = {
FR_NAME_NUMBER const ldap_tls_require_cert[] = {
{ "never", LDAP_OPT_X_TLS_NEVER },
{ "demand", LDAP_OPT_X_TLS_DEMAND },
{ "allow", LDAP_OPT_X_TLS_ALLOW },
Expand Down

0 comments on commit c3d37c5

Please sign in to comment.