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
Lukas However
OpenLDAP
Commits
16937cb9
Commit
16937cb9
authored
24 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
remove SASL bind call. Frontend code coming.
parent
3bad06d5
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/back-ldbm/bind.c
+3
-50
3 additions, 50 deletions
servers/slapd/back-ldbm/bind.c
with
3 additions
and
50 deletions
servers/slapd/back-ldbm/bind.c
+
3
−
50
View file @
16937cb9
...
...
@@ -74,12 +74,7 @@ ldbm_back_bind(
/* allow noauth binds */
rc
=
1
;
if
(
method
==
LDAP_AUTH_SIMPLE
)
{
if
(
cred
->
bv_len
==
0
)
{
/* SUCCESS */
send_ldap_result
(
conn
,
op
,
LDAP_SUCCESS
,
NULL
,
NULL
,
NULL
,
NULL
);
}
else
if
(
be_isroot_pw
(
be
,
dn
,
cred
)
)
{
if
(
be_isroot_pw
(
be
,
dn
,
cred
)
)
{
*
edn
=
ch_strdup
(
be_root_dn
(
be
)
);
rc
=
0
;
/* front end will send result */
...
...
@@ -92,21 +87,6 @@ ldbm_back_bind(
NULL
,
NULL
,
NULL
,
NULL
);
}
}
else
if
(
method
==
LDAP_AUTH_SASL
)
{
#ifdef HAVE_CYRUS_SASL
rc
=
sasl_bind
(
be
,
conn
,
op
,
dn
,
ndn
,
mech
,
cred
,
edn
);
#else
if
(
mech
!=
NULL
&&
strcasecmp
(
mech
,
"DIGEST-MD5"
)
==
0
)
{
/* insert DIGEST calls here */
send_ldap_result
(
conn
,
op
,
LDAP_AUTH_METHOD_NOT_SUPPORTED
,
NULL
,
NULL
,
NULL
,
NULL
);
}
else
{
send_ldap_result
(
conn
,
op
,
LDAP_AUTH_METHOD_NOT_SUPPORTED
,
NULL
,
NULL
,
NULL
,
NULL
);
}
#endif
/* HAVE_CYRUS_SASL */
}
else
if
(
refs
!=
NULL
)
{
send_ldap_result
(
conn
,
op
,
LDAP_REFERRAL
,
matched_dn
,
NULL
,
refs
,
NULL
);
...
...
@@ -142,7 +122,7 @@ ldbm_back_bind(
0
,
0
);
send_ldap_result
(
conn
,
op
,
LDAP_ALIAS_PROBLEM
,
NULL
,
NULL
,
NULL
,
NULL
);
NULL
,
"entry is alias"
,
NULL
,
NULL
);
rc
=
1
;
goto
return_results
;
...
...
@@ -173,15 +153,6 @@ ldbm_back_bind(
switch
(
method
)
{
case
LDAP_AUTH_SIMPLE
:
if
(
cred
->
bv_len
==
0
)
{
send_ldap_result
(
conn
,
op
,
LDAP_SUCCESS
,
NULL
,
NULL
,
NULL
,
NULL
);
/* stop front end from sending result */
rc
=
1
;
goto
return_results
;
}
/* check for root dn/passwd */
if
(
be_isroot_pw
(
be
,
dn
,
cred
)
)
{
/* front end will send result */
...
...
@@ -222,15 +193,6 @@ ldbm_back_bind(
#ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
case
LDAP_AUTH_KRBV41
:
if
(
!
access_allowed
(
be
,
conn
,
op
,
e
,
"krbname"
,
NULL
,
ACL_AUTH
)
)
{
send_ldap_result
(
conn
,
op
,
LDAP_INSUFFICIENT_ACCESS
,
NULL
,
NULL
,
NULL
,
NULL
);
rc
=
1
;
goto
return_results
;
}
if
(
krbv4_ldap_auth
(
be
,
cred
,
&
ad
)
!=
LDAP_SUCCESS
)
{
send_ldap_result
(
conn
,
op
,
LDAP_INVALID_CREDENTIALS
,
NULL
,
NULL
,
NULL
,
NULL
);
...
...
@@ -250,7 +212,6 @@ ldbm_back_bind(
sprintf
(
krbname
,
"%s%s%s@%s"
,
ad
.
pname
,
*
ad
.
pinst
?
"."
:
""
,
ad
.
pinst
,
ad
.
prealm
);
if
(
(
a
=
attr_find
(
e
->
e_attrs
,
"krbname"
))
==
NULL
)
{
/*
* no krbname values present: check against DN
...
...
@@ -289,17 +250,9 @@ ldbm_back_bind(
goto
return_results
;
#endif
case
LDAP_AUTH_SASL
:
/* insert SASL code here */
#ifdef HAVE_CYRUS_SASL
/* this may discard edn as we always prefer the SASL authzid
* because it may be sealed.
*/
rc
=
sasl_bind
(
be
,
conn
,
op
,
dn
,
ndn
,
mech
,
cred
,
edn
);
#endif
/* HAVE_CYRUS_SASL */
default:
send_ldap_result
(
conn
,
op
,
LDAP_STRONG_AUTH_NOT_SUPPORTED
,
NULL
,
"auth method not supported"
,
NULL
,
NULL
);
NULL
,
"auth
entication
method not supported"
,
NULL
,
NULL
);
rc
=
1
;
goto
return_results
;
}
...
...
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