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
8b54d3b7
Commit
8b54d3b7
authored
19 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
fix potential leak (if URL form is broken); cleanup
parent
6911e002
No related branches found
Branches containing commit
No related tags found
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
+16
-8
16 additions, 8 deletions
servers/slapd/saslauthz.c
with
16 additions
and
8 deletions
servers/slapd/saslauthz.c
+
16
−
8
View file @
8b54d3b7
...
...
@@ -94,8 +94,8 @@ static const char *policy_txt[] = {
static
int
authz_policy
=
SASL_AUTHZ_NONE
;
static
int
slap_sasl_match
(
Operation
*
opx
,
struct
berval
*
rule
,
static
int
slap_sasl_match
(
Operation
*
opx
,
struct
berval
*
rule
,
struct
berval
*
assertDN
,
struct
berval
*
authc
);
int
slap_sasl_setpolicy
(
const
char
*
arg
)
...
...
@@ -222,6 +222,7 @@ static int slap_parseURI( Operation *op, struct berval *uri,
"slap_parseURI: parsing %s
\n
"
,
uri
->
bv_val
,
0
,
0
);
rc
=
LDAP_PROTOCOL_ERROR
;
/*
* dn[.<dnstyle>]:<dnpattern>
* <dnstyle> ::= {exact|regex|children|subtree|onelevel}
...
...
@@ -435,7 +436,8 @@ is_dn: bv.bv_len = uri->bv_len - (bv.bv_val - uri->bv_val);
/*
* must be ldap:///
*/
return
LDAP_PROTOCOL_ERROR
;
rc
=
LDAP_PROTOCOL_ERROR
;
goto
done
;
}
break
;
...
...
@@ -445,12 +447,14 @@ is_dn: bv.bv_len = uri->bv_len - (bv.bv_val - uri->bv_val);
*
* NOTE: must pass DN normalization
*/
ldap_free_urldesc
(
ludp
);
bv
.
bv_val
=
uri
->
bv_val
;
*
scope
=
LDAP_X_SCOPE_EXACT
;
goto
is_dn
;
default:
return
LDAP_PROTOCOL_ERROR
;
rc
=
LDAP_PROTOCOL_ERROR
;
goto
done
;
}
if
(
(
ludp
->
lud_host
&&
*
ludp
->
lud_host
)
...
...
@@ -885,8 +889,8 @@ slap_sasl_matches( Operation *op, BerVarray rules,
* The assertDN should not have the dn: prefix
*/
static
int
slap_sasl_match
(
Operation
*
opx
,
struct
berval
*
rule
,
static
int
slap_sasl_match
(
Operation
*
opx
,
struct
berval
*
rule
,
struct
berval
*
assertDN
,
struct
berval
*
authc
)
{
int
rc
;
...
...
@@ -1136,8 +1140,12 @@ COMPLETE:
* an internal search must be done, and if that search returns exactly one
* entry, return the DN of that one entry.
*/
void
slap_sasl2dn
(
Operation
*
opx
,
struct
berval
*
saslname
,
struct
berval
*
sasldn
,
int
flags
)
void
slap_sasl2dn
(
Operation
*
opx
,
struct
berval
*
saslname
,
struct
berval
*
sasldn
,
int
flags
)
{
int
rc
;
slap_callback
cb
=
{
NULL
,
sasl_sc_sasl2dn
,
NULL
,
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