Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetspent.c54 struct spwd *spwd = (struct spwd *)ent; local
75 if (spwd) {
79 spwd->sp_namp = buffer;
80 spwd->sp_pwdp = buffer + (p + 1 - instr);
81 spwd->sp_lstchg = -1;
82 spwd->sp_min = -1;
83 spwd->sp_max = -1;
84 spwd->sp_warn = -1;
85 spwd->sp_inact = -1;
86 spwd->sp_expire = -1;
[all …]
/illumos-gate/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 *);
/illumos-gate/usr/src/lib/passwdutil/
H A Dnss_attr.c69 struct spwd *spwd; member
120 if (pwbuf->spwd) in nss_getpwnam()
121 free(pwbuf->spwd); in nss_getpwnam()
137 if (pwbuf->spwd == NULL) in nss_getpwnam()
138 pwbuf->spwd = (struct spwd *) in nss_getpwnam()
139 malloc(sizeof (struct spwd)); in nss_getpwnam()
140 if (pwbuf->spwd == NULL) { in nss_getpwnam()
172 if (pwbuf->spwd) { in nss_getpwnam()
177 if (getspnam_r(name, pwbuf->spwd, pwbuf->spwd_scratch, in nss_getpwnam()
206 if (pwbuf->spwd) free(pwbuf->spwd); in nss_getpwnam()
[all …]
H A Dfiles_attr.c60 static int files_update_history(const char *name, struct spwd *spwd);
85 struct spwd *spwd; member
189 struct spwd *
190 private_getspnam_r(const char *name, struct spwd *result, char *buffer, in private_getspnam_r()
272 if (pwbuf->spwd == NULL) { in files_getpwnam()
273 pwbuf->spwd = malloc(sizeof (struct spwd)); in files_getpwnam()
274 if (pwbuf->spwd == NULL) { in files_getpwnam()
301 if (pwbuf->spwd) { in files_getpwnam()
306 if (private_getspnam_r(name, pwbuf->spwd, pwbuf->spwd_scratch, in files_getpwnam()
317 if (pwbuf->spwd) free(pwbuf->spwd); in files_getpwnam()
[all …]
H A Dutils.h39 int dup_spw(struct spwd **, struct spwd *);
41 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.c107 struct spwd *spwd; member
159 if (p->spwd) in free_ldapbuf()
160 free_spwd(p->spwd); in free_ldapbuf()
297 struct spwd *spw = NULL; in ldap_getattr()
304 spw = ldapbuf->spwd; in ldap_getattr()
436 res = dup_spw(&ldapbuf->spwd, getspnam_from(name, rep, REP_LDAP)); in ldap_getpwnam()
440 char *spw = ldapbuf->spwd->sp_pwdp; in ldap_getpwnam()
554 struct spwd *spw; in ldap_update()
569 spw = ldapbuf->spwd; in ldap_update()
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()
H A Dpasswdutil.h144 void turn_on_default_aging(struct spwd *);
162 struct spwd *getspnam_from(const char *, pwu_repository_t *, int);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetspent_r.c52 struct spwd *
53 getspnam_r(const char *name, struct spwd *result, char *buffer, int buflen) in getspnam_r()
61 return ((struct spwd *)NSS_XbyY_FINI(&arg)); in getspnam_r()
77 struct spwd *
78 getspent_r(struct spwd *result, char *buffer, int buflen) in getspent_r()
90 (nam = ((struct spwd *)arg.returnval)->sp_namp) != 0 && in getspent_r()
93 return (struct spwd *)NSS_XbyY_FINI(&arg); in getspent_r()
96 struct spwd *
97 fgetspent_r(FILE *f, struct spwd *result, char *buffer, int buflen) in fgetspent_r()
107 return (struct spwd *)NSS_XbyY_FINI(&arg); in fgetspent_r()
[all …]
H A Dgetspent.c60 b = NSS_XbyY_ALLOC(buffer, sizeof (struct spwd), NSS_BUFLEN_SHADOW); in get_spbuf()
64 struct spwd *
73 struct spwd *
82 struct spwd *
H A Dputspent.c41 putspent(const struct spwd *p, FILE *f) in putspent()
/illumos-gate/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;
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Dshim_changepasswd.c135 suc_code write_shadow_info(char *, struct spwd *);
145 struct spwd *get_old_shadow(char *, char *);
146 suc_code decode_shadow_entry(datum *, struct spwd *);
147 void free_shadow_entry(struct spwd *);
649 struct spwd *shadow; in modify_ent()
1169 struct spwd *
1173 struct spwd *sp; in get_old_shadow()
1188 if (NULL == (sp = am(myself, sizeof (struct spwd)))) { in get_old_shadow()
1216 decode_shadow_entry(datum *data, struct spwd *sp) in decode_shadow_entry()
1277 write_shadow_info(char *domain, struct spwd *sp) in write_shadow_info()
[all …]
/illumos-gate/usr/src/lib/pam_modules/unix_account/
H A Dunix_acct.c91 struct spwd *shpwd) in check_for_login_inactivity()
152 struct spwd *shpwd; in new_password_check()
185 struct spwd *shpwd, in perform_passwd_aging_check()
246 struct spwd shpwd) in warn_user_passwd_will_expire()
299 struct spwd shpwd = {NULL, NULL, -1, -1, -1, -1, -1, -1, 0}; in pam_sm_acct_mgmt()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dauth.c1259 struct spwd *spwd; local
1333 spwd = getspnam(user);
1335 if (spwd != NULL) {
1339 if ((spwd->sp_expire > 0 && now >= spwd->sp_expire)
1340 || ((spwd->sp_max >= 0 && spwd->sp_max < 10000)
1341 && spwd->sp_lstchg >= 0
1342 && now >= spwd->sp_lstchg + spwd->sp_max)) {
1346 pw->pw_passwd = spwd->sp_pwdp;
/illumos-gate/usr/src/cmd/sulogin/
H A Dsulogin.c134 struct spwd *shpw; in main()
456 struct spwd spwd; in main_loop() local
457 struct spwd *lshpw; /* local shadow */ in main_loop()
520 lshpw = getspnam_r(user, &spwd, shadow, sizeof (shadow)); in main_loop()
/illumos-gate/usr/src/cmd/pwconv/
H A Dpwconv.c70 struct spwd *
74 struct spwd *sp; in local_getspnam()
96 struct spwd *sp, sp_pwd; /* default entry */ in main()
/illumos-gate/usr/src/cmd/getent/
H A Ddogetsp.c42 struct spwd *sp; in dogetsp()
/illumos-gate/usr/src/cmd/passwd/
H A Dpasswd.c1415 static struct spwd *
1416 _lc_getspent_r(struct spwd *result, char *buffer, int buflen) in _lc_getspent_r()
1429 (nam = ((struct spwd *)arg.returnval)->sp_namp) != 0 && in _lc_getspent_r()
1432 return (struct spwd *)NSS_XbyY_FINI(&arg); in _lc_getspent_r()
1437 static struct spwd *
1442 b = NSS_XbyY_ALLOC(&buffer, sizeof (struct spwd), NSS_BUFLEN_SHADOW); in _lc_getspent()
1453 struct spwd *p; in get_namelist_local()
/illumos-gate/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()
299 struct spwd *sp_ptr1p, shadow_st; in main()
1629 ck_s_sz(struct spwd *ssp) in ck_s_sz()
/illumos-gate/usr/src/cmd/keyserv/
H A Dnewkey.c339 struct spwd *spw;
/illumos-gate/usr/src/cmd/logins/
H A Dlogins.c655 struct spwd *psp; /* Pointer to a shadow-file entry */ in applypasswd()
794 struct spwd *psp; /* /etc/shadow file struct */ in hasnopasswd()
/illumos-gate/usr/src/cmd/bnu/
H A Din.uucpd.c72 struct spwd noupass = { "", "nope" };
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/
H A Dchangepasswd.c95 struct spwd ospwd; in changepasswd()

12