Home
last modified time | relevance | path

Searched refs:passwd (Results 1 – 25 of 612) sorted by relevance

12345678910>>...25

/freebsd/lib/libc/tests/nss/
H A Dgetpw_test.c49 DECLARE_TEST_DATA(passwd)
51 DECLARE_1PASS_TEST(passwd)
52 DECLARE_2PASS_TEST(passwd)
54 static void clone_passwd(struct passwd *, struct passwd const *);
55 static int compare_passwd(struct passwd *, struct passwd *, void *);
73 IMPLEMENT_TEST_DATA(passwd)
79 clone_passwd(struct passwd *dest, struct passwd const *src) in IMPLEMENT_TEST_FILE_SNAPSHOT()
100 compare_passwd(struct passwd *pwd1, struct passwd *pwd2, void *mdata __unused) in compare_passwd()
242 struct passwd *pwd; in passwd_fill_test_data()
316 struct passwd *pwd; in passwd_test_getpwnam()
[all …]
/freebsd/sys/contrib/libsodium/test/default/
H A Dpwhash_scrypt.c93 char passwd[256]; in tv() local
100 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv()
149 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv2()
169 const char *passwd; in tv3() member
278 char * passwd; in tv3() local
285 passwd = (char *) sodium_malloc(strlen(tests[i].passwd) + 1U); in tv3()
287 memcpy(passwd, tests[i].passwd, strlen(tests[i].passwd) + 1U); in tv3()
289 out, passwd, strlen(passwd)) != 0) { in tv3()
293 sodium_free(passwd); in tv3()
312 if (crypto_pwhash_scryptsalsa208sha256_str(str_out, passwd, strlen(passwd), in str_tests()
[all …]
H A Dpwhash_argon2i.c88 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv()
140 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv2()
192 const char *passwd; in tv3() member
209 char *passwd; in tv3() local
217 passwd = (char *) sodium_malloc(strlen(tests[i].passwd) + 1U); in tv3()
219 memcpy(passwd, tests[i].passwd, strlen(tests[i].passwd) + 1U); in tv3()
220 ret = crypto_pwhash_str_verify(out, passwd, strlen(passwd)); in tv3()
242 if (crypto_pwhash_argon2i_str(str_out, passwd, strlen(passwd), OPSLIMIT, in str_tests()
246 if (crypto_pwhash_argon2i_str(str_out2, passwd, strlen(passwd), OPSLIMIT, in str_tests()
275 if (crypto_pwhash_argon2i_str_verify(str_out, passwd, strlen(passwd)) != 0) { in str_tests()
[all …]
H A Dpwhash_argon2id.c88 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv()
140 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv2()
205 char *passwd; in tv3() local
213 passwd = (char *) sodium_malloc(strlen(tests[i].passwd) + 1U); in tv3()
215 memcpy(passwd, tests[i].passwd, strlen(tests[i].passwd) + 1U); in tv3()
216 ret = crypto_pwhash_str_verify(out, passwd, strlen(passwd)); in tv3()
238 if (crypto_pwhash_str(str_out, passwd, strlen(passwd), OPSLIMIT, in str_tests()
242 if (crypto_pwhash_str(str_out2, passwd, strlen(passwd), OPSLIMIT, in str_tests()
287 if (crypto_pwhash_str_verify(str_out, passwd, strlen(passwd)) != 0) { in str_tests()
291 if (crypto_pwhash_str_verify(str_out, passwd, strlen(passwd)) != -1) { in str_tests()
[all …]
/freebsd/usr.bin/chpass/
H A Dchpass.h43 struct passwd;
65 struct passwd *edit(const char *, struct passwd *);
68 int p_change(char *, struct passwd *, ENTRY *);
69 int p_class(char *, struct passwd *, ENTRY *);
70 int p_expire(char *, struct passwd *, ENTRY *);
71 int p_gecos(char *, struct passwd *, ENTRY *);
72 int p_gid(char *, struct passwd *, ENTRY *);
73 int p_hdir(char *, struct passwd *, ENTRY *);
74 int p_login(char *, struct passwd *, ENTRY *);
76 int p_shell(char *, struct passwd *, ENTRY *);
[all …]
/freebsd/lib/libcasper/services/cap_pwd/
H A Dcap_pwd.h42 struct passwd *cap_getpwent(cap_channel_t *chan);
44 struct passwd *cap_getpwuid(cap_channel_t *chan, uid_t uid);
47 size_t bufsize, struct passwd **result);
49 char *buffer, size_t bufsize, struct passwd **result);
51 char *buffer, size_t bufsize, struct passwd **result);
68 static inline struct passwd *
75 static inline struct passwd *
82 static inline struct passwd *
91 size_t bufsize, struct passwd **result)
99 struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result)
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/xattr/
H A Dxattr_013_pos.ksh56 create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd
73 log_mustnot get_xattr passwd $TESTDIR/myfile.$$
74 log_mustnot rm_xattr passwd $TESTDIR/myfile.$$
75 log_mustnot set_xattr_stdin passwd $TESTDIR/myfile.$$ </etc/passwd
78 log_mustnot set_xattr_stdin passwd $TESTDIR/new.$$ </etc/passwd
79 log_mustnot rm_xattr passwd $TESTDIR/new.$$
87 verify_xattr $TESTDIR/myfile.$$ passwd /etc/passwd
94 log_mustnot get_xattr passwd $TESTDIR/new.$$
96 create_xattr $TESTDIR/new.$$ passwd /etc/passwd
H A Dxattr_011_pos.ksh60 create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd
71 create_xattr $TESTDIR/cpio.$$ passwd /etc/passwd
140 create_xattr $TESTDIR/mvfile.$$ passwd /etc/passwd
142 verify_xattr $TESTDIR/mvfile2.$$ passwd /etc/passwd
148 create_xattr $TESTDIR/pax.$$ passwd /etc/passwd
165 verify_xattr $TESTDIR/pax.$$ passwd /etc/passwd
179 create_xattr $TESTDIR/tar.$$ passwd /etc/passwd
194 verify_xattr tar.$$ passwd /etc/passwd
208 create_xattr $TESTDIR/tar.$$ passwd /etc/passwd
218 log_mustnot get_xattr passwd $TESTDIR/tar.$$
[all …]
H A Dxattr_005_pos.ksh57 create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd
65 verify_xattr $TESTDIR/clone/myfile.$$ passwd /etc/passwd
68 create_xattr $TESTDIR/clone/myfile.$$ foo /etc/passwd
72 delete_xattr $TESTDIR/myfile.$$ passwd
75 verify_xattr $TESTDIR/clone/myfile.$$ passwd /etc/passwd
76 delete_xattr $TESTDIR/clone/myfile.$$ passwd
/freebsd/usr.sbin/pw/tests/
H A Dhelper_functions.shin11 cp ${TESTDIR}/master.passwd ${HOME} || \
12 atf_fail "Populating master.passwd in ${HOME}"
15 # Generate the passwd file
16 pwd_mkdb -p -d ${HOME} ${HOME}/master.passwd || \
17 atf_fail "generate passwd from master.passwd"
23 cp ${TESTDIR}/master.passwd ${HOME}/etc || \
24 atf_fail "Populating master.passwd in ${HOME}/etc"
28 # Generate the passwd file
29 pwd_mkdb -p -d ${HOME}/etc ${HOME}//etc/master.passwd || \
30 atf_fail "generate passwd from master.passwd"
/freebsd/include/
H A Dpwd.h111 struct passwd { struct
147 struct passwd *getpwnam(const char *);
148 struct passwd *getpwuid(uid_t);
152 struct passwd *getpwent(void);
157 int getpwnam_r(const char *, struct passwd *, char *, size_t,
158 struct passwd **);
159 int getpwuid_r(uid_t, struct passwd *, char *, size_t,
160 struct passwd **);
164 int getpwent_r(struct passwd *, char *, size_t, struct passwd **);
169 struct passwd * (*)(const char *),
[all …]
/freebsd/usr.sbin/periodic/etc/daily/
H A D200.backup-passwd15 if [ ! -f /etc/master.passwd ]
32 if [ ! -f $bak/master.passwd.bak ]
36 cp -p /etc/master.passwd $bak/master.passwd.bak || rc=3
39 if ! cmp -s $bak/master.passwd.bak /etc/master.passwd
43 diff ${daily_diff_flags} -I '^#' $bak/master.passwd.bak /etc/master.passwd |\
45 mv $bak/master.passwd.bak $bak/master.passwd.bak2
46 cp -p /etc/master.passwd $bak/master.passwd.bak || rc=3
/freebsd/crypto/openssh/
H A Dauth.h44 struct passwd;
66 struct passwd *pw; /* set if 'valid' */
136 int hostbased_key_allowed(struct ssh *, struct passwd *,
190 int allowed_user(struct ssh *, struct passwd *);
191 struct passwd * getpwnamallow(struct ssh *, const char *user);
193 char *expand_authorized_keys(const char *, struct passwd *pw);
194 char *authorized_principals_file(struct passwd *);
225 struct passwd *fakepw(void);
234 int auth_check_authkey_line(struct passwd *, struct sshkey *,
236 int auth_check_authkeys_file(struct passwd *, FILE *, char *,
[all …]
H A Dplatform.c99 platform_setusercontext(struct passwd *pw) in platform_setusercontext()
147 platform_setusercontext_post_groups(struct passwd *pw) in platform_setusercontext_post_groups()
204 platform_locked_account(struct passwd *pw) in platform_locked_account()
207 char *passwd = pw->pw_passwd; in platform_locked_account() local
222 iaf_passwd = passwd = get_iaf_password(pw); in platform_locked_account()
224 passwd = spw->sp_pwdp; in platform_locked_account()
229 if (passwd && *passwd) { in platform_locked_account()
231 if (strcmp(passwd, LOCKED_PASSWD_STRING) == 0) in platform_locked_account()
235 if (strncmp(passwd, LOCKED_PASSWD_PREFIX, in platform_locked_account()
240 if (strstr(passwd, LOCKED_PASSWD_SUBSTR)) in platform_locked_account()
/freebsd/contrib/one-true-awk/testdir/
H A DT.redir5 $awk '{ print >"foo" }' /etc/passwd
6 diff foo /etc/passwd || echo 'BAD: T.redir (print >"foo")'
9 $awk '{ print >>"foo" }' /etc/passwd
10 diff foo /etc/passwd || echo 'BAD: T.redir (print >>"foo")'
14 NR%2 == 0 { print >"foo" }' /etc/passwd
15 diff foo /etc/passwd || echo 'BAD: T.redir (print > and >>"foo")'
18 $awk '{ print | "cat >foo" }' /etc/passwd
19 diff foo /etc/passwd || echo 'BAD: T.redir (print | "cat >foo")'
31 $awk '{ print >"/dev/stderr" }' /etc/passwd 1>foo1 2>foo2
32 diff foo2 /etc/passwd || echo 'BAD: T.redir (print >"/dev/stderr")'
[all …]
/freebsd/contrib/kyua/utils/process/
H A Disolation_test.cpp59 namespace passwd = utils::passwd;
326 const passwd::user user = passwd::current_user(); in ATF_TEST_CASE_BODY()
346 const passwd::user unprivileged_user = passwd::find_user_by_name( in ATF_TEST_CASE_BODY()
366 passwd::user root = passwd::user("root", 0, 0); in ATF_TEST_CASE_BODY()
370 passwd::user unprivileged_user = passwd::current_user(); in ATF_TEST_CASE_BODY()
392 passwd::user root = passwd::user("root", 0, 0); in ATF_TEST_CASE_BODY()
396 passwd::user unprivileged_user = passwd::current_user(); in ATF_TEST_CASE_BODY()
543 passwd::user user = passwd::current_user(); in ATF_TEST_CASE_BODY()
559 const passwd::user unprivileged_user = passwd::find_user_by_name( in ATF_TEST_CASE_BODY()
575 passwd::user unprivileged_user = passwd::find_user_by_name( in ATF_TEST_CASE_BODY()
[all …]
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/
H A Dcrypto_pwhash.c130 const char * const passwd, unsigned long long passwdlen, in crypto_pwhash() argument
136 return crypto_pwhash_argon2i(out, outlen, passwd, passwdlen, salt, in crypto_pwhash()
139 return crypto_pwhash_argon2id(out, outlen, passwd, passwdlen, salt, in crypto_pwhash()
149 const char * const passwd, unsigned long long passwdlen, in crypto_pwhash_str() argument
152 return crypto_pwhash_argon2id_str(out, passwd, passwdlen, in crypto_pwhash_str()
158 const char * const passwd, unsigned long long passwdlen, in crypto_pwhash_str_alg() argument
163 return crypto_pwhash_argon2i_str(out, passwd, passwdlen, in crypto_pwhash_str_alg()
166 return crypto_pwhash_argon2id_str(out, passwd, passwdlen, in crypto_pwhash_str_alg()
175 const char * const passwd, in crypto_pwhash_str_verify() argument
180 return crypto_pwhash_argon2id_str_verify(str, passwd, passwdlen); in crypto_pwhash_str_verify()
[all …]
/freebsd/crypto/openssh/openbsd-compat/
H A Dxcrypt.c73 struct passwd *pw; in pick_salt()
74 char *passwd, *p; in pick_salt() local
83 if ((passwd = shadow_pw(pw)) == NULL) in pick_salt()
85 if (passwd[0] == '$' && (p = strrchr(passwd+1, '$')) != NULL) { in pick_salt()
86 typelen = p - passwd + 1; in pick_salt()
87 strlcpy(salt, passwd, MINIMUM(typelen, sizeof(salt))); in pick_salt()
88 explicit_bzero(passwd, strlen(passwd)); in pick_salt()
129 shadow_pw(struct passwd *pw) in shadow_pw()
/freebsd/tests/sys/cddl/zfs/tests/xattr/
H A Dxattr_005_pos.ksh66 create_xattr $TESTDIR/myfile.${TESTCASE_ID} passwd /etc/passwd
74 verify_xattr $TESTDIR/clone/myfile.${TESTCASE_ID} passwd /etc/passwd
77 create_xattr $TESTDIR/clone/myfile.${TESTCASE_ID} foo /etc/passwd
81 delete_xattr $TESTDIR/myfile.${TESTCASE_ID} passwd
84 verify_xattr $TESTDIR/clone/myfile.${TESTCASE_ID} passwd /etc/passwd
85 delete_xattr $TESTDIR/clone/myfile.${TESTCASE_ID} passwd
H A Dxattr_011_pos.ksh67 create_xattr $TESTDIR/myfile.${TESTCASE_ID} passwd /etc/passwd
78 create_xattr $TESTDIR/cpio.${TESTCASE_ID} passwd /etc/passwd
104 compare_xattrs $TESTDIR/myfile.${TESTCASE_ID} $TESTDIR/myfile2.${TESTCASE_ID} passwd
138 create_xattr $TESTDIR/mvfile.${TESTCASE_ID} passwd /etc/passwd
140 verify_xattr $TESTDIR/mvfile2.${TESTCASE_ID} passwd /etc/passwd
146 create_xattr $TESTDIR/pax.${TESTCASE_ID} passwd /etc/passwd
164 verify_xattr $TESTDIR/pax.${TESTCASE_ID} passwd /etc/passwd
175 create_xattr $TESTDIR/tar.${TESTCASE_ID} passwd /etc/passwd
187 verify_xattr $TESTDIR/tar.${TESTCASE_ID} passwd /etc/passwd
/freebsd/lib/libc/net/
H A Dnss_compat.c47 struct passwd;
190 DECLARE_TERMINATOR(passwd);
198 struct passwd *pwd; in __nss_compat_getpwnam_r()
213 *(struct passwd **)retval = pwd; in __nss_compat_getpwnam_r()
223 struct passwd *pwd; in __nss_compat_getpwuid_r()
238 *(struct passwd **)retval = pwd; in __nss_compat_getpwuid_r()
247 struct passwd *pwd; in __nss_compat_getpwent_r()
253 if (CHECK_TERMINATOR(passwd)) in __nss_compat_getpwent_r()
263 *(struct passwd **)retval = pwd; in __nss_compat_getpwent_r()
274 SET_TERMINATOR(passwd, NULL); in __nss_compat_setpwent()
[all …]
/freebsd/crypto/openssl/apps/
H A Dpasswd.c226 passwd = passwd_malloc = in passwd_main()
261 passwd = *passwds++; in passwd_main()
270 assert(passwd != NULL); in passwd_main()
328 passwd_len = strlen(passwd); in md5crypt()
346 ascii_passwd = OPENSSL_strdup(passwd); in md5crypt()
350 passwd = ascii_passwd; in md5crypt()
527 passwd_len = strlen(passwd); in shacrypt()
583 passwd = ascii_passwd; in shacrypt()
816 if ((strlen(passwd) > pw_maxlen)) { in do_passwd()
824 passwd[pw_maxlen] = 0; in do_passwd()
[all …]
/freebsd/contrib/kyua/engine/
H A Dconfig.cpp47 namespace passwd = utils::passwd;
160 config::typed_leaf_node< passwd::user >::set( in set_lua()
161 passwd::find_user_by_uid(state.to_integer(-1))); in set_lua()
163 config::typed_leaf_node< passwd::user >::set( in set_lua()
164 passwd::find_user_by_name(state.to_string(-1))); in set_lua()
179 config::typed_leaf_node< passwd::user >::set( in set_string()
180 passwd::find_user_by_name(raw_value)); in set_string()
190 config::typed_leaf_node< passwd::user >::set( in set_string()
191 passwd::find_user_by_uid(uid)); in set_string()
207 return config::typed_leaf_node< passwd::user >::value().name; in to_string()
/freebsd/lib/libc/gen/
H A Dgetpwent.c101 static struct passwd *getpw(int (*fn)(union key, struct passwd *, char *,
192 static int compat_set_template(struct passwd *, struct passwd *);
193 static int compat_use_template(struct passwd *, struct passwd *, char *,
259 struct passwd *pwd; in pwd_marshal_func()
363 struct passwd *pwd; in pwd_unmarshal_func()
632 struct passwd *res; in getpw()
685 struct passwd *
695 struct passwd *
705 struct passwd *
1291 struct passwd *pwd; in nis_passwd()
[all …]
/freebsd/lib/libpam/modules/pam_xdg/
H A Dpam_xdg.c56 struct passwd *passwd; in _pam_xdg_open() local
74 if ((passwd = getpwnam(user)) == NULL) { in _pam_xdg_open()
101 rv = fchownat(rt_dir_prefix, user, passwd->pw_uid, passwd->pw_gid, 0); in _pam_xdg_open()
118 if (sb.st_uid != passwd->pw_uid || in _pam_xdg_open()
119 sb.st_gid != passwd->pw_gid) { in _pam_xdg_open()
120 …SE_ERROR("%s/%s isn't owned by %d:%d\n", RUNTIME_DIR_PREFIX, user, passwd->pw_uid, passwd->pw_gid); in _pam_xdg_open()
211 struct passwd *passwd; in _pam_xdg_close() local
228 if ((passwd = getpwnam(user)) == NULL) { in _pam_xdg_close()
248 if (sb.st_uid != passwd->pw_uid || in _pam_xdg_close()
249 sb.st_gid != passwd->pw_gid) { in _pam_xdg_close()
[all …]

12345678910>>...25