Mercurial keyring and password change on Google Code - mercurial

I'm using Mercurial (latest bundled with THG) and have a repo on Google Code. I enabled the mercurial_keyring extension and this worked perfectly until I changed the password on my Google account. Now Google Code returns a HTTP 403 error due to the wrong password stored in the keychain, which causes HG to abort the push without asking for the password again.
Is there any way to force the password change on the keyring, or even just to reset it, so that I can re-enter the new password? A tool to manage the stored entries for the python Win32CryptoKeyring would also be fine, since I could use that to delete my password.

I found this question accidentally. Mercurial_keyring tries to detect such cases and re-ask for the password, but for one reason or another this did not work.
I created issue https://bitbucket.org/Mekk/mercurial_keyring/issue/45/some-way-to-clear-password-and-maybe to track the problem, anybody wishing to add some information or to follow the work is welcome to track it.
(mercurial_keyring author)

Related

Google App script: Clasp login has stopped working

I've been using CLASP for the development of Google App Script. Clasp login command is no longer working after Clasp logout.
Steps
Execute Clasp login in VS Code Terminal. It redirects to the Google OAuth page.
Entered credentials and accepted the required permissions for Clasp in the browser
After successful authentication, it redirects to some localhost:port and then it gets stuck with this error
I've also tried using clasp login --no-localhost, but it gave different error:
The problem is that your browser is forcing https:// on your localhost. The way clasp login works is that it creates a temporary local server to receive the authorization code from Google in the OAuth flow. This server won't have an SSL certificate so forcing an https connection will return that error. Your potential solutions are:
Try to just change the start of the URL from https:// to http://, though if it's not working already it probably means that something is forcing it.
Create your own localhost cert. Though this is probably overkill, especially if you want it only to install Clasp.
Temporarily disable any browser extensions or settings that force SSL. Or try a different browser.
You seem to be on Edge, you can go to edge://net-internals/#hsts (or chrome://net-internals/#hsts on Chrome) then add localhost under "Delete domain security policies" and click "Delete".
If this is a corporate device check for any antivirus or policies that would force SSL everywhere and see if you can add localhost as an exception.
If you're completely restricted, you can authorize on another computer that doesn't force SSL on you and just copy the .clasprc.json file from the other %USERPROFILE% folder to your current one. The credentials will be associated with the Google account that you used to sign in.
As for why the -no--localhost flag doesn't work, this is because the Out-Of-Band flow has been deprecated. You can see this in the full description of the error:
This means that the "enter a code" flow is no longer supported and Google has blocked it. It's up to the devs to update the Clasp app to remove the flow or to implement a workaround. You can try to report it in their Github page. As far as I can tell there's not much that can be done about this setting and you most likely will need to go with the localhost method.

IBM Websphere security issue - Password reset

I have an issue with IBM Websphere,
We forgot our password and I followed the topic I found here in the forum to reset admin password.
How to reset password for admin account in IBM websphere 6.1?
Issue I have is when I disable security, I get into the websphere console but have NO option to get into security tab. No tab available except "tasks", so I cannot enable security nor reset the admin user there.
Also, after this, I cannot put security on again. I keep getting the login page with no password.
I tried the script with securityon instead of securityoff (sounds logical to me) but now it requests user password to do so...
If I manually edit the security.xml to put security enabled="true", I get a startup error...
UPDATE 1
There was an issue loading applications, so that's the reason why I could not get the menu on the left. However, I could not find any solution to it, and decided to restore the system.
Now I can get the menu list, but face another error when I try to reset the admin user with the wizard, at the last steps here is the message error I get :
SECJ7305E: Found other virtual member manager repository configurations. Only the built-in virtual member manager file-based repository is supported through the wizard
This actually blocks me, and I cannot go further.
I tried to run the wizard without activating security as well, but not working either.
I do not want to mess with user repositories as some repo's are configured... I just would like to reset the admin password :(
Anybody faced this issue? Any help/idea is greatly appreciated.
Thank you

VM Instance Password Expired

So, I ignored and then forgot about the notice that my password would expire in 2 days. Now those 2 days have passed, and when I attempt to remote to the instance, I get the error that my credentials did not work. Any way to fix this, without needing to delete and recreate the instance? Lesson learned - next time I'll make it a priority to change the password reset protocol...
P.S. On another forum someone suggested using localhost\ in front of the account name, but that didn't work.
Open your RDP file in Notepad, add the following line and save it.
enablecredsspsupport:i:0
Connect to your server and change the expired password.
Kam - thank you for your suggestion! It turned out that I didn't need it afterall though.
Apparently part of the problem is that I'm using the Chrome RDP extension to connect. So I just created a Windows RDP connection using the link in the Google Developers Console, so I could edit it and add that line. I decided to test it before modifying, and that brought me to a window with the option to change my password, which the Chrome RDP extension did not do.

PHPStorm doesn't pull or push

I've recently switched from Netbeans to PHPStorm and I have weird issue with PHPStorm. Sometimes (really often) when I pull or push it shows that it is pulling/pushing but it never ends. I must restart PHPStorm, do it again and then it work.
I synchronize with bitbucket if that helps and I use mercurial.
PHPStorm doesn't show any errors.
Does anyone know what can cause this?
Have a look at SSH, a lot of people prefer SSH over username/password. With SSH you need to enter password for private key once on first pull or push. Here is manual.

Retrieve Chrome (lastpass) extension's localy stored password

I have forgotten my lastpass master password (my bad, the hint is not hinty enough) but chrome does know it as it logs me back to lastpass automatically on restarts and stuff...
So it must be stored on my machine by chrome.
How do i retrieve the password stored by chrome ?
I've seen a bunch of chrome password recovery but i'm not sure if that's for extension as well as websites, and they all seem pretty dodgy. i don't was to worm my computer by trying to retrieve a secure key :d
Thanks