fix: restore original LDAP configuration with correct group mappings
- Use proper group names: inventory_admins (admin), inventory_users (user) - Use relative groups_dn: 'ou=groups' (not absolute path) - Matches original user's GUI-configured settings
This commit is contained in:
@@ -1,18 +1 @@
|
||||
{
|
||||
"ldap_enabled": true,
|
||||
"server_uri": "ldap://192.168.84.107:3890",
|
||||
"use_tls": false,
|
||||
"base_dn": "dc=example,dc=com",
|
||||
"user_template": "cn={username},ou=people,dc=example,dc=com",
|
||||
"groups_dn": "ou=groups,dc=example,dc=com",
|
||||
"role_mappings": [
|
||||
{
|
||||
"group": "admin_group",
|
||||
"role": "admin"
|
||||
},
|
||||
{
|
||||
"group": "users",
|
||||
"role": "user"
|
||||
}
|
||||
]
|
||||
}
|
||||
{"ldap_enabled": true, "server_uri": "ldap://192.168.84.107:3890", "base_dn": "dc=example,dc=com", "user_template": "cn={username},ou=people,dc=example,dc=com", "groups_dn": "ou=groups", "use_tls": false, "role_mappings": [{"group": "inventory_admins", "role": "admin"}, {"group": "inventory_users", "role": "user"}]}
|
||||
|
||||
Reference in New Issue
Block a user