cache
groups
ldap
Jahia 7.3
Jahia 8
LDAP user is added to an LDAP group this is not visible in the membership
Question
LDAP user is added to an LDAP group this is not visible in the membership
Answer
The problem is the cache. The cache can be reconfigured to a shorter expiration time in ehcache configuration.
Especially the membership cache is a selfPopulatingReplicatedCache and must be reconfigured too, to the same expiration time as the LDAPCache
Else you can flush your cache when updating a LDAP group, by running such shell script:
#!/bin/sh
/usr/bin/wget -q -O /dev/null --user=jahia --password=secret ’http://host.domain:8080/modules/tools/cache.jsp?showActions=true&showConfig=true&showBytes=false&action=flush&name=org.jahia.services.usermanager.JahiaGroupManagerService.groupPathByGroupNameCache&propagate=false'
/usr/bin/wget -q -O /dev/null --user=jahia --password=secret ‘http://host.domain:8080/modules/tools/cache.jsp?showActions=true&showConfig=true&showBytes=false&action=flush&name=org.jahia.services.usermanager.JahiaGroupManagerService.membershipCache&propagate=false’
/usr/bin/wget -q -O /dev/null --user=jahia --password=secret ‘http://host.domain:8080/modules/tools/cache.jsp?showActions=true&showConfig=true&showBytes=false&action=flush&name=LDAPGroupsCache&propagate=false’