username_attribute:cn#optional, if omitted DN becomes username
challenge:false
authentication_backend:
type:noop
ldap:
http_enabled:false
transport_enabled:false
order:5
http_authenticator:
type:basic
challenge:false
authentication_backend:
# LDAP authentication backend (authenticate users against a LDAP or Active Directory)
type:ldap# NOT FREE FOR COMMERCIAL USE
config:
# enable ldaps
enable_ssl:false
# enable start tls, enable_ssl should be false
enable_start_tls:false
# send client certificate
enable_ssl_client_auth:false
# verify ldap hostname
verify_hostnames:true
hosts:
-localhost:8389
bind_dn:null
password:null
userbase:'ou=people,dc=example,dc=com'
# Filter to search for users (currently in the whole subtree beneath userbase)
# {0} is substituted with the username
usersearch:'(sAMAccountName={0})'
# Use this attribute from the user as username (if not set then DN is used)
username_attribute:null
authz:
roles_from_myldap:
http_enabled:false
transport_enabled:false
authorization_backend:
# LDAP authorization backend (gather roles from a LDAP or Active Directory, you have to configure the above LDAP authentication backend settings too)
type:ldap# NOT FREE FOR COMMERCIAL USE
config:
# enable ldaps
enable_ssl:false
# enable start tls, enable_ssl should be false
enable_start_tls:false
# send client certificate
enable_ssl_client_auth:false
# verify ldap hostname
verify_hostnames:true
hosts:
-localhost:8389
bind_dn:null
password:null
rolebase:'ou=groups,dc=example,dc=com'
# Filter to search for roles (currently in the whole subtree beneath rolebase)
# {0} is substituted with the DN of the user
# {1} is substituted with the username
# {2} is substituted with an attribute value from user's directory entry, of the authenticated user. Use userroleattribute to specify the name of the attribute
rolesearch:'(member={0})'
# Specify the name of the attribute which value should be substituted with {2} above
userroleattribute:null
# Roles as an attribute of the user entry
userrolename:disabled
#userrolename: memberOf
# The attribute in a role entry containing the name of that role, Default is "name".
# Can also be "dn" to use the full DN as rolename.
rolename:cn
# Resolve nested roles transitive (roles which are members of other roles and so on ...)
resolve_nested_roles:true
userbase:'ou=people,dc=example,dc=com'
# Filter to search for users (currently in the whole subtree beneath userbase)
# {0} is substituted with the username
usersearch:'(uid={0})'
# Skip users matching a user name, a wildcard or a regex pattern