From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ff4081c70dbc4e56 X-Google-Attributes: gidfee84,public From: "Graham Jones" Subject: Re: protected password database Date: 1996/11/17 Message-ID: <01bbd484$8ff880e0$dd1fdec2@liteyear>#1/1 X-Deja-AN: 197024888 x-nntp-posting-host: liteyear.demon.co.uk references: <566e8e$gee@news.cuny.edu> newsgroups: comp.unix.osf.osf1 Richard Buchman wrote in article <566e8e$gee@news.cuny.edu>... > i seem to be having a problem parsing the users protected database using > getprpwent on an alpha server 2100 running digital unix 3.2b >.... >when i try to access it using prot->fd_uid i get a 'fd_uid not a member of >struct' error. >.... Take a look at the man page again: man getprpwent gives: ...... struct pr_passwd *getprpwent(void); .... struct pr_field { /* Identity: */ char fd_name[AUTH_MAX_UNAME_SIZE]; /* uses 8 character \ maximum (and \0) from utmp */ uid_t fd_uid; /* uid associated with name above */ char fd_encrypt[AUTH_MAX_CIPHERTEXT_LENGTH]; /* Encrypted \ ........ struct pr_passwd { struct pr_field ufld; /* user specific fields */ struct pr_flag uflg; /* user specific flags */ struct pr_field sfld; /* system wide fields */ struct pr_flag sflg; /* system wide flags */ }; .... So, getprpwent returns struct pr_passwd *, struct pr_passwd contains struct pr_field, struct pr_field contains the fd_uid you're after thus 'fd_uid is definitely not a member of struct' instead of prot->fd_uid you want to say prot->ufld.fd_uid Graham graham@liteyear.demon.co.uk