utter newbie user cannot login [message #1015169] |
Wed, 27 February 2013 16:09 |
David Malka Messages: 3 Registered: February 2013 |
Junior Member |
|
|
Hi,
I'm in a somewhat unfair situation right now, in that I'm being demanded to administer and troubleshoot a Hudson install, when strictly speaking, I'd never even heard of it 48 hours ago.
Basically, there's a CentOS 4.7 box on which Hudson is running. I'm the admin of the Linux box, but I have no idea of when Hudson was installed, who installed it - nothing.
And now there's a user who 'can no longer access the box'. By which he means that he *could* access it before. So someone's changed something. No idea who, but I have to come in and clean up the garbage.
By poking around, I was able to get to /var/lib/hudson/users and in there, there are three directories named after the users, and in each directory, there is a config.xml file.
If I edit the config.xml file, there's <passwordHash></passwordHash> with a hash between them. I delete the password, and then comes the question of how to restart Hudson. Again, no idea of how to do so, as I only have shell access to that box. So I ask the user to get one of his colleagues to go to http : / / h u d s o n s e r v e r / r e s t a r t (sorry - had to insert spaces there) which he does, and he still can't get access.
When he tries, he has a pop-up appearing, with 'a user name and password are being requested ..'
In the window behind is Status Code: 401 Exception Bad credentials.
Really not happy that I've been asked to fix this mess. No, make that: told to fix this mess. Can someone help?
|
|
|
Re: utter newbie user cannot login [message #1015218 is a reply to message #1015169] |
Wed, 27 February 2013 19:40 |
|
Depending on your version of Hudson it should be a matter of setting <useSecurity>false</useSecurity>
in either the config.xml or the security.xml
There is also the possibility that whatever server the hudson WAR has been installed into has also protected the URL - can you tell what the container is?
Duncan Mills
Eclipse Hudson team
|
|
|
|
|
Re: utter newbie user cannot login [message #1015751 is a reply to message #1015169] |
Sat, 02 March 2013 08:18 |
|
By container I meant server - Jetty / Tomcat / WebLogic etc.
Each of these will have slightly different ways of managing their own security.
Hudson itself should have a HUDSON_HOME. If not specified on the environment at startup this will be in the .hudson directory of the user that is running the server.
In there, you'll find a config.xml and assuming you are using Hudson 2.n the security setting is in there.
e.g.
<hudson>
<version>2.2.1</version>
<numExecutors>2</numExecutors>
<mode>NORMAL</mode>
<useSecurity>true</useSecurity>
If Hudson is in charge of security then just switch this to false. It's just a matter of finding the correct .hudson directory based on the process that is running or started the server.
However that being said, if your sever (e.g. Tomcat has secured the Hudson URL (usually just the root or /hudson) then you are going to have to sort that part out in the config for that server. That's nothing to do with Hudson per-say
Duncan Mills
Eclipse Hudson team
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02588 seconds