Page 1 of 1

Encrypted Oper Passwords not working.

Posted: Mon Mar 28, 2005 2:58 pm
by TigerDragon
I just installed UnrealIRCd and saw the portion in the documents about encrypting the Oper password. I tried both md5 and sha1 versions of a password, and can not oper with them. The same password in plain text works just fine, so the Oper block IS functional. I really want to get this working.

This is what I tried:
edited a file in vim and put the password in the file as the text, both with and without a newline at the end of the word. Used md5sum for md5 and openssl for sha1. Neither md5 nor sha1 with a newline nor without a newline on the end of the password works. I tried various versions of my password line as follows:

password "<md5hash>" { md5; };
password <md5hash> { md5; };
password "<md5hash" md5;
password <md5hash> md5;

and the same variations with sha1 instead, where <md5hash> is the output from the md5 command on the file I put the password in.

I suspect it's either my syntax in the oper file, or the way I'm generating the md5 / sha1 hashes, or both.

Any thoughts?

Posted: Mon Mar 28, 2005 3:12 pm
by TigerDragon
I suppose I should give more information :P

The OS is slackware linux. The Unreal version is 3.2.3. I am typing the oper name and password correctly (including case) since the unencrypted attempts work. I am remembering to rehash the server (doing it with ./unreal rehash from the command line) between changes.

Thanks.

Posted: Mon Mar 28, 2005 3:12 pm
by Dukat
You have to use the /mkpasswd (or ./unreal mkpasswd on the console) command to generate the password. All other methods (i.e. the ones you used) won't work as unreal generates salted passwords.

Posted: Mon Mar 28, 2005 3:36 pm
by TigerDragon
Thanks a lot. This worked like a charm:

./unreal mkpasswd md5 <pass>

Then modify the password line like this:

password "<md5hash>" { md5; };

Where <pass> is the password to hash, and <md5hash> is the result of the mkpasswd.

Posted: Tue Sep 13, 2005 7:44 pm
by Syzop
A new (supposedly related) problem came up in this thread 6 months later, which now has been split to a new thread: ./unreal mkpasswd problem.
Topic was split because this problem is not-so-related (shell problem, permission problem, ..)