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
8829115c
Commit
8829115c
authored
12 years ago
by
Howard Chu
Committed by
Quanah Gibson-Mount
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ITS#7403 fix idassert non-override mode
parent
6bfb935d
No related branches found
Branches containing commit
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
doc/man/man5/slapd-ldap.5
+7
-6
7 additions, 6 deletions
doc/man/man5/slapd-ldap.5
servers/slapd/back-ldap/bind.c
+12
-0
12 additions, 0 deletions
servers/slapd/back-ldap/bind.c
with
19 additions
and
6 deletions
doc/man/man5/slapd-ldap.5
+
7
−
6
View file @
8829115c
...
@@ -40,7 +40,7 @@ for details.
...
@@ -40,7 +40,7 @@ for details.
The proxy instance of
The proxy instance of
.BR slapd (8)
.BR slapd (8)
must contain schema information for the attributes and objectClasses
must contain schema information for the attributes and objectClasses
used in filters, request DN and request-related data in general.
used in filters, request DN
s
and request-related data in general.
It should also contain schema information for the data returned
It should also contain schema information for the data returned
by the proxied server.
by the proxied server.
It is the responsibility of the proxy administrator to keep the schema
It is the responsibility of the proxy administrator to keep the schema
...
@@ -92,7 +92,7 @@ so its use is redundant and should be omitted.
...
@@ -92,7 +92,7 @@ so its use is redundant and should be omitted.
LDAP server to use. Multiple URIs can be set in a single
LDAP server to use. Multiple URIs can be set in a single
.B ldapurl
.B ldapurl
argument, resulting in the underlying library automatically
argument, resulting in the underlying library automatically
call the first server of the list that responds, e.g.
call
ing
the first server of the list that responds, e.g.
\fBuri "ldap://host/ ldap://backup\-host/"\fP
\fBuri "ldap://host/ ldap://backup\-host/"\fP
...
@@ -100,7 +100,7 @@ The URI list is space- or comma-separated.
...
@@ -100,7 +100,7 @@ The URI list is space- or comma-separated.
Whenever the server that responds is not the first one in the list,
Whenever the server that responds is not the first one in the list,
the list is rearranged and the responsive server is moved to the head,
the list is rearranged and the responsive server is moved to the head,
so that it will be first contacted the next time a connection
so that it will be first contacted the next time a connection
needs be created.
needs
to
be created.
.HP
.HP
.hy 0
.hy 0
.B acl\-bind
.B acl\-bind
...
@@ -138,7 +138,7 @@ The connection between the proxy database and the remote server
...
@@ -138,7 +138,7 @@ The connection between the proxy database and the remote server
associated to this identity is cached regardless of the lifespan
associated to this identity is cached regardless of the lifespan
of the client-proxy connection that first established it.
of the client-proxy connection that first established it.
.B This identity is
by no means
implicitly used by the proxy
.B This identity is
not
implicitly used by the proxy
.B when the client connects anonymously.
.B when the client connects anonymously.
The
The
.B idassert\-bind
.B idassert\-bind
...
@@ -193,7 +193,7 @@ underlying libldap, with rebinding eventually performed if the
...
@@ -193,7 +193,7 @@ underlying libldap, with rebinding eventually performed if the
.TP
.TP
.B conn\-ttl <time>
.B conn\-ttl <time>
This directive causes a cached connection to be dropped an recreated
This directive causes a cached connection to be dropped an
d
recreated
after a given ttl, regardless of being idle or not.
after a given ttl, regardless of being idle or not.
.TP
.TP
...
@@ -232,6 +232,8 @@ for details on the syntax of this field.
...
@@ -232,6 +232,8 @@ for details on the syntax of this field.
Allows to define the parameters of the authentication method that is
Allows to define the parameters of the authentication method that is
internally used by the proxy to authorize connections that are
internally used by the proxy to authorize connections that are
authenticated by other databases.
authenticated by other databases.
Direct binds are always proxied without any idassert handling.
The identity defined by this directive, according to the properties
The identity defined by this directive, according to the properties
associated to the authentication method, is supposed to have auth access
associated to the authentication method, is supposed to have auth access
on the target server to attributes used on the proxy for authentication
on the target server to attributes used on the proxy for authentication
...
@@ -303,7 +305,6 @@ which implies that the proxy will either perform a simple bind as the
...
@@ -303,7 +305,6 @@ which implies that the proxy will either perform a simple bind as the
or a SASL bind as the
or a SASL bind as the
.I authcID
.I authcID
and assert the client's identity when it is not anonymous.
and assert the client's identity when it is not anonymous.
Direct binds are always proxied.
The other modes imply that the proxy will always either perform a simple bind
The other modes imply that the proxy will always either perform a simple bind
as the
as the
.IR authcDN
.IR authcDN
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-ldap/bind.c
+
12
−
0
View file @
8829115c
...
@@ -2116,6 +2116,18 @@ ldap_back_is_proxy_authz( Operation *op, SlapReply *rs, ldap_back_send_t sendok,
...
@@ -2116,6 +2116,18 @@ ldap_back_is_proxy_authz( Operation *op, SlapReply *rs, ldap_back_send_t sendok,
ndn
=
op
->
o_ndn
;
ndn
=
op
->
o_ndn
;
}
}
if
(
!
(
li
->
li_idassert_flags
&
LDAP_BACK_AUTH_OVERRIDE
))
{
if
(
op
->
o_tag
==
LDAP_REQ_BIND
)
{
if
(
!
BER_BVISEMPTY
(
&
ndn
))
{
dobind
=
0
;
goto
done
;
}
}
else
if
(
SLAP_IS_AUTHZ_BACKEND
(
op
))
{
dobind
=
0
;
goto
done
;
}
}
switch
(
li
->
li_idassert_mode
)
{
switch
(
li
->
li_idassert_mode
)
{
case
LDAP_BACK_IDASSERT_LEGACY
:
case
LDAP_BACK_IDASSERT_LEGACY
:
if
(
!
BER_BVISNULL
(
&
ndn
)
&&
!
BER_BVISEMPTY
(
&
ndn
)
)
{
if
(
!
BER_BVISNULL
(
&
ndn
)
&&
!
BER_BVISEMPTY
(
&
ndn
)
)
{
...
...
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