From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,634e661ac6dfcfc1,start X-Google-Attributes: gidfee84,public X-Google-Thread: 10b612,634e661ac6dfcfc1,start X-Google-Attributes: gid10b612,public X-Google-Thread: 12eaee,634e661ac6dfcfc1,start X-Google-Attributes: gid12eaee,public X-Google-Thread: fcda7,634e661ac6dfcfc1,start X-Google-Attributes: gidfcda7,public From: chriscj@cat.com (system PRIVILEGED account) Subject: HP-UX secure password aging and NIS serving password maps to DEC broken Date: 1995/04/21 Message-ID: <3n8m5p$pb@vixen.cso.uiuc.edu>#1/1 X-Deja-AN: 101359700 organization: University of Illinois at Urbana newsgroups: comp.unix.osf.osf1,comp.unix.ultrix,comp.sys.hp.hpux,comp.sys.dec.comp.security.unix Recently on our HP-UX network which serves DNS and NIS to not only HP-UX hosts, but hosts running Ultrix 4.4, and OSF/1 3.2A the HP admin installed secure password aging. As a result of the installation NIS passwording on the DEC boxes broke. The reason became apparent because of the HP password salt which added a 4 character age salt to the password field in /etc/passwd. The password programs on the DEC boxes could not pass this information along, and all users who depeneded on NIS password maps could not login. I was wondering if anyone had any ideas on how to tackle this issue. Right now, we've hacked it so that users on the DEC side have a different password file, but can still have their home directories mounted on any machine DEC or HP. This is a nuisance, and was something that NIS was designed to clean up. The pwd.h file defines the passwd fields to the HP to be struct passwd { char *pw_name; char *pw_passwd; int pw_uid; int pw_gid; char *pw_age; char *pw_comment; char *pw_gecos; char *pw_dir; char *pw_shell; long pw_audid; int pw_audflg; }; Whereas the pwd.h file defines the passwd fields on the DEc side to be: struct passwd { /* see getpwent(3) */ char *pw_name; char *pw_passwd; uid_t pw_uid; gid_t pw_gid; int pw_quota; char *pw_comment; char *pw_gecos; char *pw_dir; char *pw_shell; }; The only difference being in the pw_age filed on the HPUX side. My only solution that has since come to mind is to acquire the source and library files to the HP-UX NIS passwd program, hack it to run on the DEC side and go from there. It's a long shot at best, and right now we need to run the HP password aging due to some administrative policy. So any suggestions to get this working would be appreciated. Chris -- MIS Intern Caterpillar LEC West Lafayette, IN