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.
Created attachment 181513 [details, diff] Changes password length check to 128 chars
OpenSuSE had a bug report and discussion for this too: https://bugzilla.novell.com/show_bug.cgi?id=295550#c15
Reopen, to let the developers evaluate this solution.
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.
dropped