environment variables and system properties are REALLY basic and pretty easy to figure out you may want to create keystores and Implement via a SSL connector.. http://tomcat.apache.org/tomcat-4.0-doc/ssl-howto.html
Here is an option which has a wide range of options from basic form to XML Authenticate to JDBC *using Database to divine a password which will hash to the same option as supplied username* to more advanced SSL options http://www.caucho.com/resin-3.0/security/authentication.xtp Good Stuff Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Wed, 13 Aug 2008 21:33:13 +0300 > From: [EMAIL PROTECTED] > To: [email protected] > Subject: Re: Reading environment variable from Tomcat > > +1 > exactly! you can even login with two different users (if you are using > windows server) none of them would be running the service unless you change > the logged on option. > > On Wed, Aug 13, 2008 at 9:27 PM, David kerber <[EMAIL PROTECTED]> wrote: > > > Sureka, Sushil wrote: > > > >> Hi, > >> > >> > >> I have run into an issue related to starting tomcat as a service. When > >> we were starting tomcat from the command line, we were able to just say > >> System.getProperty("user.name" ) to retrieve the logged in user id. But > >> now that we start tomcat using a service, the get property call returns > >> "SYSTEM". > >> > >> After doing some more research, it seems like I have two options to find > >> out the login id. > >> > >> > >> 1. Start the service using logged on option. > >> > >> 2. Use System.getEnv() > >> > >> > >> > >> It seems like the first option may not work for us as our passwords > >> expires periodically, and setting the logon/password account means that > >> we would have to have manual intervention. Additionally, when I tried > >> use my user id as logon id, it won't let me do that ( I imagine I need > >> to have system admin turn the privilege on for or something on those > >> lines) > >> > >> > >> The second option did not work either. Calling the > >> System.getEnv("USERNAME") in a program started from the command line > >> returns the logged in user name, but it returns null when tomcat was > >> started using service approach. > >> > >> I am not sure if there is a way to find out who is logged in into the > >> system when Tomcat has been started using service mechanism. Any help in > >> this matter would be great help > >> > >> > > Somewhat related to this: what do you want it to return when nobody is > > logged on? When it's a service and set to automatic start, the system will > > run without needing to be logged on (just sitting at the logon prompt)... > > > > D > > > > > > > > --------------------------------------------------------------------- > > To start a new topic, e-mail: [email protected] > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Regards, Youssef _________________________________________________________________ Get more from your digital life. Find out how. http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home2_082008
