Operating System - HP-UX
1748162 Members
3639 Online
108758 Solutions
New Discussion юеВ

Re: Qpopper and shadow password : password incorrect

 
SOLVED
Go to solution
Joel Girot
Trusted Contributor

Qpopper and shadow password : password incorrect

Hi
on hpux B11.11 with /etc/shadow password (ShadowPW.SHADOW B11.11.02 from hp software depot)qpopper 4.0.5 or 4.0.8 failed with message : -ERR [AUTH] Password supplied for "joel" is incorrect.

Compile with ./configure --enable-specialauth dont correct this.

Qpopper was ok before shadow password.

Has anybody been successfull with qpopper and shadow password on HP-UX?

Thanks
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Qpopper and shadow password : password incorrect

I have succeeeded with this configuration.

Sometimes the conversion to shadow password locks the user id. Actually the user was probably locked prior to the conversion.

I recommend the user password be reset and you check the user with sam be checked for how many bad logins are allowed prior to lock.


$1 is in this case the username.

/usr/lbin/modprpw -l -k $1


SEP
http://www.isnamerica.com/contactsep.shtml
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Joel Girot
Trusted Contributor

Re: Qpopper and shadow password : password incorrect

Hello Steven

Users accounts are not locked.
Anyway my system is not trusted. I only install ShadowPassword product downloaded from hp Software depot. (usr/lbin/modprpw reply me System is not trusted.) I just want hide crypted password originaly in /etc/passwd to any users.

thanks
Steven E. Protter
Exalted Contributor

Re: Qpopper and shadow password : password incorrect

Verify the shadow file with a manual edit.

Sometimes in these circumstances it helps to reset the password on the user or to use sam to reactivate.

I've run qpopper trusted and shadow and it is quite possible to run this combination.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Joel Girot
Trusted Contributor

Re: Qpopper and shadow password : password incorrect

the shawdow file seem ok
the user (its me) is active
I reset the password by the command passwd
and test qpopper like that :
# telnet d pop3
Trying...
Connected to d.gvr.hp.
Escape character is '^]'.
+OK Qpopper (version 4.0.8) at D.gvr.hp starting.
user joel
+OK Password required for joel.
pass
-ERR [AUTH] Password supplied for "joel" is incorrect.
+OK Pop server at D.gvr.hp signing off.
Connection closed by foreign host.
/root#
the password is correct, but dont work...
Patrick Wallek
Honored Contributor
Solution

Re: Qpopper and shadow password : password incorrect

I think there is a bit more work to be done.

First, compile qpopper and add the '--with-pam=pop3' option to your configure.

# ./configure --enable-specialauth --with-pam=pop3

Now once that is done, modify the /etc/pam.conf file and add the line 'pop3 auth required /usr/lib/security/libpam_unix.1' to all 4 sections of the pam.conf file (authentication management, account management, session management, and password management)

When you are done your /etc/pam.conf should look similar to this:

# cat /etc/pam.conf
#
# PAM configuration
#
# Authentication management
#
login auth required /usr/lib/security/libpam_unix.1
su auth required /usr/lib/security/libpam_unix.1
ftp auth required /usr/lib/security/libpam_unix.1
pop3 auth required /usr/lib/security/libpam_unix.1
OTHER auth required /usr/lib/security/libpam_unix.1
#
# Account management
#
login account required /usr/lib/security/libpam_unix.1
su account required /usr/lib/security/libpam_unix.1
ftp account required /usr/lib/security/libpam_unix.1
pop3 auth required /usr/lib/security/libpam_unix.1
#
OTHER account required /usr/lib/security/libpam_unix.1
# Session management
#
login session required /usr/lib/security/libpam_unix.1
pop3 auth required /usr/lib/security/libpam_unix.1
OTHER session required /usr/lib/security/libpam_unix.1
#
# Password management
#
login password required /usr/lib/security/libpam_unix.1
passwd password required /usr/lib/security/libpam_unix.1
pop3 auth required /usr/lib/security/libpam_unix.1
OTHER password required /usr/lib/security/libpam_unix.1



Now try logging in again. It should work.
Joel Girot
Trusted Contributor

Re: Qpopper and shadow password : password incorrect

Thanks Patrick, it is the solution !
Joel Girot
Trusted Contributor

Re: Qpopper and shadow password : password incorrect

thanks for your quick answers