Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258409 - net-fs/mount-cifs-3.0.30: password too long error if password>16 chars
Summary: net-fs/mount-cifs-3.0.30: password too long error if password>16 chars
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL: https://bugzilla.samba.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-10 06:55 UTC by Miguel Angel Tormo
Modified: 2012-09-16 12:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Changes password length check to 128 chars (passtoolong-3.0.30.patch,594 bytes, patch)
2009-02-10 06:56 UTC, Miguel Angel Tormo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Angel Tormo 2009-02-10 06:55:21 UTC
mount.cifs fails if the password is set on the command line via the '-o password=' option and its length is bigger than 16.
Previous versions of mount.cifs may be affected as well (I can confirm this happens at least with 3.0.30 and 3.0.28).


Reproducible: Always

Steps to Reproduce:
mount.cifs //server/resource /mountpoint -o username=user,password=somethinglongerthan16,workgroup=mydomain
Actual Results:  
password too long

Expected Results:  
It should have worked. LM passwords are limited to 14 characters, NTLM passwords are limited to 128 characters, so this 16 characters limitation has no sense.
Moreover, if password is specified interactively or via credentials file it does work.

This bug has been already reported upstream: https://bugzilla.samba.org/show_bug.cgi?id=5360

Reported almost a year ago, no activity since last august. But there is another bug reported in 2006: https://bugzilla.samba.org/show_bug.cgi?id=4300 that happens to be the same problem.

I hope they will fix the issue upstream. In the meantime, as this can be quite annoying, I propose to include the attached patch in the Gentoo ebuild.
Comment 1 Miguel Angel Tormo 2009-02-10 06:56:29 UTC
Created attachment 181513 [details, diff]
Changes password length check to 128 chars
Comment 2 Miguel Angel Tormo 2009-02-10 07:08:53 UTC
OpenSuSE had a bug report and discussion for this too:
https://bugzilla.novell.com/show_bug.cgi?id=295550#c15
Comment 3 Miguel Angel Tormo 2009-02-17 17:41:38 UTC
Reopen, to let the developers evaluate this solution.
Comment 4 Miguel Angel Tormo 2010-11-23 15:46:32 UTC
Resolved upstream as of 2009-05-14 (see https://bugzilla.samba.org/show_bug.cgi?id=4300).

However, I cannot find in portage a version newer than 3.0.30.
Comment 5 Pacho Ramos gentoo-dev 2012-09-16 12:28:56 UTC
dropped