We are using LDAP and have an attribute on the Users within LDAP to
implement the groups.
In out tomcat server.xml file:
<Realm className="org.apache.catalina.realm.JNDIRealm"
debug="10"
connectionURL="ldap://192.168.x.x:389"
alternateURL="ldap://192.168.xx.xx:389"
userBase="ou=people,dc=willeke,dc=com"
userSearch="(cn={0})"
userSubtree="true"
userRoleName="dictcrole"
connectionName="cn=admin,ou=administration,dc=willeke,dc=com"
connectionPassword="secret"
Then a typical user in LDAP:
dictcRole=manager
dictcRole=Authenticated
dictcRole=linux
Which represent the groups used within the Wiki.
(Ok we really use these same attributes for other apps too)
When a value is changed in LDAP, they are effective on the next login.
-jim
On Thu, Aug 14, 2008 at 5:51 PM, Janne Jalkanen
<[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> JSPWiki assumes it owns the backend. So changing the backend outside of
> JSPWiki system is simply not supported. The fact that it happens to work in
> some cases is completely accidental.
>
> The only way to change this behaviour is to change the XMLGroupDatabase, or
> write your own GroupDatabase implementation.
>
> /Janne
>
> On 15 Aug 2008, at 00:26, anitasingh wrote:
>
>>
>> Hi,
>>
>> We have installed jspwiki 2.4.102 on Websphere5.1 and Tomcat. It works
>> great
>> except one problem.
>>
>> We add users and assign them to different groups through another existing
>> system. The existing system
>> updates the userdatabase.xml to add the user to wiki and also adds the
>> user
>> to chosen group in groupdatabase.xml.
>>
>> When we add a new user to userdatabase.xml the user has immidiate login to
>> jspwiki but when we assign the user to a group, his group privileges
>> doesn't work until we restart japwiki.
>> If we assign the user to a group through jspwiki admin, we do not need to
>> restart wiki for the user to get his privileges.
>>
>> Is this by design or I am missing something in configuration.
>> If its by design, what I can do to not have to restart jspwiki everytime
>> we
>> add a member to an existing group through another backend system.
>>
>> Appreciate your help.
>> TIA
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Adding-memebers-to-groupdatabase.xml-problem-tp18990033p18990033.html
>> Sent from the JspWiki - User mailing list archive at Nabble.com.
>
>
--
-jim
Jim Willeke