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
320c2914
Commit
320c2914
authored
Mar 20, 2005
by
Howard Chu
Browse files
Fix config_rootpw
parent
48ee1e70
Changes
1
Show whitespace changes
Inline
Side-by-side
servers/slapd/bconfig.c
View file @
320c2914
...
...
@@ -415,7 +415,7 @@ ConfigTable config_back_cf_table[] = {
{
"rootDSE"
,
"file"
,
2
,
2
,
0
,
ARG_MAGIC
|
CFG_ROOTDSE
,
&
config_generic
,
"( OLcfgAt:51 NAME 'olcRootDSE' "
"SYNTAX OMsDirectoryString )"
,
NULL
,
NULL
},
{
"rootpw"
,
"password"
,
2
,
2
,
0
,
ARG_
STRING
|
ARG_DB
|
ARG_MAGIC
,
{
"rootpw"
,
"password"
,
2
,
2
,
0
,
ARG_
BERVAL
|
ARG_DB
|
ARG_MAGIC
,
&
config_rootpw
,
"( OLcfgAt:52 NAME 'olcRootPW' "
"SYNTAX OMsOctetString SINGLE-VALUE )"
,
NULL
,
NULL
},
{
"sasl-authz-policy"
,
NULL
,
2
,
2
,
0
,
ARG_MAGIC
|
CFG_AZPOLICY
,
...
...
@@ -1350,7 +1350,7 @@ config_rootpw(ConfigArgs *c) {
Backend
*
tbe
;
if
(
c
->
op
==
SLAP_CONFIG_EMIT
)
{
if
(
!
BER_BVISEMPTY
(
&
c
->
be
->
be_rootpw
))
{
c
->
value_
string
=
c
->
be
->
be_rootpw
.
bv_val
;
ber_dupbv
(
&
c
->
value_
bv
,
&
c
->
be
->
be_rootpw
)
;
return
0
;
}
return
1
;
...
...
@@ -1363,7 +1363,7 @@ config_rootpw(ConfigArgs *c) {
c
->
log
,
0
,
0
);
return
(
1
);
}
ber_str2bv
(
c
->
value_string
,
0
,
0
,
&
c
->
be
->
be_rootpw
)
;
c
->
be
->
be_rootpw
=
c
->
value_bv
;
return
(
0
);
}
...
...
Write
Preview
Supports
Markdown
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