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
Jaak Ristioja
OpenLDAP
Commits
369b1515
Commit
369b1515
authored
21 years ago
by
Luke Howard
Browse files
Options
Downloads
Patches
Plain Diff
Ensure exact DNs are normalized in slap_parseURI.
parent
fc11d831
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
servers/slapd/saslauthz.c
+6
-3
6 additions, 3 deletions
servers/slapd/saslauthz.c
with
6 additions
and
3 deletions
servers/slapd/saslauthz.c
+
6
−
3
View file @
369b1515
...
...
@@ -136,9 +136,12 @@ is_dn_exact: bv.bv_len = uri->bv_len - (bv.bv_val - uri->bv_val);
is_dn:
bv
.
bv_len
=
uri
->
bv_len
-
(
bv
.
bv_val
-
uri
->
bv_val
);
ber_dupbv_x
(
nbase
,
&
bv
,
op
->
o_tmpmemctx
);
*
scope
=
LDAP_X_SCOPE_EXACTREGEX
;
return
LDAP_SUCCESS
;
rc
=
dnNormalize
(
0
,
NULL
,
NULL
,
&
bv
,
nbase
,
op
->
o_tmpmemctx
);
if
(
rc
==
LDAP_SUCCESS
)
{
*
scope
=
LDAP_X_SCOPE_EXACTREGEX
;
}
return
(
rc
);
/* explicitly set to regex: it will be regcomp'd/regexec'd */
}
else
if
(
!
strncasecmp
(
uri
->
bv_val
,
"dn.regex:"
,
sizeof
(
"dn.regex:"
)
-
1
)
)
{
...
...
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