From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,18de775429dd2d94 X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,18de775429dd2d94 X-Google-Attributes: gidfee84,public From: Steve VanDevender Subject: Re: crypt --> bigcrypt conversion Date: 1997/05/09 Message-ID: #1/1 X-Deja-AN: 240691701 References: <5kq140$7be$1@charlie.lif.icnet.uk> Organization: University of Oregon, Eugene Newsgroups: comp.unix.osf.osf1,comp.unix.programmer coop@europa.lif.icnet.uk (Richard Coop) writes: We are about to upgrade to Enhanced security on our AXP OSF3.0 machine but have hit upon a technical issue. I wonder if anyone else has experienced this? OSF3.0 without enhanced security uses the 'crypt' function call on the first 8 characters of a password only to produce a 13 character encrypted password. Passwords longer than 8 characters have these extra characters ignored before being encryped. Moving to enhanced security poses no problem for existing passwords upto 8 characters. Enhanced security uses 'bigcrypt' which can hadle passwords longer than 8 characters, yielding an encrypted password of 24 or so chars. The problem comes with passwords that were longer than 8 characters prior to moving to Enhanced Security. You are comparing a fully encryped password with an encrypted truncated password and they no not tally. What we would like to do is perform authentication using the old 'crypt' algothithm the first time a user logs in after the upgrade but subsequent authorisations and password changes be made using the longer 'bigcrypt' algorithm. This would allow users with long password in without forcing them to type only the first 8 and allows us to broadcast a motd informing these users to reset their password upon login. The man page for prpwd talks about u_oldpasswd etc but this appears to have no affect. Under Digital UNIX 4.0, there are "u_oldcrypt" and "u_newcrypt" fields. u_oldcrypt selects the encryption method to use for the user's currently-stored password; u_newcrypt specifies the algorithm to be used to encrypt the new password when the user's password is next changed. If you find that these also exist in 3.0/3.2, I believe you should be able to get what you want by changing the default profile (or, at worst, all the individual user profiles) to specify plain crypt() for the oldcrypt method, bigcrypt() for the newcrypt method, and to expire all currently-existing passwords so that users will have to change them on their next login after that. -- Steve VanDevender "I ride the big iron" stevev@efn.org stevev@hexadecimal.uoregon.edu http://jcomm.uoregon.edu/~stevev "bash awk grep perl sed df du, du-du du-du, vi troff su fsck rm * halt LART LART LART!" -- the Swedish BOFH