36
tmpl/sunstone-ldap_auth.conf
Normal file
36
tmpl/sunstone-ldap_auth.conf
Normal file
@ -0,0 +1,36 @@
|
||||
%if 'ldap' in %%getVar('sunstone_auth_modes')
|
||||
server 1:
|
||||
# Ldap user able to query, if not set connects as anonymous. For
|
||||
# Active Directory append the domain name. Example:
|
||||
# Administrator@my.domain.com
|
||||
#:user: 'admin'
|
||||
#:password: 'password'
|
||||
|
||||
# Ldap authentication method
|
||||
|
||||
# Ldap server
|
||||
:host: %%adresse_ip_ldap
|
||||
%if %%getVar('ldap_tls', 'non') == 'oui'
|
||||
:auth_method: :simple_tls
|
||||
:port: 636
|
||||
%else
|
||||
:auth_method: :simple
|
||||
:port: 389
|
||||
%end if
|
||||
|
||||
# base hierarchy where to search for users and groups
|
||||
:base: %%ldap_base_dn
|
||||
|
||||
# group the users need to belong to. If not set any user will do
|
||||
#:group: 'cn=cloud,ou=groups,dc=domain'
|
||||
|
||||
# field that holds the user name, if not set 'cn' will be used
|
||||
:user_field: 'uid'
|
||||
|
||||
# for Active Directory use this user_field instead
|
||||
#:user_field: 'sAMAccountName'
|
||||
|
||||
# List the order the servers are queried
|
||||
:order:
|
||||
- server 1
|
||||
%end if
|
@ -65,7 +65,11 @@
|
||||
# driver defined for the user
|
||||
#
|
||||
#:auth: sunstone
|
||||
:auth: %%sunstone_auth
|
||||
%if %%getVar('sunstone_auth_modes', []) == []
|
||||
:auth: sunstone
|
||||
%else
|
||||
:auth: opennebula
|
||||
%end if
|
||||
|
||||
# Authentication driver to communicate with OpenNebula core
|
||||
# cipher, for symmetric cipher encryption of tokens
|
||||
|
Reference in New Issue
Block a user