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
ingo Voss
OpenLDAP
Commits
ca082465
Commit
ca082465
authored
Aug 13, 2005
by
Pierangelo Masarati
Browse files
fix ACL who logging
parent
43312e83
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/acl.c
View file @
ca082465
...
...
@@ -1218,6 +1218,9 @@ dn_match_cleanup:;
continue
;
}
Debug
(
LDAP_DEBUG_ACL
,
"<= check a_group_pat: %s
\n
"
,
b
->
a_group_pat
.
bv_val
,
0
,
0
);
/* b->a_group is an unexpanded entry name, expanded it should be an
* entry with objectclass group* and we test to see if odn is one of
* the values in the attribute group
...
...
@@ -1251,16 +1254,21 @@ dn_match_cleanup:;
}
if
(
b
->
a_set_pat
.
bv_len
!=
0
)
{
struct
berval
bv
;
char
buf
[
ACL_BUF_SIZE
];
if
(
b
->
a_set_style
==
ACL_STYLE_REGEX
){
struct
berval
bv
;
char
buf
[
ACL_BUF_SIZE
];
Debug
(
LDAP_DEBUG_ACL
,
"<= check a_set_pat: %s
\n
"
,
b
->
a_set_pat
.
bv_val
,
0
,
0
);
if
(
b
->
a_set_style
==
ACL_STYLE_REGEX
)
{
bv
.
bv_len
=
sizeof
(
buf
)
-
1
;
bv
.
bv_val
=
buf
;
string_expand
(
&
bv
,
&
b
->
a_set_pat
,
e
->
e_ndn
,
matches
);
}
else
{
}
else
{
bv
=
b
->
a_set_pat
;
}
if
(
aci_match_set
(
&
bv
,
op
,
e
,
0
)
==
0
)
{
if
(
aci_match_set
(
&
bv
,
op
,
e
,
0
)
==
0
)
{
continue
;
}
}
...
...
@@ -1336,6 +1344,9 @@ dn_match_cleanup:;
BerVarray
bvals
=
NULL
;
int
ret
,
stop
;
Debug
(
LDAP_DEBUG_ACL
,
" <= check a_aci_at: %s
\n
"
,
b
->
a_aci_at
->
ad_cname
.
bv_val
,
0
,
0
);
/* this case works different from the others above.
* since aci's themselves give permissions, we need
* to first check b->a_access_mask, the ACL's access level.
...
...
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