Any way to disable the password requirement?

From NWChem

Viewed 2991 times, With a total of 6 Posts
Jump to: navigation, search

Just Got Here
Threads 1
Posts 4
Just upgraded to ECCE 6.4 from 6.1 and don't seem to be able to leave my password blank anymore. I am the only person who uses my laptop so the extra step is kind of annoying.

Gets Around
Threads 2
Posts 82
In order to make the open source release of ECCE we were required by our IP staff at our lab to remove the encryption capability from ECCE. This is what let ECCE previously "remember" passwords between invocations. Plus, what is now prompted for when logging in is the ECCE data server password where it used to be the encryption key. ECCE has some logic requiring data server passwords to be 6 characters minimum to avoid weak passwords. But, it's only the GUI that enforces that. You can use the "ecce_htpasswd" utility in the server/ecce-admin directory to set it to anything you'd like. I tried an empty password by just hitting return when prompted for the new password from this utility. This "sort of" worked with ECCE. But, it takes hitting return twice when first logging into ECCE and then when you bring up the Organizer it will bring up the password prompt dialog one more time so you have to hit return 3 times total to be logged in. If you just set it to a single character though, you only have to enter it once for the initial login. So, that's my suggested workaround at the moment.

I may or may not have time to see if I can get it to work more smoothly with an empty password. Of course the best policy would be for it to always try an empty password and not prompt at all if it worked, but even if it just brings up the prompt dialog and you hit return once that would be reasonable in my opinion--can't get too annoyned by one extra key press per ECCE invocation. I do agree though it's a pain to have to remember and enter a 6+ character password when there is no one else sharing the ECCE installation so my workaround at least simplifies that down to 2 key presses per invocation (single character password and the return key).

Gary
Edited On 11:29:08 AM PDT - Fri, Mar 29th 2013 by Gary

Just Got Here
Threads 1
Posts 4
Quote:Gary Mar 29th 9:04 am
... But, it takes hitting return twice when first logging into ECCE and then when you bring up the Organizer it will bring up the password prompt dialog one more time so you have to hit return 3 times total to be logged in...
Gary


Hitting enter 2-3 times works for me. Thanks for your time and the full explanation.

Will

Just Got Here
Threads 1
Posts 4
Turns out this doesn't work. When I import jobs from calculations in Viewer now the only property available is the "Calculation Summary" (no vibrational frequencies, geometry trace, etc.). Changing back to a proper password restores all the options in Viewer.

Gets Around
Threads 2
Posts 82
I just created a backdoor feature to allow you to skip the data server password prompt dialog. This would only be a reasonable feature to use on a machine that isn't shared where you don't mind having the ECCE data server (Apache web server) password in a plaintext file. But, if it is just your personal workstation where you have installed ECCE and the workstation is not on the open internet for external access, it should be fine.

First, you'll need to download and install the latest ECCE 6.4 that I just pushed out today. Then to use this feature you'll edit a new file named ServerPass in your .ECCE preferences directory that is under your home directory. I would highly recommend doing a "chmod 600 ServerPass" after you create this file so it's only viewable by you--doesn't protect you of course if someone gains root access to your system, but then again everything you have on the system is exposed anyway in that instance so no reason to be especially concerned about protecting ECCE calculation data. In the ServerPass file simply put your ECCE data server password and that's it. It goes on the first and only line of the file with nothing else. Save this file and then run the latest ECCE. It should no longer prompt you and work fine with importing calculations as well based on my tests. Should the value you put in the ~/.ECCE/ServerPass file no longer be your correct data server password, or if the file is deleted, ECCE will revert to prompting again. So it tries the value in the file once if it finds one and then reverts to prompting if it doesn't work or the file doesn't exist.

Gary

Clicked A Few Times
Threads 13
Posts 35
Quote:Gary Apr 16th 11:35 am
I just created a backdoor feature to allow you to skip the data server password prompt dialog. This would only be a reasonable feature to use on a machine that isn't shared where you don't mind having the ECCE data server (Apache web server) password in a plaintext file. But, if it is just your personal workstation where you have installed ECCE and the workstation is not on the open internet for external access, it should be fine.

First, you'll need to download and install the latest ECCE 6.4 that I just pushed out today. Then to use this feature you'll edit a new file named ServerPass in your .ECCE preferences directory that is under your home directory. I would highly recommend doing a "chmod 600 ServerPass" after you create this file so it's only viewable by you--doesn't protect you of course if someone gains root access to your system, but then again everything you have on the system is exposed anyway in that instance so no reason to be especially concerned about protecting ECCE calculation data. In the ServerPass file simply put your ECCE data server password and that's it. It goes on the first and only line of the file with nothing else. Save this file and then run the latest ECCE. It should no longer prompt you and work fine with importing calculations as well based on my tests. Should the value you put in the ~/.ECCE/ServerPass file no longer be your correct data server password, or if the file is deleted, ECCE will revert to prompting again. So it tries the value in the file once if it finds one and then reverts to prompting if it doesn't work or the file doesn't exist.

Gary


Well, it took a while to try this but it works beautifully. Thank you for adding this feature.

Will

Gets Around
Threads 2
Posts 82
Good to hear. ECCE 7.0 will be released very soon and will still have this feature.

Gary


Forum >> ECCE: Extensible Computational Chemistry Environment >> General ECCE Topics



Who's here now Members 0 Guests 1 Bots/Crawler 0


AWC's: 2.5.10 MediaWiki - Stand Alone Forum Extension
Forum theme style by: AWC