On Sun, Aug 08, 2004 at 10:48:59AM -0400, Sam Varshavchik wrote:
Alexander Farber writes:
authdaemond.plain: restarting authdaemond children
authdaemond.plain: modules="authpwd authuserdb", daemons=4
If you have the alex user defined in the system password file, the authpwd
module will try to validate the password, and reject it if it doesn't match.
Sorry, but this still doesn't work: I've changed the user "alex" to "test":
pref:sqwebmail {1028} echo -n test | userdbpw | sudo userdb test set systempw
pref:sqwebmail {1029} sudo cat /etc/userdb
test
uid=25323|systempw=YnV8nOZQ0dpIY|mail=/home/alex/Maildir|shell=/usr/local/bin/tcsh|home=/home/alex|gid=10
pref:sqwebmail {1030} sudo userdb -show test
uid=25323
systempw=YnV8nOZQ0dpIY
mail=/home/alex/Maildir
shell=/usr/local/bin/tcsh
home=/home/alex
gid=10
pref:sqwebmail {1033} sudo grep "^authmodule" authdaemonrc
authmodulelist="authuserdb"
authmodulelistorig="authcustom authcram authuserdb authpwd"
pref:sqwebmail {1034} sudo /usr/local/sqwebmail/libexec/sqwebmaild.rc stop
pref:sqwebmail {1035} sudo /usr/local/sqwebmail/libexec/sqwebmaild.rc start
pref:sqwebmail {1039} sudo tail -3 /var/log/maillog
Aug 8 17:10:56 pref authdaemond.plain: restarting authdaemond children
Aug 8 17:10:56 pref authdaemond.plain: modules="authuserdb", daemons=3
Aug 8 17:10:59 pref authdaemond.plain: modules="authuserdb", daemons=3
Then I try to login as test/test and still get the "INVALID USER":
pref:sqwebmail {1047} sudo grep "^DEBUG" sqwebmaild
DEBUG_LOGIN=1
sqwebmail {1041} tail -3 /var/log/sqweb.log
Aug 8 17:12:42 pref sqwebmaild: authdaemon: trying this module
Aug 8 17:12:42 pref sqwebmaild: authdaemon: REJECT - try next module
Aug 8 17:12:42 pref sqwebmaild: FAIL, all modules rejected
What am I doing wrong? Is the reason maybe that OpenBSD
encrypts /etc/passwd with blowfish and not with md5?
pref:sqwebmail {1042} echo -n test | encrypt
$2a$06$Yc30h5DPpZceCal1TnUwBe/bHu81pEDzUIML0/el1akOv/oIkqodC
pref:sqwebmail {1043} echo -n test | userdbpw
zUlv.sLztV.IQ
Regards
Alex