Resources: Fix internal ldap auth not configured via resources.ini

This commit is contained in:
Eric Lippmann 2013-11-26 12:00:37 +01:00
parent e229d73038
commit eefd9d07ae
2 changed files with 17 additions and 15 deletions

View File

@ -12,23 +12,13 @@
; priority. ; priority.
[ldap_authentication] [internal_ldap_authentication]
@ldap_auth_disabled@ @ldap_auth_disabled@
backend = "ldap" backend = ldap
target = "user" target = user
hostname = "@ldap_host@" resource = internal_ldap
port = "@ldap_port@"
root_dn = "@ldap_rootdn@"
bind_dn = "@ldap_binddn@"
bind_pw = "@ldap_bindpass@"
; Object class of the user [internal_db_authentication]
user_class = "@ldap_user_objectclass@"
; Attribute name for username
user_name_attribute = "@ldap_attribute_username@"
[internal_authentication]
@internal_auth_disabled@ @internal_auth_disabled@
backend = db backend = db
target = "user" target = "user"

View File

@ -39,3 +39,15 @@ object_file = @objects_cache_file@
[livestatus] [livestatus]
type = livestatus type = livestatus
socket = @livestatus_socket@ socket = @livestatus_socket@
[internal_ldap]
type = ldap
hostname = @ldap_host@
port = @ldap_port@
root_dn = "@ldap_rootdn@"
bind_dn = "@ldap_binddn@"
bind_pw = @ldap_bindpass@
; Object class of the user
user_class = @ldap_user_objectclass@
; Attribute name for username
user_name_attribute = @ldap_attribute_username@