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
5c3b18d3
Commit
5c3b18d3
authored
Feb 13, 2006
by
Kurt Zeilenga
Browse files
permissive modify/increment support
parent
e23f9b9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
5c3b18d3
...
...
@@ -8,6 +8,7 @@ OpenLDAP 2.3.20 Engineering
Fixed slapd non-read/write epoll event handling (ITS#4395)
Fixed slapd syncrepl de-normalize UUID issue
Added slapd syncrepl log messages (ITS#4369)
Added slapd permissive modify/increment support
Fixed slapd connectionless LDAP support
Fixed slapd-bdb/hdb wake listener on runqueue submit (ITS#4385)
Fixed slapo-auditlog crash (ITS#4394)
...
...
servers/slapd/mods.c
View file @
5c3b18d3
...
...
@@ -377,11 +377,19 @@ modify_increment_values(
a
=
attr_find
(
e
->
e_attrs
,
mod
->
sm_desc
);
if
(
a
==
NULL
)
{
*
text
=
textbuf
;
snprintf
(
textbuf
,
textlen
,
"modify/increment: %s: no such attribute"
,
mod
->
sm_desc
->
ad_cname
.
bv_val
);
return
LDAP_NO_SUCH_ATTRIBUTE
;
if
(
permissive
)
{
Modification
modReplace
=
*
mod
;
modReplace
.
sm_op
=
LDAP_MOD_REPLACE
;
return
modify_add_values
(
e
,
&
modReplace
,
permissive
,
text
,
textbuf
,
textlen
);
}
else
{
*
text
=
textbuf
;
snprintf
(
textbuf
,
textlen
,
"modify/increment: %s: no such attribute"
,
mod
->
sm_desc
->
ad_cname
.
bv_val
);
return
LDAP_NO_SUCH_ATTRIBUTE
;
}
}
if
(
!
strcmp
(
a
->
a_desc
->
ad_type
->
sat_syntax_oid
,
SLAPD_INTEGER_SYNTAX
))
{
...
...
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