Quantcast
Channel: Zammad - Community - Latest posts
Viewing all articles
Browse latest Browse all 7679

LDAP group role mappings are not saved

$
0
0

Hi there
Same issue here, although running another Zammad version (5.4.1).
I found a workaround for this. You can define the mappings in the Zammad Rails Console like this:

Open console with
zammad run rails c

# First get a list of role id/name
Role.order(:id).pluck(:id, :name)

Adjust the LDAP configuration with
# Load config
l = LdapSource.first

# List current group role mapping (should be empty now)
 l.preferences["group_role_map"]

# Configure the mapping (adjust group dn and role id to your needs)
 l.preferences["group_role_map"] = { "cn=groupname,ou=groups,dc=..." => ["3"] }

# Save configuration
l.save

You can define as many group <> role maps as you need.
Hope this helps until the editing in the GUI is fixed.

Regards,
Patrick


Viewing all articles
Browse latest Browse all 7679

Trending Articles