mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-23 02:17:35 +00:00
Make it clear that host and uri can take multiple parameters.
URI is now supported for more than just openldap nsswitch.conf does't accept "compat"
This commit is contained in:
parent
055bda6261
commit
77d841e0e6
13
README.LDAP
13
README.LDAP
@ -212,15 +212,19 @@ option.
|
|||||||
Make sure you sudoers_base matches exactly with the location you specified
|
Make sure you sudoers_base matches exactly with the location you specified
|
||||||
when you imported the sudoers. Below is an example /etc/ldap.conf
|
when you imported the sudoers. Below is an example /etc/ldap.conf
|
||||||
|
|
||||||
# Either specify a URI or host and port.
|
# Either specify one or more URIs or one or more host:port pairs.
|
||||||
# If neither is specified sudo will default to localhost port 389.
|
# If neither is specified sudo will default to localhost, port 389.
|
||||||
|
#
|
||||||
#host ldapserver
|
#host ldapserver
|
||||||
|
#host ldapserver1 ldapserver2:390
|
||||||
|
#
|
||||||
|
# Default port if host is specified without one, defaults to 389.
|
||||||
#port 389
|
#port 389
|
||||||
#
|
#
|
||||||
# URI will override host & port settings but only works with LDAP
|
# URI will override the host and port settings.
|
||||||
# SDK's that support ldap_initialize() such as OpenLDAP.
|
|
||||||
uri ldap://ldapserver
|
uri ldap://ldapserver
|
||||||
#uri ldaps://secureldapserver
|
#uri ldaps://secureldapserver
|
||||||
|
#uri ldaps://secureldapserver ldap://ldapserver
|
||||||
#
|
#
|
||||||
# must be set or sudo will ignore LDAP
|
# must be set or sudo will ignore LDAP
|
||||||
sudoers_base ou=SUDOers,dc=example,dc=com
|
sudoers_base ou=SUDOers,dc=example,dc=com
|
||||||
@ -372,7 +376,6 @@ Starting with version 1.7, sudo consults nsswitch.conf for the search order.
|
|||||||
The following sources are recognized.
|
The following sources are recognized.
|
||||||
files read sudoers from a file (usually /etc/sudoers)
|
files read sudoers from a file (usually /etc/sudoers)
|
||||||
ldap read sudoers from LDAP
|
ldap read sudoers from LDAP
|
||||||
compat behave as if no nsswitch.conf was present
|
|
||||||
|
|
||||||
I addition, the entry "[NOTFOUND=return]" will short-circuit the
|
I addition, the entry "[NOTFOUND=return]" will short-circuit the
|
||||||
search if the user was not found in the preceding source.
|
search if the user was not found in the preceding source.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user