diff --git a/config/authentication.ini.in b/config/authentication.ini.in index aae7fee63..38ddce959 100755 --- a/config/authentication.ini.in +++ b/config/authentication.ini.in @@ -12,23 +12,13 @@ ; priority. -[ldap_authentication] +[internal_ldap_authentication] @ldap_auth_disabled@ -backend = "ldap" -target = "user" -hostname = "@ldap_host@" -port = "@ldap_port@" -root_dn = "@ldap_rootdn@" -bind_dn = "@ldap_binddn@" -bind_pw = "@ldap_bindpass@" +backend = ldap +target = user +resource = internal_ldap -; Object class of the user -user_class = "@ldap_user_objectclass@" - -; Attribute name for username -user_name_attribute = "@ldap_attribute_username@" - -[internal_authentication] +[internal_db_authentication] @internal_auth_disabled@ backend = db target = "user" diff --git a/config/resources.ini.in b/config/resources.ini.in index 1085fff94..d0a93c1fc 100755 --- a/config/resources.ini.in +++ b/config/resources.ini.in @@ -39,3 +39,15 @@ object_file = @objects_cache_file@ [livestatus] type = livestatus 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@