From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2af9a8539d09350e X-Google-Attributes: gidfee84,public From: cstrmr@staffs.ac.uk (Richard Rogers) Subject: Re: WU FTPD and OSF/1 3.2 (w/ security enhancement) Date: 1995/06/30 Message-ID: <3t0at8$tte@bs33d.staffs.ac.uk>#1/1 X-Deja-AN: 105263116 distribution: world references: <3sv0q5$mon@www.uno.edu> organization: Staffordshire University reply-to: cstrmr@staffs.ac.uk newsgroups: comp.unix.osf.osf1 In article <3sv0q5$mon@www.uno.edu>, emurphy@www.uno.edu (Edward Murphy) writes: >What is the cause of the 8 character limit on passwords? > >Recap: I've just installed wu-ftpd 2.4 on our DEC Alpha OSF/1 3.2 >system with C2 security enhancements. The max password length is 10. >Users who have passwords of length greater than 8 cannot use the WU >ftpd programs, they get "Login incorrect". [other detail deleted] The problem lies with the password encryption call, crypt(). It only hashes the first eight characters of the supplied password, producing the familiar 13-character string that is seen in /etc/passwd. For C2 security, when longer passwords are permitted (as in your case), the encryption routine must be repeatedly called with successive segments of the password to produce a longer encrypted string. DON'T PANIC: all of this is achieved using the (undocumented) call bigcrypt(). Use it in exactly the same way as crypt() is used and your "long" passwords will be checked correctly. Richard -- =========================================================================== Richard M Rogers E-mail: cstrmr@staffs.ac.uk Computing Services OR R.M.Rogers@staffs.ac.uk Staffordshire University Tel: 01785 (+44 1785) 353396