Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
Christopher Ng
OpenLDAP
Commits
9715e7f0
Commit
9715e7f0
authored
24 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Add disallow and requires to man page. Fix sasl ssf handling bug.
parent
bf3df2f7
No related branches found
Branches containing commit
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
doc/man/man5/slapd.conf.5
+34
-0
34 additions, 0 deletions
doc/man/man5/slapd.conf.5
servers/slapd/backend.c
+1
-1
1 addition, 1 deletion
servers/slapd/backend.c
servers/slapd/bind.c
+4
-0
4 additions, 0 deletions
servers/slapd/bind.c
with
39 additions
and
1 deletion
doc/man/man5/slapd.conf.5
+
34
−
0
View file @
9715e7f0
...
...
@@ -125,6 +125,18 @@ recommended that
directives be used instead.
.RE
.TP
.B disallow <features>
Specify a set of features (separated by white space) to disallow.
.B bind_v2
disables acceptance of LDAPv2 bind requests.
.B bind_anon
disables acceptance of anonymous bind requests.
.B bind_anon_cred
disables anonymous bind creditials are not empty (e.g. when
DN is empty).
.B bind_anon_dn
disables anonymous bind when DN is not empty.
.TP
.B idletimeout <integer>
Specify the number of seconds to wait before forcibly closing
an idle client connections. A idletimeout of 0 disables this
...
...
@@ -229,6 +241,28 @@ Specify the referral to pass back when
cannot find a local database to handle a request.
If specified multiple times, each url is provided.
.TP
.B require <conditions>
Specify a set of conditions (separated by white space) to require.
The directive may be specified globally and/or per-database.
.B bind
requires bind operation prior to directory operations.
.B LDAPv3
requires session to be using LDAP version 3.
.B authc
requires authentication prior to directory operations.
.B SASL
requires SASL authentication prior to directory operations.
.B strong
requires strong authentication prior to directory operations.
Currently
.B SASL
and
.B strong
conditions are currently same.
.B none
may be used to require no conditions (useful for clearly globally
set conditions within a particular database).
.TP
.B sasl-realm <string>
Used to specify Cyrus SASL realm.
.TP
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/backend.c
+
1
−
1
View file @
9715e7f0
...
...
@@ -733,7 +733,7 @@ backend_check_restrictions(
if
(
op
->
o_authmech
==
NULL
||
op
->
o_dn
==
NULL
||
*
op
->
o_dn
==
'\0'
)
{
*
text
=
"
SASL
authentication required"
;
*
text
=
"
strong
authentication required"
;
return
LDAP_STRONG_AUTH_REQUIRED
;
}
}
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/bind.c
+
4
−
0
View file @
9715e7f0
...
...
@@ -251,6 +251,10 @@ do_bind(
conn
->
c_dn
=
edn
;
conn
->
c_authmech
=
mech
;
if
(
ssf
)
conn
->
c_sasl_layers
++
;
conn
->
c_sasl_ssf
=
ssf
;
if
(
ssf
>
conn
->
c_ssf
)
{
conn
->
c_ssf
=
ssf
;
}
ldap_pvt_thread_mutex_unlock
(
&
conn
->
c_mutex
);
}
else
if
(
rc
==
LDAP_SASL_BIND_IN_PROGRESS
)
{
...
...
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