How to reset sonarqube password when running on localhost:9000 - sonarqube

I have installed and ran sonarqube locally previously on localhost:9000 and then the login page comes for that, then i had changed the password for it previously it was username:admin and password:admin
I now have changed the password and forgot it.
I need to know how to reset it.

Related

Internal Server Error with WAMP after being prompted for username and password

I have been using WAMP for awhile now to create a database, and everything has been working fine. However, I am now helping with a new project and have been sent a new folder for this project. I placed it in my www folder within WAMP, and when I opened localhost/project_name I was prompted for a username and password. I did not know (and still do not) the username and password, so I tried a guess and now I get the following error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at wampserver#wampserver.invalid to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.46 (Win64) PHP/7.3.21 Server at localhost Port 80
I have tried searching online and every solution focuses on the mod_rewrite line in the httpd.config file. However, I have already uncommented that line and WAMP continues to work for my original project. I have tried resetting WAMP and loading the new project, but I am never prompted for a username and password and only the above error appears. How can I fix this to be able to try a different username and password?

SonarQube(Version 5.4) LDAP Integration plugin

I've installed the LDAP Integration plugin in SonarQube(Version 5.4) and restarted the server.
I didn't make any changes to config file.
When I try to login, a credential prompt pops up, here I enter the same credentials I use to login to server. But even after this the sonarqube console asks me for a username and a password, this is the sonarqube username and password not the windows one's.
Do I need to make any changes for SonaQube to use windows credentials? or is it just ldap?
Please let me know if I'm missing something here.

How to reset password for Shield in Elasticsearch

Context: Setting up Shield on my local machine for a 1 node Elasticsearch
Machine: Mac OSX 10.9.5
After installing Shield, I tried adding admin users but failed to do so because initially I did not restart my ES. During this attempt, I tried a bunch of username and password combinations(My bad here).
After I was pointed out that I had to restart ES before creating any users, I did so. Now, everytime I open localhost:9200 on my browser, I am required to provide a username and password.
I have tried most of the combinations that I 'attempted' to create earlier, but non seems to be the right one.
Upon running the bin/shield/users, it shows that I have one user which is my machine name. Tried again a bunch of possible passwords that I could think of, but nothing seems to be the right one. Below is the error I'm getting
{"error":"AuthenticationException[unable to authenticate user [username]
for REST request [/_shield]]","status":401}
So, any idea on how I could reset the password or the delete the user entirely ??
Use the esusers userdel username command to delete that username and add another one of your choice.

How to check if a svn command needs authentication

Is there any possible way to check if a SVN update needs authentication or not?
Scenario : I have written a ruby GUI app which updates SVN repositories (from a static path) in a scheduled manner. This executes as a windows service. Also have tortoisesvn installed.
In ruby when I execute
svn update local_path_to_repository --username user --password password in my script then it works fine as I am passing the username & password with the update command.
But, tortoisesvn saves the password (by caching password, using standard Windows cryptography services to encrypt the password on disk) when I checkout the repository for the first time so I don't necessarily need to pass the username and password every time. Thus I just have svn update local_path_to_repository in my script.
Issue: This works fine until I change my LDAP password. Once my LDAP password is changed all the repository fails to get updated as it is requesting for the new password but there is no user interface for passing the new password.
I need to build the username and password UI only when svn updates needs those credentials but not always. How do I achieve this?
Update : Reading from the SVN book. I Understood that:
The client checks whether the user specified any credentials as command-line options (--username and/or --password). If not, or if these options fail to authenticate successfully, then
The client looks up the server's hostname, port, and realm in the runtime auth/ area, to see if the user already has the appropriate credentials cached. If not, or if the cached credentials fail to authenticate, then
Finally, the client resorts to prompting the user (unless instructed not to do so via the --non-interactive option or its client-specific equivalents).
But I did not find a way to check if authentication is required.
Can anyone please help me!
So I finally found a work around by doing:
output = `svn update "#{repo_path}" --non-interactive 2>&1`
check_authentication = output.include?("Authentication failed")
if check_authentication returns true meaning authentication has failed then I build the GUI for entering the new password and send it to the user.

Cant access remote app after domain password reset

I have a domain user that uses a remote desktop app. I recently reset his password via AD and although he can log in to his account he cant authenticate against the remote app anymore.
Ive checked the Remote app manager and cant see any settings for individual passwords there (dont think there is one?)
Hes setup as a remote desktop user and accesses the app through an .rdp file on his desktop..Any suggestions as to what this may be?
thanks,
I got the user to logout, reset their password and untick the 'change at next logon' requirement and log back in. This resolved their issue.

Resources