Patrick Huber wrote:
Hi Mark

I've only used acegi in a relatively small private project where I
have full control over the server. For that project, I added that
first user after creating the database trough another sql script.

That's one way. Other ways might be to use an InitializingBean that detects an empty database and adds a new administrative user. Or, use InMemoryDaoImpl in conjunction with your RDBMS-backed AuthenticationProvider, as ProviderManager can try the RDBMS provider and then fallback to your in-memory implementation to lookup the administrative user. The InMemoryDaoImpl can even source the administrative user from an external properties file, so it might be worth investigating.

Cheers
Ben


-------------------------------------------------------
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