[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] JAAS questions
|
Jan, there was no jetty-base etc dir before I created it to put that file in. I thought jetty xmls were additive, but it sounds like the base one tromped the home one. I have home set to the distribution of my last build of the current tree.
The configuring security link brings me back to my previous question about whether a jetty-base/web.xml will cover both my webapps/x.war and ROOT. That page also recommends adding the HashLoginService in ${jetty.home}/jetty.xml - but should we as admins modify jetty.home files? All the more so in my case because a build could overwrite my changes.
Thanks,
Bill
-------- Original message --------
From: Jan Bartel
Date:09/30/2015 12:10 AM (GMT-08:00)
To: JETTY user mailing list
Subject: Re: [jetty-users] JAAS questions
It looks like you've deleted all the content out of the etc/jetty.xml file that should be there and just put in a realm configuration. Leave the ${jetty.base}/etc/jetty.xml file as it is originally, don't edit it. The idea would be to create a new ${jetty.base} directory and then add files to it to configure things the way you want - jetty config files are generally additive. Say your new base is called "my-base", then edit my-base/my-realm.xml - you could copy in the contents of demo-base/etc/test-realm.xml for a start and change it as appropriate. Edit your my-base/start.ini file and put in a line with just etc/my-realm.xml on it (similarly to demo-base/start.ini has a line with etc/test-realm.xml on it). This will add your etc/my-realm.xml file to your command line when you run jetty.
Jan