Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
5ab454ac
Commit
5ab454ac
authored
Jun 15, 2000
by
Kurt Zeilenga
Browse files
Minor adjustments to last commit
parent
90e4c087
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/attr.c
View file @
5ab454ac
...
...
@@ -109,9 +109,9 @@ Attribute *attrs_dup( Attribute *a )
int
attr_merge
(
Entry
*
e
,
Entry
*
e
,
AttributeDescription
*
desc
,
struct
berval
**
vals
)
struct
berval
**
vals
)
{
Attribute
**
a
;
...
...
servers/slapd/back-ldbm/modify.c
View file @
5ab454ac
...
...
@@ -275,9 +275,9 @@ add_values(
/* check if the values we're adding already exist */
if
(
a
!=
NULL
)
{
/* do allow add of additional attribute if
no equality rule exists */
if
(
mr
==
NULL
)
{
if
(
mr
==
NULL
||
!
mr
->
smr_match
)
{
/* do not allow add of additional attribute
if
no equality rule exists */
return
LDAP_INAPPROPRIATE_MATCHING
;
}
...
...
@@ -339,9 +339,9 @@ delete_values(
LDAP_NO_SUCH_ATTRIBUTE
:
LDAP_SUCCESS
);
}
/* disallow specific attributes from being deleted if
no equality rule */
if
(
mr
==
NULL
||
!
mr
->
smr_match
)
{
/* disallow specific attributes from being deleted if
no equality rule */
return
LDAP_INAPPROPRIATE_MATCHING
;
}
...
...
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