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
c70cab00
Commit
c70cab00
authored
15 years ago
by
Quanah Gibson-Mount
Browse files
Options
Downloads
Patches
Plain Diff
ITS#6257
parent
45d87c22
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGES
+1
-0
1 addition, 0 deletions
CHANGES
include/ldap.h
+1
-0
1 addition, 0 deletions
include/ldap.h
libraries/libldap/cyrus.c
+26
-0
26 additions, 0 deletions
libraries/libldap/cyrus.c
with
28 additions
and
0 deletions
CHANGES
+
1
−
0
View file @
c70cab00
...
...
@@ -3,6 +3,7 @@ OpenLDAP 2.4 Change Log
OpenLDAP 2.4.18 Engineering
Fixed client tools common options (ITS#6049)
Fixed liblber speed and other problems (ITS#6215)
Added libldap option for SASL_USERNAME (ITS#6257)
Fixed libldap error parsing (ITS#6197)
Fixed libldap native getpass usage (ITS#4643)
Fixed libldap tls_check_hostname for OpenSSL and MozNSS (ITS#6239)
...
...
This diff is collapsed.
Click to expand it.
include/ldap.h
+
1
−
0
View file @
c70cab00
...
...
@@ -186,6 +186,7 @@ LDAP_BEGIN_DECL
#define LDAP_OPT_X_SASL_MAXBUFSIZE 0x6109
#define LDAP_OPT_X_SASL_MECHLIST 0x610a
/* read-only */
#define LDAP_OPT_X_SASL_NOCANON 0x610b
#define LDAP_OPT_X_SASL_USERNAME 0x610c
/* read-only */
/* OpenLDAP GSSAPI options */
#define LDAP_OPT_X_GSSAPI_DO_NOT_FREE_CONTEXT 0x6200
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap/cyrus.c
+
26
−
0
View file @
c70cab00
...
...
@@ -1013,6 +1013,31 @@ ldap_int_sasl_get_option( LDAP *ld, int option, void *arg )
*
(
int
*
)
arg
=
(
int
)
LDAP_BOOL_GET
(
&
ld
->
ld_options
,
LDAP_BOOL_SASL_NOCANON
);
break
;
case
LDAP_OPT_X_SASL_USERNAME
:
{
int
sc
;
char
*
username
;
sasl_conn_t
*
ctx
;
if
(
ld
->
ld_defconn
==
NULL
)
{
return
-
1
;
}
ctx
=
ld
->
ld_defconn
->
lconn_sasl_authctx
;
if
(
ctx
==
NULL
)
{
return
-
1
;
}
sc
=
sasl_getprop
(
ctx
,
SASL_USERNAME
,
(
SASL_CONST
void
**
)(
char
**
)
&
username
);
if
(
sc
!=
SASL_OK
)
{
return
-
1
;
}
*
(
char
**
)
arg
=
username
;
}
break
;
case
LDAP_OPT_X_SASL_SECPROPS
:
/* this option is write only */
return
-
1
;
...
...
@@ -1034,6 +1059,7 @@ ldap_int_sasl_set_option( LDAP *ld, int option, void *arg )
switch
(
option
)
{
case
LDAP_OPT_X_SASL_SSF
:
case
LDAP_OPT_X_SASL_USERNAME
:
/* This option is read-only */
return
-
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