吴凌江 wrote: > Hi All > I'm using the MMbase to make a website.And I use the Context Security,that > is to > say ,I set the configuration file security.xml to be similar to the > following: > <authentication > > class="org.mmbase.security.implementation.context.ContextAuthentication" > url="context/config.xml" /> > <authorization > class="org.mmbase.security.implementation.context.ContextAuthorization" > url="context/config.xml" /> > Does anyone have any code which does the user register and the account > management > baseed on the Context Security(ie,create new user/account,remove an > user/account > ,user register to be a "basic user")? I'm waiting for your help :)
The default context security implemention is based on an XML-file (the 'context/config.xml' appearing in your configuration). Mentioned actions would therefore involve editing this file, which would probably not be very hard, but I am not aware of existing code which can do that. There exist also a similar security implementation named 'cloud context security', which administrates users, groups and rights in the mmbase cloud itself. If you use that, you can use the normal MMBase ways for nodes to create users and so on (this implementation is shipped with a set of JSP's which act as a managment environment for this security). Cloud context security can be downloaded from mmbase.org seperately, it is not shipped with the distro. IIRC it also has a tool to dispatch the existing 'context/config.xml' configuration 'context security' to the object structure of 'cloud context security'. Hoping that it helps, Michiel -- Michiel Meeuwissen mihxil' Peperbus 111 MediaPark H'sum [] () +31 (0)35 6772979 nl_NL eo_XX en_US _______________________________________________ Developers mailing list [email protected] http://lists.mmbase.org/mailman/listinfo/developers
