henshall_protects Posted October 14, 2014 Share Posted October 14, 2014 Hello, I have been trying to set up a server to my needs. The problem is, whenever I create an admin account, it will not accept the password when I try to go in-game, so basically I cannot "admin". When I go to add an admin, it asks for a password for said admin to use. Upon doing so, it gives me a hash password (i.e. something like 3p0l3k5jj7k). I go to my database and it has added the admin status to the account, however I see there is another password in the column, different what I have inputted. I try to join the game under the new admin account usingthe password I createdthe hash passwordthe password generated in the DBBut cannot login on any of them. Always invalid username/password. I've restarted the server to check whether it's necessary before the account is validated for admin use but to no avail. So I'm stuck. Love the game. I do wish I could get this setup. Thanks in advance. Link to comment Share on other sites More sharing options...
Brybry Posted October 14, 2014 Share Posted October 14, 2014 You would always login with the password that you input.So for example, if you adduser "Foo" "Bar" then the password for the user Foo is Bar regardless of the hash it spits back at you or what it stores in the DB. The way that it is stored in the DB (just for reference) is typically as a hash with the encryptedPwd set to 'true' but it can also be plaintext with encryptedPwd 'false'. So if you wanted to manually edit the password in the DB you would set encryptedPwd to false and then set the password field as FooThe actual DB can be misleading sometimes as there can be a journal file with the changes in that (and use 'quit' to stop the server or the journal may not to be written to the DB and the user won't exist on the next server start, which is probably a bug) I don't think grantadmin "Foo" alters the password field in any way and is what technically makes a user admin. Edit: also, doing adduser on an already existing user probably won't work. you'd likely have to removeuserfromwhitelist "Foo" and then adduser "Foo" "bar" and then grantadmin "Foo" henshall_protects 1 Link to comment Share on other sites More sharing options...
henshall_protects Posted October 14, 2014 Author Share Posted October 14, 2014 Thanks very much. Turning off the password encryption did the trick. Link to comment Share on other sites More sharing options...
Connall Posted October 15, 2014 Share Posted October 15, 2014 Thanks very much. Turning off the password encryption did the trick. I really don't recommend keeping it like that. henshall_protects 1 Link to comment Share on other sites More sharing options...
Brybry Posted October 15, 2014 Share Posted October 15, 2014 It doesn't keep it like that anyway, it automatically updates it to encrypted eventually. Though I guess there are still good reasons right now to avoid doing that if you can. henshall_protects 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now