I have synced used data fron source LDAP to Gluu. But how to map the user roles in source LDAP to Gluu?
'role' is nothing but attribute with data ( correct me if I am wrong, I am not aware of your infrastructure ); so it should same as other attribute mapping.
I am checking whether anything like this: http://blog.keycloak.org/2015/08/improved-ldap-integration-with-keycloak.html
available in Gluu?
it's same as mapping attribute which has 'role' value in your backend AD.
Most of the case, 'memberOf' attribute is used for 'role'. Just map memberOf.. that will do.
But role is under different sub tree called groups and users are under people. Then these roles are added to memberOf of user.
'subtree' can't be pulled by bypassing DN from Gluu Server in out of the box solution.