I'd like some advice. What's the best practice for initializing a brand new web application?

Originally in my app, I had a JSP form that, when invoked would see if any users already exist and if not, use the info from the form to create an initial admin user. But now that I've incorporated security into things, well there's no way for a non-admin user to create a new user... and therefore, there's no way for that JSP form to create the new user.

Now, I could code up a new program to do it, but that seems like overkill, and could be difficult to maintain... it would require a separate branch, or totally new build configuration.

Is there a way to do this with a RunAsManager? How have others put that first admin user into their systems?

Thanks,

Mark


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to