Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
374331c2
Commit
374331c2
authored
May 27, 2009
by
Howard Chu
Browse files
ITS#6147 add sasl-auxprop config, default to "slapd"
parent
25441e5f
Changes
3
Hide whitespace changes
Inline
Side-by-side
servers/slapd/bconfig.c
View file @
374331c2
...
...
@@ -530,6 +530,14 @@ static ConfigTable config_back_cf_table[] = {
"SYNTAX OMsDirectoryString SINGLE-VALUE )"
,
NULL
,
NULL
},
{
"sasl-authz-policy"
,
NULL
,
2
,
2
,
0
,
ARG_MAGIC
|
CFG_AZPOLICY
,
&
config_generic
,
NULL
,
NULL
,
NULL
},
{
"sasl-auxprops"
,
NULL
,
2
,
0
,
0
,
#ifdef HAVE_CYRUS_SASL
ARG_STRING
|
ARG_UNIQUE
,
&
slap_sasl_auxprops
,
#else
ARG_IGNORED
,
NULL
,
#endif
"( OLcfgGlAt:89 NAME 'olcSaslAuxprops' "
"SYNTAX OMsDirectoryString SINGLE-VALUE )"
,
NULL
,
NULL
},
{
"sasl-host"
,
"host"
,
2
,
2
,
0
,
#ifdef HAVE_CYRUS_SASL
ARG_STRING
|
ARG_UNIQUE
,
&
sasl_host
,
...
...
servers/slapd/proto-slap.h
View file @
374331c2
...
...
@@ -1944,6 +1944,7 @@ LDAP_SLAPD_V (char *) global_host;
LDAP_SLAPD_V
(
struct
berval
)
global_host_bv
;
LDAP_SLAPD_V
(
char
*
)
global_realm
;
LDAP_SLAPD_V
(
char
*
)
sasl_host
;
LDAP_SLAPD_V
(
char
*
)
slap_sasl_auxprops
;
LDAP_SLAPD_V
(
char
**
)
default_passwd_hash
;
LDAP_SLAPD_V
(
int
)
lber_debug
;
LDAP_SLAPD_V
(
int
)
ldap_syslog
;
...
...
servers/slapd/sasl.c
View file @
374331c2
...
...
@@ -63,8 +63,29 @@ typedef struct sasl_ctx {
static
struct
berval
ext_bv
=
BER_BVC
(
"EXTERNAL"
);
char
*
slap_sasl_auxprops
;
#ifdef HAVE_CYRUS_SASL
/* Just use our internal auxprop by default */
static
int
slap_sasl_getopt
(
void
*
context
,
const
char
*
plugin_name
,
const
char
*
option
,
const
char
**
result
,
unsigned
*
len
)
{
if
(
strcmp
(
option
,
"auxprop_plugin"
))
{
return
SASL_FAIL
;
}
if
(
slap_sasl_auxprops
)
*
result
=
slap_sasl_auxprops
;
else
*
result
=
"slapd"
;
return
SASL_OK
;
}
int
slap_sasl_log
(
void
*
context
,
...
...
@@ -1078,6 +1099,7 @@ int slap_sasl_init( void )
int
rc
;
static
sasl_callback_t
server_callbacks
[]
=
{
{
SASL_CB_LOG
,
&
slap_sasl_log
,
NULL
},
{
SASL_CB_GETOPT
,
&
slap_sasl_getopt
,
NULL
},
{
SASL_CB_LIST_END
,
NULL
,
NULL
}
};
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment