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
David Barchiesi
OpenLDAP
Commits
68fa27c1
Commit
68fa27c1
authored
17 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
ITS#3864 from HEAD
parent
699542e8
No related branches found
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
libraries/libldap/cyrus.c
+7
-2
7 additions, 2 deletions
libraries/libldap/cyrus.c
servers/slapd/sasl.c
+3
-2
3 additions, 2 deletions
servers/slapd/sasl.c
with
10 additions
and
4 deletions
libraries/libldap/cyrus.c
+
7
−
2
View file @
68fa27c1
...
...
@@ -899,6 +899,8 @@ ldap_int_sasl_external(
sasl_conn_t
*
ctx
;
#if SASL_VERSION_MAJOR < 2
sasl_external_properties_t
extprops
;
#else
sasl_ssf_t
sasl_ssf
=
ssf
;
#endif
ctx
=
conn
->
lconn_sasl_authctx
;
...
...
@@ -908,7 +910,7 @@ ldap_int_sasl_external(
}
#if SASL_VERSION_MAJOR >= 2
sc
=
sasl_setprop
(
ctx
,
SASL_SSF_EXTERNAL
,
&
ssf
);
sc
=
sasl_setprop
(
ctx
,
SASL_SSF_EXTERNAL
,
&
sasl_
ssf
);
if
(
sc
==
SASL_OK
)
sc
=
sasl_setprop
(
ctx
,
SASL_AUTH_EXTERNAL
,
authid
);
#else
...
...
@@ -1206,6 +1208,8 @@ ldap_int_sasl_set_option( LDAP *ld, int option, void *arg )
int
sc
;
#if SASL_VERSION_MAJOR < 2
sasl_external_properties_t
extprops
;
#else
sasl_ssf_t
sasl_ssf
;
#endif
sasl_conn_t
*
ctx
;
...
...
@@ -1220,7 +1224,8 @@ ldap_int_sasl_set_option( LDAP *ld, int option, void *arg )
}
#if SASL_VERSION_MAJOR >= 2
sc
=
sasl_setprop
(
ctx
,
SASL_SSF_EXTERNAL
,
arg
);
sasl_ssf
=
*
(
ber_len_t
*
)
arg
;
sc
=
sasl_setprop
(
ctx
,
SASL_SSF_EXTERNAL
,
&
sasl_ssf
);
#else
memset
(
&
extprops
,
0L
,
sizeof
(
extprops
));
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/sasl.c
+
3
−
2
View file @
68fa27c1
...
...
@@ -1448,12 +1448,13 @@ int slap_sasl_external(
#if SASL_VERSION_MAJOR >= 2
int
sc
;
sasl_conn_t
*
ctx
=
conn
->
c_sasl_authctx
;
sasl_ssf_t
sasl_ssf
=
ssf
;
if
(
ctx
==
NULL
)
{
return
LDAP_UNAVAILABLE
;
}
sc
=
sasl_setprop
(
ctx
,
SASL_SSF_EXTERNAL
,
&
ssf
);
sc
=
sasl_setprop
(
ctx
,
SASL_SSF_EXTERNAL
,
&
sasl_
ssf
);
if
(
sc
!=
SASL_OK
)
{
return
LDAP_OTHER
;
...
...
@@ -1622,7 +1623,7 @@ int slap_sasl_bind( Operation *op, SlapReply *rs )
if
(
!
op
->
o_conn
->
c_sasl_bind_in_progress
)
{
/* If we already authenticated once, must use a new context */
if
(
op
->
o_conn
->
c_sasl_done
)
{
s
lap
_ssf_t
ssf
=
0
;
s
asl
_ssf_t
ssf
=
0
;
const
char
*
authid
=
NULL
;
#if SASL_VERSION_MAJOR >= 2
sasl_getprop
(
ctx
,
SASL_SSF_EXTERNAL
,
(
void
*
)
&
ssf
);
...
...
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