No roles after LDAP setup

21 views
Skip to first unread message

Darryl Smith

unread,
Nov 21, 2019, 2:03:55 AM11/21/19
to CrafterCMS
Hello

I have recently setup CrafterCMS and managed to get LDAP authentication to work. The problem is that once I login I have no sites and no rights / roles to be able to create anything.

Is there some way I can have an admin user for system administration and use LDAP for authoring etc? Are there other options to elevate my user to admin? 

Regards
Darryl

Dejan Brkic

unread,
Nov 21, 2019, 9:49:41 AM11/21/19
to CrafterCMS
Hi Darryl

Your LDAP user does not have sites nor roles/rights because of mapping between LDAP groups (or attributes used as crafter groups) and Crafter Studio groups. It is either not configured properly or there is no mapping (your LDAP groups are not used for Crafter Studio)
You can solve this mapping with one of 2 options:

1) Configure properly mapping between LDAP groups and Crafter Studio groups or add Crafter Studio groups to LDAP as new attributes

    Group mapping configuration example:
    # LDAP groups attribute
    groupNameLdapAttribute: crafterGroup
    # LDAP groups attribute name regex
    groupNameLdapAttributeRegex: .*
    # LDAP groups attribute match index
    groupNameLdapAttributeMatchIndex: 0

2) You can manually add your user to any existing Crafter Studio groups and it will get access to sites accordingly. To do so you need to login as default (built-in) system administrator user (or any other system administrator user if you added some more)

Regards,
Dejan Brkic
Reply all
Reply to author
Forward
0 new messages