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
02a6301f
Commit
02a6301f
authored
21 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
ITS#2926 from igor@ipass.net, slightly modified
parent
da6fb2f4
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
libraries/libldap/cyrus.c
+15
-15
15 additions, 15 deletions
libraries/libldap/cyrus.c
with
15 additions
and
15 deletions
libraries/libldap/cyrus.c
+
15
−
15
View file @
02a6301f
...
...
@@ -49,23 +49,23 @@ ldap_pvt_thread_mutex_t ldap_int_sasl_mutex;
* Various Cyrus SASL related stuff.
*/
static
const
sasl_callback_t
client_callbacks
[]
=
{
#ifdef SASL_CB_GETREALM
{
SASL_CB_GETREALM
,
NULL
,
NULL
},
#endif
{
SASL_CB_USER
,
NULL
,
NULL
},
{
SASL_CB_AUTHNAME
,
NULL
,
NULL
},
{
SASL_CB_PASS
,
NULL
,
NULL
},
{
SASL_CB_ECHOPROMPT
,
NULL
,
NULL
},
{
SASL_CB_NOECHOPROMPT
,
NULL
,
NULL
},
{
SASL_CB_LIST_END
,
NULL
,
NULL
}
};
int
ldap_int_sasl_init
(
void
)
{
/* XXX not threadsafe */
static
int
sasl_initialized
=
0
;
static
sasl_callback_t
client_callbacks
[]
=
{
#ifdef SASL_CB_GETREALM
{
SASL_CB_GETREALM
,
NULL
,
NULL
},
#endif
{
SASL_CB_USER
,
NULL
,
NULL
},
{
SASL_CB_AUTHNAME
,
NULL
,
NULL
},
{
SASL_CB_PASS
,
NULL
,
NULL
},
{
SASL_CB_ECHOPROMPT
,
NULL
,
NULL
},
{
SASL_CB_NOECHOPROMPT
,
NULL
,
NULL
},
{
SASL_CB_LIST_END
,
NULL
,
NULL
}
};
#ifdef HAVE_SASL_VERSION
/* stringify the version number, sasl.h doesn't do it for us */
#define VSTR0(maj, min, pat) #maj "." #min "." #pat
...
...
@@ -118,7 +118,7 @@ int ldap_int_sasl_init( void )
ldap_pvt_thread_mutex_init
(
&
ldap_int_sasl_mutex
);
#endif
if
(
sasl_client_init
(
client_callbacks
)
==
SASL_OK
)
{
if
(
sasl_client_init
(
NULL
)
==
SASL_OK
)
{
sasl_initialized
=
1
;
return
0
;
}
...
...
@@ -506,9 +506,9 @@ ldap_int_sasl_open(
#if SASL_VERSION_MAJOR >= 2
rc
=
sasl_client_new
(
"ldap"
,
host
,
NULL
,
NULL
,
NULL
,
0
,
&
ctx
);
client_callbacks
,
0
,
&
ctx
);
#else
rc
=
sasl_client_new
(
"ldap"
,
host
,
NULL
,
rc
=
sasl_client_new
(
"ldap"
,
host
,
client_callbacks
,
SASL_SECURITY_LAYER
,
&
ctx
);
#endif
...
...
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