Jenkins: password reset? - jenkins

Plenty of guides to be found but its not working for me, the most basic solution is to set useSecurity to false and restart jenkins and thats it.
Well ok, then what? I can't change my password:
/user/[name]/configure says:
Credentials
"Credentials are only available to the user they belong to"
The key provided for logging in as admin also doesnt work anymore, since i created the first user.

Related

Can't connect to Neo4j

I tried the default id and password neo4j to log in but failed,
I also delete the auth file as the instructions online told, but nothing changed,
is there anyway to reset the password WITHOUT LOG IN ?
You can reset the DBMS password in the Neo4j browser. By just selecting the DBMS
You will get an option to reset your password on the right-side panel.
If this doesn't work, and you just want to work locally, you can disable the authentication itself, by going to the DBMS settings, by clicking on ..., and Settings. Then set the property dbms.security.auth_enabled to false.
Note: Disabling authentication is not recommended for any sort of workplace development environment.

authentication failures with external users

I am trying to have SCM Manager accept users from my organization so they can log in using their Windows username and password. I have installed the LDAP plugin, but it still doesn't recognize my own windows username and password from my organization
I don't really understand - I think I shouldn't even need LDAP and some kind of basic authentication should be able to figure out my username password on windows active directory etc type of thing...
Do I need the SSL to do this? It says various things about a binding problem.
I am using the custom LDAP profile. I put wsproxy in the proxy server area and enabled. I have no idea what that means but it was the same configuration that I saw in a previous installation of SCM-server that worked with organizational credentials on windows server.
This problem occurred after upgrading from version 1.6 to 2.9.
Though I was not the person who set it up on v1.6.
UPDATE: what's needed is not LDAP plugin, but rather understanding how to configure active directory for SCM - previously, in 1.X versions active directory plugin worked under the hood - now it needs to be configured and I have no idea how -- also the active directory plugin for 1.X is no longer available - if you could provide me with that code I might be able to see how it connects to AD and then go from there on version 2.X - any chance you can get me access to the code of https://bitbucket.org/sdorra/scm-manager/wiki/active-directory-plugin??
We have an issue for the LDAP plugin saying that the migration of the ldap password may fail (though I cannot reproduce this), so maybe this happened with your migration, too. Proxy settings should not play any part in this game, because as far as I know company ldaps aren't behind a proxy.
The configuration for 2.x should be the same as for 1.60. We haven't changed anything here. So first I would try to reenter the "Connection Password". If this still fails, please use the "Test connection" feature. Enter a valid authentication here. This tells you, on what level the connection fails and may show you an exception with further information.
Feel free to post your results here for further investigation.

Neo4j Desktop 1.3.8 : "Failed - not a valid password" after using 'Reset database password'

From the desktop application I went to database>manage>administration.
There I filled in a new password (I tried several) and pressed 'apply'. After restarting the database I get the following prompt: Local Graph password has been changed. Please enter Graph password:. When I fill in the new password (I also tried the default, neo4j) I get this error... Failed - not a valid password.
I can still run the database with dbms.security.auth_enabled=false, but I just want to figure out how to get this fixed. I tried all sorts of solutions. If someone could help me set this up correctly that'd be very much appreciated.
edit note: Everything worked the previous days. After the last pc restart it suddenly didn't anymore.
I asked this question on the neo4j forum (here) and got a response from wookiefrits with the following instructions:
Disable authentication in your settings by setting:
dbms.security.auth_enabled=false
Then all you have to do is to go to your Neo4j Browser and paste this into the shell:
ALTER USER neo4j SET PASSWORD 'mynewpassword';
set dbms.security.auth_enabled back to true
I found a fix for this. I just used the change password via cypher-shell and everything synced back up again.

Gitlab password reset in rails

I'm trying to login to the web panel of my forgotten gitlab install but somehow the password is not working. I have tried to reset it in the console by the following
sudo -u git -H bundle exec rails console production
user = User.where(email: 'myemail#mail.com').first
user.password = 'password'
user.save
and i can confirm that a new encrypted password was set in the user table of the database, but still i cannot log in.
Using gitlab 6 on ubuntu.
What else could i do to reset the password or find out why i cant login.
You need to save the password confirmation too:
user = User.find_by(email: 'admin#local.host')
user.password = 'secret_pass'
user.password_confirmation = 'secret_pass'
user.save!
(Exclamation point is important)
As Philipp Antar pointed out, you have to use user.save! to persist the record in the database.
Edit: Environment: Gitlab Omnibus installed on Debian Jessie (SmartOS LX image)
I would have preferred to say this in a comment but I don't have enough reputation (after many years of being a ghost on the internet I'm starting to talk)...
I found this thread while trying to deal with this issue (I had installed Gitlab, played with it for a few days, and then moved on to installing other things and forgotten the credentials for my user account)(I had also forgotten that there was a 'root' account). My initial searching led me to basically these same instructions (Gitlab official docs for resetting root password: https://docs.gitlab.com/ee/security/reset_root_password.html ).
Using them I was immediately able to reset the password for the root account and login but when I performed the same steps to access my (non-root) user account it didn't work. I performed the steps three times (it's hard to miss an exclamation point when copy/pasting and I could scroll up in the console and SEE that I did it correctly, but I always want to be sure).
In the end I reset the gitlab machine and the new password for my user account then worked. For anyone who has tried this and had it not work, I suggest a reset.

Grails/Spring Security: Unable to login with a newly created user

I have just started using grails and installed the spring-security and spring-security-ui plugins. I am following the tutorial given here. The application starts with one bootstrapped user me with ROLE_ADMIN permission.
With the UI override scripts I was able to get the register functionality up and running and it works all right. Now, I have installed the User Management scripts (grails s2ui-override user) to try adding, editing, removing users.
A new user gets created fine, I have checked this against the HSQLDB instance. However, if I now log-out from the application and try to login with the newly created user the application tells me that it is unable to find a user with the provided username and password.
I haven't modified the default logout handling so am using /j_spring_security_logout which as the documentation says invalidates the session.
Is this a know issue? If so how can I get around this or if not how can I debug this issue?
EDIT:
This issue is also persisting without the UI addition. Register as a new user. Once you finish e-mail verification you are auto-logged in to the site. Now logout and try to login in back again. It gives the same error.
FINAL EDIT:
The UI plugin comes with the RegisterController that still encodes the password. However, the newer domain classes that come with the core are also doing this and the recommended practice is that controllers shouldn't. I commented out a line that does the encoding and the login/logout works now at least for the basic scenario.
There is a warning on that tutorial
Earlier versions of the plugin didn't include password encryption logic in the domain class, but it makes the code a lot cleaner.
I am guessing security-ui plugin does not know about that change, and comparing unencrypted password with the encrypted one on the database.
l managed to fix my problem. The problem was double encryption. Under the spring security ui in the user controller on line 41 the password was being encrypted and then again by the domain class so on login it was comparing a double encrypted password and a single encrypted password. To solve the problem l just commented out line 41 in the user controller which was encrypting the password
EDIT: If you have trouble figuring out where one would go to edit the controller, you can find the source code of the downloaded plugins in your user home's
/.grails/version/projects/projectname/plugins
directory for editing (at least on Mac / Linux, dunno where you'd find it in windows).

Resources