AIX

 View Only
Expand all | Collapse all

cifs password length limit

  • 1.  cifs password length limit

    Posted Fri August 21, 2020 10:51 PM
    Trying to connect to a fileshare via SMB. Using smbclient I'm able to successfully connect and access the share. 
    I'm not able to mount the share using mount or mkcifsmnt.
    The error I get is the password is longer than 14 characters. 
    Due to circumstances outside my control I'm not able to alter the password to have <= 14 characters.

    Any suggestions on how to work around this limitation?

    ------------------------------
    Dan Jones
    ------------------------------


  • 2.  RE: cifs password length limit

    Posted Mon August 24, 2020 02:58 AM
    Thank you for your query.  Can you please let us know the version of cifs you are using?  In addition, can you please provide us the details of the AIX version being used?

    -Rachel Anitha Allwin

    ------------------------------
    RACHEL ANITHA ALLWIN
    ------------------------------



  • 3.  RE: cifs password length limit

    Posted Mon August 24, 2020 10:32 AM

    Hi Rachel,

    Here is the version information:


    AIX: 7200-03-02-1846

    cifs
    bos.cifs_fs.rte 7.2.3.15
    bos.cifs_fs.smit 7.2.0.0

    sbmclient: 4.10.13

    Dan



    ------------------------------
    Dan Jones
    ------------------------------



  • 4.  RE: cifs password length limit

    Posted Tue August 25, 2020 01:10 AM

    We support password length upto 255 characters in SMB2.1 client. SMB 2.1 support for AIX 7.2 is now available! It was made available via the expansion pack.

    https://www-01.ibm.com/marketing/iwm/mrs/packageList?source=aixbp&lang=en_US



    ------------------------------
    Lakshmi Yadlapati
    ------------------------------



  • 5.  RE: cifs password length limit

    Posted Tue August 25, 2020 10:26 AM
    Hi Lakshmi,

    I'm able to connect using the smbclient, however, I wish to mount the share. I was using the mount and mkcifsmnt commands which uses cifs. It's these two commands that throw the error on password length.

    I received a message back from IBM Support with the following information:
    The password character limit in the SMBv1 AIX CIFS client (bos.cifs_fs.rte) is hard-coded at 14 and there's no way around it. This is because one of the authentication mechanisms supported by the AIX CIFS client (the legacy LanMan protocol) cannot handle passwords longer than 14 characters.  This limit is enforced even if the server supports NTLMv1 (the AIX CIFS client supports LanMan and NTLMv1 but does not support NTLMv2). Special characters are allowed in the password as long as they are part of the original 8-bit DOS character set (DOS-437, which is a form of extended ASCII and is not the same as ISO-Latin-1).

    It doesn't appear there's a workaround. 

    Thanks,
    Dan

    ------------------------------
    Dan Jones
    ------------------------------



  • 6.  RE: cifs password length limit

    Posted Fri August 28, 2020 02:17 AM
    Hi Dan,

    AIX smbclient version 1/CIFS client cannot handle passwords longer than 14 characters.
    This uses very old LANMAN protocol version 1(NTLM v1) for authentication. This limits the password length.

    New AIX smbclient version 2.1 supports password length upto 127 characters.
    AIX SMB client 2.1 uses more secure kerberos authentication mechanism.
    This  was made available via web download as well as expansion pack for AIX 7.1 and AIX 7.2.

    Please find the web download link for AIX smbclient version 2.1:
    https://www-01.ibm.com/marketing/iwm/mrs/packageList?source=aixbp&lang=en_US

    User can mount the SMB shares on AIX using "mount" command or by adding entries to /etc/filesystems.

    Please refer the following link for more information about SMB 2.1 client.
    https://www.ibm.com/support/knowledgecenter/ssw_aix_72/network/smbcfs.html

    Please let us know if you need more information on SMB client. We are happy to assist you.
    Thanks and Regards,
    Savitri

    ------------------------------
    SAVITRI HUNASHEEKATTI
    ------------------------------



  • 7.  RE: cifs password length limit

    Posted Fri August 28, 2020 10:01 AM
    Hi Savitri,

    I was able to install the newer smbclient and got around the password length issue. However, the next issue I ran into is it being only SMB v2.1. The file share I'm connecting to requires SMB 3.0 or later; this is due to the enhanced security features added to 3.0 (which was released ~8 years ago). 

    I've opened a support case with IBM and while it appears the engineering team is aware of this, there is no timeline for adding support for SMB 3.0.

    Is there any other way to mount an SMB share on AIX?

    Thanks,
    Dan

    ------------------------------
    Dan Jones
    ------------------------------



  • 8.  RE: cifs password length limit

    Posted Mon January 04, 2021 12:41 PM
    I've run into Samba integration problems at many customers, for NAS and for server to server transfers.

    Due to the limits of the AIX CIFS client, and the fact that Samba is unsupported, I recommend asking them to give you an NFS share.

    I have a few customers where AIX mounts NFS (v2+) from a NAS. The NAS then presents that storage to the Windows world as a SMB share.

    ------------------------------
    Russell Adams
    ------------------------------



  • 9.  RE: cifs password length limit

    Posted Mon January 04, 2021 11:53 PM
    Hi Dan Jones,

    AIX SMB version 3.0.2 is available as web download.

    Please refer the following link for more information about SMB3.0.2
    https://www-01.ibm.com/marketing/iwm/mrs/packageList?source=aixbp&lang=en_US

    Thanks and Regards,
    Savitri

    ------------------------------
    SAVITRI HUNASHEEKATTI
    ------------------------------



  • 10.  RE: cifs password length limit

    Posted Tue January 05, 2021 12:01 AM
    Hi Russel Adams,

    AIX SMB version 3.0.2 is available as web download. User can use the SMB version 3.0.2 client to mount the windows share on AIX LPAR. 

    Please refer the following link for more information about SMB3.0.2
    https://www-01.ibm.com/marketing/iwm/mrs/packageList?source=aixbp&lang=en_US

    Thanks and Regards,
    Savitri

    ------------------------------
    SAVITRI HUNASHEEKATTI
    ------------------------------