Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
James Lowden
OpenLDAP
Commits
4a6bc648
Commit
4a6bc648
authored
17 years ago
by
Quanah Gibson-Mount
Browse files
Options
Downloads
Patches
Plain Diff
ITS#5264
parent
5a6cd240
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES
+1
-0
1 addition, 0 deletions
CHANGES
servers/slapd/saslauthz.c
+7
-2
7 additions, 2 deletions
servers/slapd/saslauthz.c
with
8 additions
and
2 deletions
CHANGES
+
1
−
0
View file @
4a6bc648
...
...
@@ -7,6 +7,7 @@ OpenLDAP 2.4.8 Engineering
Fixed slapd include handling (ITS#5276)
Fixed slapd non-atomic signal variables (ITS#5248)
Fixed slapd overlay ordering when moving to slapd.d (ITS#5284)
Fixed slapd NULL printf (ITS#5264)
Added slapd-bdb/slapd-hdb DB encryption (ITS#5359)
Fixed slapd-ldif delete (ITS#5265)
Added slapo-autogroup contrib module (ITS#5145)
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/saslauthz.c
+
7
−
2
View file @
4a6bc648
...
...
@@ -1665,7 +1665,7 @@ slap_sasl_match( Operation *opx, struct berval *rule,
Debug
(
LDAP_DEBUG_TRACE
,
"===>slap_sasl_match: comparing DN %s to rule %s
\n
"
,
assertDN
->
bv_
val
,
rule
->
bv_val
,
0
);
assertDN
->
bv_
len
?
assertDN
->
bv_val
:
"(null)"
,
rule
->
bv_val
,
0
);
/* NOTE: don't normalize rule if authz syntax is enabled */
rc
=
slap_parseURI
(
opx
,
rule
,
&
base
,
&
op
.
o_req_ndn
,
...
...
@@ -2038,11 +2038,16 @@ int slap_sasl_authorized( Operation *op,
int
rc
=
LDAP_INAPPROPRIATE_AUTH
;
/* User binding as anonymous */
if
(
authzDN
==
NULL
)
{
if
(
!
authzDN
||
!
authzDN
->
bv_len
||
!
authzDN
->
bv_val
)
{
rc
=
LDAP_SUCCESS
;
goto
DONE
;
}
/* User is anonymous */
if
(
!
authcDN
||
!
authcDN
->
bv_len
||
!
authcDN
->
bv_val
)
{
goto
DONE
;
}
Debug
(
LDAP_DEBUG_TRACE
,
"==>slap_sasl_authorized: can %s become %s?
\n
"
,
authcDN
->
bv_len
?
authcDN
->
bv_val
:
"(null)"
,
...
...
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