After checking the source file, I just removed the check for password length and it seems to work correctly. Tested on Windows 2003 Server with password: "This is a long admin Password!"
Created attachment 3227 [details] I used those modifications
The value should just be increased from 17 to 128. LM passwords are limited to 14 characters, NTLM passwords are limited to 128 characters. There was already a discussion at the cifs mailing list about this topic.
Has this been fixed? I am getting "password too long" for length 17 and above... I am: =================================== [root@tbshspx1 ~]# uname -r 2.6.25.14-108.fc9.i686 =================================== [root@tbshspx1 ~]# smbclient -V Version 3.2.0-17.fc9 =================================== [root@tbshspx1 ~]# mount -V mount (util-linux-ng 2.13.1) =================================== [root@tbshspx1 ~]# mount.cifs -V ** NOTHING BUT HELP *** ... BUT THE MAN PAGE RECKONS Samba 3.2 =================================== 17 Character Password... FAILS... [root@tbshspx1 ~]# mount.cifs -o username="auser",password="12345678901234567" "//server/share" "/mnt/target" password too long =================================== 16 Character Password... WORKS... [root@tbshspx1 ~]# mount.cifs -o username="auser",password="1234567890123456" "//server/share" "/mnt/target" Mounting the DFS root for domain not implemented yet No ip address specified and hostname not found It tries... though the username and password are made up for the test... =================================== Many thanks... Ajos1
Made a consistent password limit of 127 (matching Windows maximum) and checked into mount.cifs.c in Samba master *** This bug has been marked as a duplicate of bug 4300 ***