Home
last modified time | relevance | path

Searched refs:spwd (Results 1 – 25 of 35) sorted by relevance

12

/titanic_41/usr/src/lib/nsswitch/nis/common/
H A Dgetspent.c56 struct spwd *spwd = (struct spwd *)ent; local
77 if (spwd) {
81 spwd->sp_namp = buffer;
82 spwd->sp_pwdp = buffer + (p + 1 - instr);
83 spwd->sp_lstchg = -1;
84 spwd->sp_min = -1;
85 spwd->sp_max = -1;
86 spwd->sp_warn = -1;
87 spwd->sp_inact = -1;
88 spwd->sp_expire = -1;
[all …]
/titanic_41/usr/src/head/
H A Dshadow.h61 struct spwd { struct
82 extern struct spwd *getspnam_r(const char *, struct spwd *, char *, int); argument
83 extern struct spwd *getspent_r(struct spwd *, char *, int);
84 extern struct spwd *fgetspent_r(FILE *, struct spwd *, char *, int);
88 extern struct spwd *getspent(void); /* MT-unsafe */
89 extern struct spwd *fgetspent(FILE *); /* MT-unsafe */
90 extern struct spwd *getspnam(const char *); /* MT-unsafe */
92 extern int putspent(const struct spwd *, FILE *);
/titanic_41/usr/src/lib/passwdutil/
H A Dnss_attr.c68 struct spwd *spwd; member
118 if (pwbuf->spwd) in nss_getpwnam()
119 free(pwbuf->spwd); in nss_getpwnam()
135 if (pwbuf->spwd == NULL) in nss_getpwnam()
136 pwbuf->spwd = (struct spwd *) in nss_getpwnam()
137 malloc(sizeof (struct spwd)); in nss_getpwnam()
138 if (pwbuf->spwd == NULL) { in nss_getpwnam()
170 if (pwbuf->spwd) { in nss_getpwnam()
175 if (getspnam_r(name, pwbuf->spwd, pwbuf->spwd_scratch, in nss_getpwnam()
204 if (pwbuf->spwd) free(pwbuf->spwd); in nss_getpwnam()
[all …]
H A Dfiles_attr.c56 static int files_update_history(char *name, struct spwd *spwd);
81 struct spwd *spwd; member
185 struct spwd *
186 private_getspnam_r(const char *name, struct spwd *result, char *buffer, in private_getspnam_r()
267 if (pwbuf->spwd == NULL) { in files_getpwnam()
268 pwbuf->spwd = malloc(sizeof (struct spwd)); in files_getpwnam()
269 if (pwbuf->spwd == NULL) { in files_getpwnam()
296 if (pwbuf->spwd) { in files_getpwnam()
301 if (private_getspnam_r(name, pwbuf->spwd, pwbuf->spwd_scratch, in files_getpwnam()
312 if (pwbuf->spwd) free(pwbuf->spwd); in files_getpwnam()
[all …]
H A Dutils.h41 int dup_spw(struct spwd **, struct spwd *);
43 void free_spwd(struct spwd *);
H A Dutils.c72 free_spwd(struct spwd *spw) in free_spwd()
122 dup_spw(struct spwd **d, struct spwd *s) in dup_spw()
164 turn_on_default_aging(struct spwd *spw) in turn_on_default_aging()
H A Dldap_attr.c104 struct spwd *spwd; member
156 if (p->spwd) in free_ldapbuf()
157 free_spwd(p->spwd); in free_ldapbuf()
294 struct spwd *spw = NULL; in ldap_getattr()
301 spw = ldapbuf->spwd; in ldap_getattr()
433 res = dup_spw(&ldapbuf->spwd, getspnam_from(name, rep, REP_LDAP)); in ldap_getpwnam()
437 char *spw = ldapbuf->spwd->sp_pwdp; in ldap_getpwnam()
551 struct spwd *spw; in ldap_update()
566 spw = ldapbuf->spwd; in ldap_update()
H A Dpasswdutil.h142 void turn_on_default_aging(struct spwd *);
160 struct spwd *getspnam_from(const char *, pwu_repository_t *, int);
H A Dswitch_utils.c524 struct spwd *shadow = (struct spwd *)ent;
678 NSS_XbyY_ALLOC(&spbuf, sizeof (struct spwd), NSS_BUFLEN_SHADOW)
690 struct spwd *
715 return (struct spwd *)NSS_XbyY_FINI(&arg); in getspnam_from()
/titanic_41/usr/src/lib/libc/port/gen/
H A Dgetspent_r.c53 struct spwd *
54 getspnam_r(const char *name, struct spwd *result, char *buffer, int buflen) in getspnam_r()
62 return ((struct spwd *)NSS_XbyY_FINI(&arg)); in getspnam_r()
78 struct spwd *
79 getspent_r(struct spwd *result, char *buffer, int buflen) in getspent_r()
91 (nam = ((struct spwd *)arg.returnval)->sp_namp) != 0 && in getspent_r()
94 return (struct spwd *)NSS_XbyY_FINI(&arg); in getspent_r()
97 struct spwd *
98 fgetspent_r(FILE *f, struct spwd *result, char *buffer, int buflen) in fgetspent_r()
108 return (struct spwd *)NSS_XbyY_FINI(&arg); in fgetspent_r()
[all …]
H A Dgetspent.c62 b = NSS_XbyY_ALLOC(buffer, sizeof (struct spwd), NSS_BUFLEN_SHADOW); in get_spbuf()
66 struct spwd *
75 struct spwd *
84 struct spwd *
H A Dputspent.c43 putspent(const struct spwd *p, FILE *f) in putspent()
/titanic_41/usr/src/lib/nsswitch/compat/common/
H A Dgetspent.c69 struct spwd *s = (struct spwd *)argp->returnval;
78 struct spwd *s = (struct spwd *)argp->returnval;
101 struct spwd *sp = (struct spwd *)argp->buf.result;
/titanic_41/usr/src/lib/libnisdb/yptol/
H A Dshim_changepasswd.c131 suc_code write_shadow_info(char *, struct spwd *);
141 struct spwd *get_old_shadow(char *, char *);
142 suc_code decode_shadow_entry(datum *, struct spwd *);
143 void free_shadow_entry(struct spwd *);
646 struct spwd *shadow; in modify_ent()
1167 struct spwd *
1171 struct spwd *sp; in get_old_shadow()
1186 if (NULL == (sp = am(myself, sizeof (struct spwd)))) { in get_old_shadow()
1214 decode_shadow_entry(datum *data, struct spwd *sp) in decode_shadow_entry()
1275 write_shadow_info(char *domain, struct spwd *sp) in write_shadow_info()
[all …]
/titanic_41/usr/src/lib/pam_modules/unix_account/
H A Dunix_acct.c89 struct spwd *shpwd) in check_for_login_inactivity()
150 struct spwd *shpwd; in new_password_check()
183 struct spwd *shpwd, in perform_passwd_aging_check()
244 struct spwd shpwd) in warn_user_passwd_will_expire()
297 struct spwd shpwd = {NULL, NULL, in pam_sm_acct_mgmt()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dauth.c1266 struct spwd *spwd; local
1340 spwd = getspnam(user);
1342 if (spwd != NULL) {
1346 if ((spwd->sp_expire > 0 && now >= spwd->sp_expire)
1347 || ((spwd->sp_max >= 0 && spwd->sp_max < 10000)
1348 && spwd->sp_lstchg >= 0
1349 && now >= spwd->sp_lstchg + spwd->sp_max)) {
1353 pw->pw_passwd = spwd->sp_pwdp;
/titanic_41/usr/src/cmd/sulogin/
H A Dsulogin.c133 struct spwd *shpw; in main()
455 struct spwd spwd; in main_loop() local
456 struct spwd *lshpw; /* local shadow */ in main_loop()
519 lshpw = getspnam_r(user, &spwd, shadow, sizeof (shadow)); in main_loop()
/titanic_41/usr/src/lib/libbc/libc/gen/common/
H A Dpwdauth.c54 struct spwd *spwp = NULL; in pwdauth()
/titanic_41/usr/src/cmd/pwconv/
H A Dpwconv.c72 struct spwd *
76 struct spwd *sp; in local_getspnam()
98 struct spwd *sp, sp_pwd; /* default entry */ in main()
/titanic_41/usr/src/cmd/getent/
H A Ddogetsp.c41 struct spwd *sp; in dogetsp()
/titanic_41/usr/src/cmd/passwd/
H A Dpasswd.c1413 static struct spwd *
1414 _lc_getspent_r(struct spwd *result, char *buffer, int buflen) in _lc_getspent_r()
1427 (nam = ((struct spwd *)arg.returnval)->sp_namp) != 0 && in _lc_getspent_r()
1430 return (struct spwd *)NSS_XbyY_FINI(&arg); in _lc_getspent_r()
1435 static struct spwd *
1440 b = NSS_XbyY_ALLOC(&buffer, sizeof (struct spwd), NSS_BUFLEN_SHADOW); in _lc_getspent()
1451 struct spwd *p; in get_namelist_local()
/titanic_41/usr/src/cmd/ssh/sshd/
H A Dauth-passwd.c104 struct spwd *spw; in auth_password()
/titanic_41/usr/src/cmd/passmgmt/
H A Dpassmgmt.c133 rid_tmpf(void), ck_p_sz(struct passwd *), ck_s_sz(struct spwd *),
152 struct spwd *
156 struct spwd *sp; in local_getspnam()
297 struct spwd *sp_ptr1p, shadow_st; in main()
1627 ck_s_sz(struct spwd *ssp) in ck_s_sz()
/titanic_41/usr/src/lib/libc/port/
H A Dllib-lc539 struct spwd *getspent(void);
540 struct spwd *getspent_r(struct spwd *, char *, int);
541 struct spwd *fgetspent(FILE *f);
542 struct spwd *fgetspent_r(FILE *, struct spwd *, char *, int);
543 struct spwd *getspnam(const char *name);
544 struct spwd *getspnam_r(const char *, struct spwd *, char *, int);
545 int putspent(const struct spwd *p, FILE *f);
/titanic_41/usr/src/cmd/keyserv/
H A Dnewkey.c339 struct spwd *spw;

12