Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
a4ad2eea
Commit
a4ad2eea
authored
22 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
ACL cleanup
Likely needs more deadlock detection checks
parent
ed471a4d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
servers/slapd/back-bdb/bind.c
+6
-6
6 additions, 6 deletions
servers/slapd/back-bdb/bind.c
servers/slapd/back-bdb/compare.c
+3
-4
3 additions, 4 deletions
servers/slapd/back-bdb/compare.c
servers/slapd/back-bdb/modrdn.c
+11
-8
11 additions, 8 deletions
servers/slapd/back-bdb/modrdn.c
with
20 additions
and
18 deletions
servers/slapd/back-bdb/bind.c
+
6
−
6
View file @
a4ad2eea
...
...
@@ -211,9 +211,9 @@ dn2entry_retry:
goto
done
;
}
if
(
!
access_allowed
(
be
,
conn
,
op
,
e
,
password
,
NULL
,
ACL_AUTH
,
NULL
)
)
{
rc
=
access_allowed
(
be
,
conn
,
op
,
e
,
password
,
NULL
,
ACL_AUTH
,
NULL
)
;
if
(
!
rc
)
{
send_ldap_result
(
conn
,
op
,
rc
=
LDAP_INSUFFICIENT_ACCESS
,
NULL
,
NULL
,
NULL
,
NULL
);
goto
done
;
...
...
@@ -242,9 +242,9 @@ dn2entry_retry:
goto
done
;
}
if
(
!
access_allowed
(
be
,
conn
,
op
,
e
,
krbattr
,
NULL
,
ACL_AUTH
,
NULL
)
)
{
rc
=
access_allowed
(
be
,
conn
,
op
,
e
,
krbattr
,
NULL
,
ACL_AUTH
,
NULL
)
;
if
(
!
rc
)
{
send_ldap_result
(
conn
,
op
,
rc
=
LDAP_INSUFFICIENT_ACCESS
,
NULL
,
NULL
,
NULL
,
NULL
);
goto
done
;
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-bdb/compare.c
+
3
−
4
View file @
a4ad2eea
...
...
@@ -110,9 +110,9 @@ dn2entry_retry:
goto
done
;
}
if
(
!
access_allowed
(
be
,
conn
,
op
,
e
,
ava
->
aa_desc
,
&
ava
->
aa_value
,
ACL_COMPARE
,
NULL
)
)
{
rc
=
access_allowed
(
be
,
conn
,
op
,
e
,
ava
->
aa_desc
,
&
ava
->
aa_value
,
ACL_COMPARE
,
NULL
)
;
if
(
!
rc
)
{
rc
=
LDAP_INSUFFICIENT_ACCESS
;
goto
return_results
;
}
...
...
@@ -129,7 +129,6 @@ dn2entry_retry:
rc
=
LDAP_COMPARE_TRUE
;
break
;
}
}
return_results:
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-bdb/modrdn.c
+
11
−
8
View file @
a4ad2eea
...
...
@@ -272,9 +272,10 @@ retry: /* transaction retry */
}
/* check parent for "children" acl */
if
(
!
access_allowed
(
be
,
conn
,
op
,
p
,
children
,
NULL
,
ACL_WRITE
,
NULL
)
)
{
rc
=
access_allowed
(
be
,
conn
,
op
,
p
,
children
,
NULL
,
ACL_WRITE
,
NULL
)
);
if
(
!
rc
)
{
rc
=
LDAP_INSUFFICIENT_ACCESS
;
#ifdef NEW_LOGGING
LDAP_LOG
(
OPERATION
,
ERR
,
...
...
@@ -326,8 +327,7 @@ retry: /* transaction retry */
p
=
NULL
;
if
(
!
rc
)
{
if
(
!
rc
)
{
rc
=
LDAP_INSUFFICIENT_ACCESS
;
#ifdef NEW_LOGGING
LDAP_LOG
(
OPERATION
,
ERR
,
...
...
@@ -408,6 +408,7 @@ retry: /* transaction retry */
newSuperior
=
NULL
;
/* ignore newSuperior */
}
}
if
(
newSuperior
!=
NULL
)
{
if
(
newSuperior
->
bv_len
)
{
np_dn
=
newSuperior
;
...
...
@@ -462,7 +463,10 @@ retry: /* transaction retry */
#endif
/* check newSuperior for "children" acl */
if
(
!
access_allowed
(
be
,
conn
,
op
,
np
,
children
,
NULL
,
ACL_WRITE
,
NULL
)
)
{
rc
=
access_allowed
(
be
,
conn
,
op
,
np
,
children
,
NULL
,
ACL_WRITE
,
NULL
);
if
(
!
rc
)
{
#ifdef NEW_LOGGING
LDAP_LOG
(
OPERATION
,
DETAIL1
,
"==>bdb_modrdn: no wr to newSup children
\n
"
,
0
,
0
,
0
);
...
...
@@ -525,8 +529,7 @@ retry: /* transaction retry */
np
=
NULL
;
if
(
!
rc
)
{
if
(
!
rc
)
{
rc
=
LDAP_INSUFFICIENT_ACCESS
;
#ifdef NEW_LOGGING
LDAP_LOG
(
OPERATION
,
ERR
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment