Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
212a5374
Commit
212a5374
authored
Sep 02, 2008
by
Quanah Gibson-Mount
Browse files
ITS#5609
parent
86586b9e
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
212a5374
OpenLDAP 2.4 Change Log
OpenLDAP 2.4.12 Engineering
Fixed slapo-constraint string termination (ITS#5609)
OpenLDAP 2.4.11 Release (2008/07/16)
Fixed liblber ber_get_next length decoding (ITS#5580)
...
...
doc/man/man5/slapo-constraint.5
View file @
212a5374
...
...
@@ -72,8 +72,7 @@ constraint_attribute title uri
A specification like the above would reject any
.B mail
attribute which did not look like
.B
<alpha-numeric string>@mydomain.com
.BR "<alpha-numeric string>@mydomain.com" .
It would also reject any
.B title
attribute whose values were not listed in the
...
...
servers/slapd/overlays/constraint.c
View file @
212a5374
...
...
@@ -282,8 +282,16 @@ constraint_cf_gen( ConfigArgs *c )
if
(
ap
.
lud
->
lud_dn
==
NULL
)
ap
.
lud
->
lud_dn
=
ch_strdup
(
""
);
if
(
ap
.
lud
->
lud_filter
==
NULL
)
if
(
ap
.
lud
->
lud_filter
==
NULL
)
{
ap
.
lud
->
lud_filter
=
ch_strdup
(
"objectClass=*"
);
}
else
if
(
ap
.
lud
->
lud_filter
[
0
]
==
'('
)
{
ber_len_t
len
=
strlen
(
ap
.
lud
->
lud_filter
);
if
(
ap
.
lud
->
lud_filter
[
len
-
1
]
!=
')'
)
{
return
(
ARG_BAD_CONF
);
}
AC_MEMCPY
(
&
ap
.
lud
->
lud_filter
[
0
],
&
ap
.
lud
->
lud_filter
[
1
],
len
-
2
);
ap
.
lud
->
lud_filter
[
len
-
2
]
=
'\0'
;
}
ber_str2bv
(
c
->
argv
[
3
],
0
,
1
,
&
ap
.
val
);
}
else
{
...
...
@@ -427,6 +435,7 @@ constraint_violation( constraint *c, struct berval *bv, Operation *op, SlapReply
}
*
ptr
++
=
')'
;
*
ptr
++
=
')'
;
*
ptr
++
=
'\0'
;
Debug
(
LDAP_DEBUG_TRACE
,
"==> constraint_violation uri filter = %s
\n
"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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