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
Joe Martin
OpenLDAP
Commits
0325bc4f
Commit
0325bc4f
authored
Jul 22, 2009
by
Quanah Gibson-Mount
Browse files
ITS#6216
parent
a35b158b
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
0325bc4f
...
@@ -2,6 +2,7 @@ OpenLDAP 2.4 Change Log
...
@@ -2,6 +2,7 @@ OpenLDAP 2.4 Change Log
OpenLDAP 2.4.18 Engineering
OpenLDAP 2.4.18 Engineering
Fixed slapd incorrectly applying writetimeout when not set (ITS#6220)
Fixed slapd incorrectly applying writetimeout when not set (ITS#6220)
Fixed slapd subordinate needs a suffix (ITS#6216)
Fixed slapd-ndb startup (ITS#6203)
Fixed slapd-ndb startup (ITS#6203)
Build Environment
Build Environment
Fixed test056-monitor with custom ports (ITS#6213)
Fixed test056-monitor with custom ports (ITS#6213)
...
...
servers/slapd/bconfig.c
View file @
0325bc4f
...
@@ -2325,7 +2325,7 @@ static int
...
@@ -2325,7 +2325,7 @@ static int
config_subordinate
(
ConfigArgs
*
c
)
config_subordinate
(
ConfigArgs
*
c
)
{
{
int
rc
=
1
;
int
rc
=
1
;
int
advertise
;
int
advertise
=
0
;
switch
(
c
->
op
)
{
switch
(
c
->
op
)
{
case
SLAP_CONFIG_EMIT
:
case
SLAP_CONFIG_EMIT
:
...
@@ -2350,10 +2350,37 @@ config_subordinate(ConfigArgs *c)
...
@@ -2350,10 +2350,37 @@ config_subordinate(ConfigArgs *c)
break
;
break
;
case
LDAP_MOD_ADD
:
case
LDAP_MOD_ADD
:
case
SLAP_CONFIG_ADD
:
case
SLAP_CONFIG_ADD
:
advertise
=
(
c
->
argc
==
2
&&
!
strcasecmp
(
c
->
argv
[
1
],
"advertise"
));
if
(
c
->
be
->
be_nsuffix
==
NULL
)
{
/* log error */
snprintf
(
c
->
cr_msg
,
sizeof
(
c
->
cr_msg
),
"subordinate configuration needs a suffix"
);
Debug
(
LDAP_DEBUG_ANY
,
"%s: %s.
\n
"
,
c
->
log
,
c
->
cr_msg
,
0
);
rc
=
1
;
break
;
}
if
(
c
->
argc
==
2
)
{
if
(
strcasecmp
(
c
->
argv
[
1
],
"advertise"
)
==
0
)
{
advertise
=
1
;
}
else
if
(
strcasecmp
(
c
->
argv
[
1
],
"TRUE"
)
!=
0
)
{
/* log error */
snprintf
(
c
->
cr_msg
,
sizeof
(
c
->
cr_msg
),
"subordinate must be
\"
TRUE
\"
or
\"
advertise
\"
"
);
Debug
(
LDAP_DEBUG_ANY
,
"%s: suffix
\"
%s
\"
: %s.
\n
"
,
c
->
log
,
c
->
be
->
be_suffix
[
0
].
bv_val
,
c
->
cr_msg
);
rc
=
1
;
break
;
}
}
rc
=
glue_sub_add
(
c
->
be
,
advertise
,
CONFIG_ONLINE_ADD
(
c
));
rc
=
glue_sub_add
(
c
->
be
,
advertise
,
CONFIG_ONLINE_ADD
(
c
));
break
;
break
;
}
}
return
rc
;
return
rc
;
}
}
...
...
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