Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

8 chr password only ? truncated ? not md5 ?

Reply to Post Add a New Topic
UserPost

5:27 am
May 12, 2010


daniel.bucur

Bucharest, Romania

Member

posts 10

I have a CentOS 5.4 mail server box (with postfix, dovecot and squirrelmail).

My problem:

- I create a user (example:) user

- I set the password (example:) password1234

…when i log-in to CentOS i must supply pass password1234 but when i log in to my mailbox (useing squirrelmail or MS Outlook) i only need to supply the first 8 characters of my password (example: "password" instead of "password1234")

I`ve read that is a password encription thing (not md5?!) but where (postfix? squirrelmail? dovecot?) and how i can correct this ???

Thank you !

9:51 am
May 12, 2010


consultant

Admin

posts 341

Hi daniel,

 

I don't think that should happen since password1234 and password generates two unique hashes. The only scenario I can think of where this can occur is when you are using MySQL, and the password is stored in plaintext, and the field is defined as having a maximum length of 8.

5:55 am
May 13, 2010


daniel.bucur

Bucharest, Romania

Member

posts 10

Post edited 1:18 pm – May 13, 2010 by daniel.bucur


ty,

but… it is any way to verify what you susspect ?

(sry, but i`m linux newbie, i just follow your tutorials and, bang, i have a linux mailbox – with just verry little linux background)

my steps:

9:21 am
May 13, 2010


consultant

Admin

posts 341

Your password hash is probably DESCRYPT which has a maximum length of 8. The default for Linux installations is MD5. Run the Authentication application found in System > Administration. The password hashing algorithm can be found in the Options tab.

11:55 am
May 14, 2010


daniel.bucur

Bucharest, Romania

Member

posts 10

Post edited 5:44 pm – May 14, 2010 by daniel.bucur


ty again, but:

i double-checked that setting and it`s for sure MD5

anyway, like i said: when logging on to CentOS i must supply full password (example: password1234) the problem appears when i login via mail client (squirrelmail or Outllok)…

I think that CentOS and mail client resolve authentication in different ways ?!?! Maybe useing different files ???

…or maybe … a misconfiguration in squirrelmail Change Password Plugin ???

7:41 pm
May 14, 2010


consultant

Admin

posts 341

Post edited 11:43 pm – May 14, 2010 by consultant


Please try the test in Dovecot POP3/IMAP Server Setup Howto and check if it accepts the eight character password.

 

3:02 am
May 17, 2010


daniel.bucur

Bucharest, Romania

Member

posts 10

ty,

i did the test and dovecot allows me the 8 chr password (version) login (via telnet).

8:04 am
May 17, 2010


consultant

Admin

posts 341

Please check your /etc/dovecot.conf and search every passdb section. Make sure only the passdb pam section is uncommented.

10:51 am
May 17, 2010


daniel.bucur

Bucharest, Romania

Member

posts 10

Post edited 3:32 pm – May 17, 2010 by daniel.bucur


hi,

passdb pam line is (only) uncommented (with passdb) but there are no arguments uncommented betwen { … }

i have another arg uncomented (under auth default { … }) : userdb passwd {} but i don`t think this is the problem…

NOTE:  When i tried to comment it …i can`t log on to localhost anymore via telnet…

…anyway… file: /etc/pam.d/dovecot contains:

#%PAM-1.0

auth          required         pam_nologin.so

auth          include           system-auth

account    include           system-auth

sesion       include           system-auth

ty consultant ! :)

hope this info helps!

           PS:    excelent site

                    and…off topic… : can you recomand me a firewall distro pls! :) ty again!

12:03 pm
May 17, 2010


daniel.bucur

Bucharest, Romania

Member

posts 10

Post edited 5:36 am – May 18, 2010 by daniel.bucur


Hey, consultant….

I think i guided you on wrong path….

…sorry!!!

i can logon to CentOS useing password (instead of password1234) ….

the misunderstanding (my misunderstanding) appeared becouse I setup root an user password the same (example: password1234) the only difference was that i setup password for user "user" via squirrelmail (Change Password plugin).

 

Tests i`ve did:

  • reset user "user" password to "password1234" via CentOS  (System-> Administration -> Users and Groups)
  • i`ve tried to login to CentOS via user "user" and password "password" : didn`t work
  • i`ve tried to login to CentOS via user "user" and password "password1234" : it worked
  • i`ve tried to login to mail server via web interface (squirrelmail) useing "user" and "password" : didn`t work
  • i`ve tried to login to mail server via web interface (squirrelmail) useing "user" and "password1234" : it worked

So far i think it`s clear that it was Change Password plugin (for squirrelmail) fault 

I`ve continued:

  • change user`s "user" password to "password1111" via web interface (squirrelmail and Change Password PlugIn)
  • logout (from web interface)
  • login useing (via web interface) "password": it worked

So far i think it`s verry clear that it was Change Password plugin (for squirrelmail) fault 

I`ve continued (to check how was CentSO affected):

  • login to CentOS useing "user" and "password" : it worked
  • login to CentOS useing "user" and "password1111" : to my surprize: it worked

Now it`s a blur again…

not so verry clear…

Q:  If CentOS is useing MD5 it should work in just one case: either "password" or "password1111" not both…Isn`t that so ? And what is wrong with Change Password plugin ?…

i think…. CentOS is useing 2 files to auth users…its his fault not dovecots…

 

PS:

  • i`ve tried lo login to CentOS useing a password in between (not 8 chr, not full pass) like "password11" : it worked
  • So… i thing that CentOS is showing MD5 but it`s useing DESCRYPT…

WHAT DO YOU THINK ?

9:19 pm
May 17, 2010


consultant

Admin

posts 341

Post edited 1:23 am – May 18, 2010 by consultant


See SquirrelMail Change Password Howto article. I had an old SquirrelMail change password article but it had so many problems that I deleted it. That could be another one of its problem because the plugin uses an executable that writes the password hash directly into the password file. Thus it causes loads of problems like triggering an SELinux error, not updating the password modification date, etc. The new article above uses poppassd instead which solves all of the problems mentioned.

9:22 pm
May 17, 2010


consultant

Admin

posts 341

For the firewall distro, I recommend Vyatta.

2:56 am
May 18, 2010


daniel.bucur

Bucharest, Romania

Member

posts 10

 

oh…

so frustating…

i had poppassd service enabled all the time … SELinux: diasabled…

you mention that you changed your article with the one that requires/uses poppassd… thats what i read/used from the begining (the new one)…

New tests:

  • (test poppassd via terminal:) changed password via terminal (telnet localhost 106) from "password1234" to "parola1234" : ok
  • login via web inerface useing "parola12" (8 chr): worked

so i think is a poppassd misscongfiguration ?!

ty…

PS: Still digging…

8:03 am
May 18, 2010


consultant

Admin

posts 341

You're right, it is a poppassd misconfiguration.

 

In /etc/pam.d/poppassd

auth      required    pam_unix.so
account   required    pam_unix.so
password  requisite   pam_cracklib.so
password  sufficient  pam_unix.so md5 shadow

I've already updated the Poppassd Setup Howto article to fix the issue.

5:31 am
May 19, 2010


daniel.bucur

Bucharest, Romania

Member

posts 10

[SOLVET]

Brilliant !!! ty !!!

I`ve tested the new configuration al the ways i can think on. All are fine !!!

 

Still… if i may…

How you fix it ??? Between my post and your reply  i google it  alot and i din`t find relevant help/ documentation about poppassd daemon/service…

 

PS:

Great site you have here! love it! maybe in the near future i will folow your example and i will develop a site with the subjects that i have knoledge about!

Occasionally, when a read linux documentation, i invariably encounter paragraphs where are enumerate linux advantages and one of the main advantages is: continuous and fast developement by support of community.

I didn`d truly undestanded till now! ty again!

Good luck with your site!!

5:35 am
May 19, 2010


daniel.bucur

Bucharest, Romania

Member

posts 10

 

PS2: promise to improve my english skills!

8:15 am
May 19, 2010


consultant

Admin

posts 341

Great :-)

 

When you mentioned that the problem occurs after changing the password via poppassd, I immediately knew it is a poppassd configuration problem. Poppassd uses the pluggable authentication module (PAM) so I just looked at the file /etc/pam.d/system-auth which is being used by the login module and bingo, it has md5 shadow in it.

Reply to Post

Reply to Topic:
8 chr password only ? truncated ? not md5 ?

Guest Name (Required):

Guest Email (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
2 + 5
   


About the Linux Mail Server Setup and Howto Guide Forum

Forum Timezone: America/New_York

Most Users Ever Online: 60

Currently Online:
13 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 5
Topics: 326
Posts: 1012

Membership:

There are 928 Members
There have been 84 Guests

There is 1 Admin

Top Posters:

shanmugasundaram s – 45
Kendermin – 15
Ginger – 14
bighorn – 14
iron_michael86 – 12
Raminda – 11

Recent New Members: RaHuL, bikesh, pappy_says, geos, boudi7, dara.hr

Administrators: consultant (341 Posts)