Encrypted Oper Passwords not working.

These are old archives. They are kept for historic purposes only.
Locked
TigerDragon
Posts: 10
Joined: Mon Mar 28, 2005 2:50 pm

Encrypted Oper Passwords not working.

Post 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?
TigerDragon
Posts: 10
Joined: Mon Mar 28, 2005 2:50 pm

Post 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.
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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.
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
TigerDragon
Posts: 10
Joined: Mon Mar 28, 2005 2:50 pm

Post 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.
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post 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, ..)
Locked