Hi Simer, Jakckrabbit has o.a.j.api.security.user.UserManager interface to implement your custom usermanager.
But the irony is that one cannot configure jackrabbit to use custom usermanager ( hypothetical <UserManager class=".."> :-) ). however you can achieve this by writing your own SecurityManager ( which can be configured with <SecurityManager/>), and use the custom usermanager in the securitymanager. please look into the code to get an idea as to how you need to implement UserManager and SecurityManager. Note - consequently you have to write PrincipalProvider, as the DefaultPrincipalProvider is implemented with UserManagerImpl composition and not by interfacin through UserManager ( which I assume has some scope of re-factoring ) This approach seems very dirty, but I cannot think of any cleaner way to achieve this. Jukka/Melissa - please correct me If am wrong. -Amjed simer anand wrote: > > Hello Users and amjedonline, > > how i can add a facility to my repository that would enable adding new >> users and thus storing them >> -You have to implement your own UserManager, which probably creates user >> in >> your database. >> > > Any reference how i can do that. > >> >> and further some one who created those users can authenticate themselves >> for >> viewing/reading/writing the repository as per the privileges. >> >> -Not sure, looks like you have to implement SecurityManager. Look into >> the >> DefaultSecurityManager, you ll get the answer. >> >> >> > > Thanks for your reply, > Simer > > -- View this message in context: http://www.nabble.com/how-can-i-add-new-users-and-store-them-in-repository-tp25430694p25432833.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
