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
3a26ef5b
Commit
3a26ef5b
authored
22 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
silence warnings
parent
a7349c10
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
servers/slapd/sasl.c
+1
-1
1 addition, 1 deletion
servers/slapd/sasl.c
servers/slapd/saslauthz.c
+3
-1
3 additions, 1 deletion
servers/slapd/saslauthz.c
with
4 additions
and
2 deletions
servers/slapd/sasl.c
+
1
−
1
View file @
3a26ef5b
...
...
@@ -382,7 +382,7 @@ int slap_sasl_getdn( Connection *conn, char *id, int len,
len
=
dn
->
bv_len
+
sizeof
(
"uid="
)
-
1
+
sizeof
(
",cn=auth"
)
-
1
;
/* username may have embedded realm name */
if
(
realm
=
strchr
(
dn
->
bv_val
,
'@'
)
)
{
if
(
(
realm
=
strchr
(
dn
->
bv_val
,
'@'
)
)
)
{
*
realm
++
=
'\0'
;
len
+=
sizeof
(
",cn="
)
-
2
;
}
else
if
(
user_realm
&&
*
user_realm
)
{
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/saslauthz.c
+
3
−
1
View file @
3a26ef5b
...
...
@@ -286,7 +286,9 @@ static void slap_sasl_rx_exp(
static
int
slap_sasl_regexp
(
struct
berval
*
in
,
struct
berval
*
out
)
{
char
*
saslname
=
in
->
bv_val
;
#if 0
char *scope[] = { "base", "one", "sub" };
#endif
SaslRegexp_t
*
reg
;
int
i
;
...
...
@@ -386,7 +388,7 @@ void slap_sasl2dn( Connection *conn,
struct
berval
*
saslname
,
struct
berval
*
sasldn
)
{
int
rc
;
Backend
*
be
;
Backend
*
be
=
NULL
;
struct
berval
dn
=
{
0
,
NULL
};
int
scope
=
LDAP_SCOPE_BASE
;
Filter
*
filter
=
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