Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 258409

Summary: net-fs/mount-cifs-3.0.30: password too long error if password>16 chars
Product: Gentoo Linux Reporter: Miguel Angel Tormo <miguel.tormo>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugzilla.samba.org/show_bug.cgi?id=5360
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Changes password length check to 128 chars

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