/systemd-251/src/shared/ |
D | user-record-nss.c | 40 const struct spwd *spwd, in nss_passwd_to_user_record() argument 52 if (spwd && !streq_ptr(spwd->sp_namp, pwd->pw_name)) in nss_passwd_to_user_record() 94 if (spwd && in nss_passwd_to_user_record() 95 …looks_like_hashed_password(utf8_only(spwd->sp_pwdp))) { /* Ignore locked, disabled, and mojibake p… in nss_passwd_to_user_record() 97 hr->hashed_password = strv_new(spwd->sp_pwdp); in nss_passwd_to_user_record() 109 spwd && spwd->sp_expire >= 0, in nss_passwd_to_user_record() 110 spwd->sp_expire <= 1, -1); in nss_passwd_to_user_record() 113 … spwd && spwd->sp_expire > 1 && (uint64_t) spwd->sp_expire < (UINT64_MAX-1)/USEC_PER_DAY, in nss_passwd_to_user_record() 114 spwd->sp_expire * USEC_PER_DAY, UINT64_MAX); in nss_passwd_to_user_record() 117 spwd && spwd->sp_lstchg >= 0, in nss_passwd_to_user_record() [all …]
|
D | user-record-nss.h | 14 int nss_passwd_to_user_record(const struct passwd *pwd, const struct spwd *spwd, UserRecord **ret); 15 int nss_spwd_for_passwd(const struct passwd *pwd, struct spwd *ret_spwd, char **ret_buffer);
|
D | userdb.c | 782 struct spwd spwd; in userdb_iterator_get() local 790 r = nss_spwd_for_passwd(pw, &spwd, &buffer); in userdb_iterator_get() 800 r = nss_passwd_to_user_record(pw, r >= 0 ? &spwd : NULL, ret); in userdb_iterator_get()
|
/systemd-251/src/nss-systemd/ |
D | userdb-glue.c | 136 struct spwd *spwd, in nss_pack_user_record_shadow() argument 144 assert(spwd); in nss_pack_user_record_shadow() 155 *spwd = (struct spwd) { in nss_pack_user_record_shadow() 172 spwd->sp_pwdp = stpcpy(spwd->sp_namp, hr->user_name) + 1; in nss_pack_user_record_shadow() 173 strcpy(spwd->sp_pwdp, hashed); in nss_pack_user_record_shadow() 180 struct spwd *spwd, in userdb_getspnam() argument 187 assert(spwd); in userdb_getspnam() 204 r = nss_pack_user_record_shadow(hr, spwd, buffer, buflen); in userdb_getspnam()
|
D | userdb-glue.h | 16 int nss_pack_user_record_shadow(UserRecord *hr, struct spwd *spwd, char *buffer, size_t buflen); 22 enum nss_status userdb_getspnam(const char *name, struct spwd *spwd, char *buffer, size_t buflen, i…
|
D | nss-systemd.c | 32 static const struct spwd root_spwd = { 54 static const struct spwd nobody_spwd = { 185 struct spwd *dest, in copy_synthesized_spwd() 186 const struct spwd *src, in copy_synthesized_spwd() 381 struct spwd *spwd, in _nss_systemd_getspnam_r() argument 392 assert(spwd); in _nss_systemd_getspnam_r() 402 return copy_synthesized_spwd(spwd, &root_spwd, buffer, buflen, errnop); in _nss_systemd_getspnam_r() 408 return copy_synthesized_spwd(spwd, &nobody_spwd, buffer, buflen, errnop); in _nss_systemd_getspnam_r() 414 status = userdb_getspnam(name, spwd, buffer, buflen, &e); in _nss_systemd_getspnam_r() 848 struct spwd *result, in _nss_systemd_getspent_r()
|
/systemd-251/src/basic/ |
D | nss-util.h | 133 struct spwd *spwd, \ 173 struct spwd *spwd, \
|
D | user-util.h | 122 int fgetspent_sane(FILE *stream, struct spwd **sp); 125 int putspent_sane(const struct spwd *sp, FILE *stream);
|
D | user-util.c | 973 int putspent_sane(const struct spwd *sp, FILE *stream) { in putspent_sane() 1023 int fgetspent_sane(FILE *stream, struct spwd **sp) { in fgetspent_sane() 1024 struct spwd *s; in fgetspent_sane()
|
/systemd-251/docs/ |
D | USER_RECORD.md | 216 `sp_namp` field of `struct spwd` (i.e. the shadow user record stored in 281 spwd`, i.e. the matching field in the user shadow database `/etc/shadow`, 338 `struct spwd` (i.e. the `/etc/shadow` data for a user) being set to zero or 347 `struct spwd`, when it is set to a value larger than one, but provides finer 556 spwd` (i.e. the `/etc/shadow` entries of the user), but offers finer 561 `sp_warn` field of `struct spwd`. 565 deactivated. This corresponds with the `sp_inact` field of `struct spwd`. 568 on next login. This corresponds with the `sp_lstchg` field of `struct spwd` 629 corresponds with `sp_pwdp` field of `struct spwd` (and in a way the `pw_passwd` 976 ## Mapping to `struct passwd` and `struct spwd` [all …]
|
/systemd-251/src/firstboot/ |
D | firstboot.c | 808 struct spwd *i; in write_root_shadow() 829 struct spwd root = { in write_root_shadow() 908 struct spwd *p; in process_root_args()
|
/systemd-251/src/sysusers/ |
D | sysusers.c | 523 struct spwd *sp = NULL; in write_temporary_shadow() 586 struct spwd n = { in write_temporary_shadow()
|