Home
last modified time | relevance | path

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

12345678910>>...21

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetpwnam_r.c55 struct passwd *
56 _uncached_getpwuid_r(uid_t uid, struct passwd *result, char *buffer,
59 struct passwd *
60 _uncached_getpwnam_r(const char *name, struct passwd *result, char *buffer,
67 struct passwd *
68 getpwnam_r(const char *name, struct passwd *result, char *buffer, int buflen) in getpwnam_r()
80 return ((struct passwd *)NSS_XbyY_FINI(&arg)); in getpwnam_r()
87 struct passwd *
88 getpwuid_r(uid_t uid, struct passwd *result, char *buffer, int buflen) in getpwuid_r()
96 return ((struct passwd *)NSS_XbyY_FINI(&arg)); in getpwuid_r()
[all …]
H A Dgetpwnam.c63 b = NSS_XbyY_ALLOC(buffer, sizeof (struct passwd), NSS_BUFLEN_PASSWD); in get_pwbuf()
67 struct passwd *
76 struct passwd *
85 struct passwd *
94 struct passwd *
/illumos-gate/usr/src/head/
H A Dpwd.h48 struct passwd { struct
69 extern struct passwd *getpwuid(uid_t); /* MT-unsafe */ argument
70 extern struct passwd *getpwnam(const char *); /* MT-unsafe */
73 extern struct passwd *getpwent_r(struct passwd *, char *, int);
74 extern struct passwd *fgetpwent_r(FILE *, struct passwd *, char *, int);
75 extern struct passwd *fgetpwent(FILE *); /* MT-unsafe */
76 extern int putpwent(const struct passwd *, FILE *);
82 extern struct passwd *getpwent(void); /* MT-unsafe */
130 extern int getpwuid_r(uid_t, struct passwd *, char *,
131 size_t, struct passwd **);
[all …]
/illumos-gate/usr/src/test/smbclient-tests/tests/smbfs/xattr/
H A Dtp_xattr_008.ksh78 create_xattr $TMNT/test_file passwd /etc/passwd
90 create_xattr $TMNT/cpio_test passwd /etc/passwd
110 verify_xattr $TMNT/cpio_test passwd /etc/passwd
116 verify_xattr $TMNT/cpio_test passwd /etc/passwd
148 compare_xattrs $TMNT/test_file $TMNT/test_file1 passwd
186 create_xattr $TMNT/mvtest passwd /etc/passwd
188 verify_xattr $TMNT/mvtest2 passwd /etc/passwd
197 create_xattr $TMNT/pax_test passwd /etc/passwd
229 verify_xattr $TMNT/pax_test passwd /etc/passwd
251 create_xattr $TMNT/tar_test passwd /etc/passwd
[all …]
/illumos-gate/usr/src/test/util-tests/tests/awk/tests/
H A DT.redir20 $AWK '{ print >"'$TEMP1'" }' /etc/passwd
21 diff $TEMP1 /etc/passwd || fail 'BAD: T.redir (print >"test.temp.1")'
24 $AWK '{ print >>"'$TEMP1'" }' /etc/passwd
25 diff $TEMP1 /etc/passwd || fail 'BAD: T.redir (print >>"test.temp.1")'
29 NR%2 == 0 { print >"'$TEMP1'" }' /etc/passwd
30 diff $TEMP1 /etc/passwd || fail 'BAD: T.redir (print > and >>"test.temp.1")'
33 $AWK '{ print | "cat > '$TEMP1'" }' /etc/passwd
34 diff $TEMP1 /etc/passwd || fail 'BAD: T.redir (print | "cat > test.temp.1")'
46 $AWK '{ print >"/dev/stderr" }' /etc/passwd 1> $TEMP1 2> $TEMP2
47 diff $TEMP2 /etc/passwd || fail 'BAD: T.redir (print >"/dev/stderr")'
[all …]
H A DT.getline47 cmp -s /etc/passwd $TEMP1 || fail 'BAD: T.getline (getline <file)'
49 cat /etc/passwd | $AWK '
56 cmp -s /etc/passwd $TEMP1 || fail 'BAD: T.getline (getline <"-")'
64 ' /etc/passwd > $TEMP1
65 cmp -s /etc/passwd $TEMP1 || fail 'BAD: T.getline (getline <arg)'
73 ' /etc/passwd > $TEMP1
74 cmp -s /etc/passwd $TEMP1 || fail 'BAD: T.getline (getline x <arg)'
82 ' /etc/passwd > $TEMP1
83 cmp -s /etc/passwd $TEMP1 || fail 'BAD: T.getline (cat arg | getline)'
91 ' /etc/passwd > $TEMP1
[all …]
H A DT.-f-f33 echo '/a/' | $AWK -f - /etc/passwd > $TEMP1
34 $AWK '/a/' /etc/passwd > $TEMP2
38 cp /etc/passwd $TEMP1
42 $AWK -f $TEMP2 -f $TEMP3 -f $TEMP4 /etc/passwd > $TEMP5
53 $AWK -f $TEMP2 -f $TEMP3 -f $TEMP4 /etc/passwd > $TEMP5 2> $TEMP6
/illumos-gate/usr/src/cmd/ypcmd/net_files/
H A DMakefile81 all: passwd group hosts ipnodes ethers networks rpc services protocols \
87 -@if [ -f $(PWDIR)/security/passwd.adjunct ]; then \
89 passwd.adjunct.time group.adjunct.time; \
91 passwd.adjunct.time group.adjunct.time; \
95 passwd.time: $(PWDIR)/passwd $(PWDIR)/shadow
96 -@if [ -f $(PWDIR)/security/passwd.adjunct ]; then \
97 …" $$1; printf "%s\t%s\n", $$1, $$0 }' $(PWDIR)/passwd $(CHKPIPE)) | $(MAKEDBM) - $(YPDBDIR)/$(DOM)…
98 …$1; printf "%-10d\t%s\n", $$3, $$0 }' $(PWDIR)/passwd $(CHKPIPE)) | $(MAKEDBM) - $(YPDBDIR)/$(DOM)…
100 …dow[$$1]; printf "%s\t%s\n",$$1,$$0 }' $(PWDIR)/passwd $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)…
101 …[$$1]; printf "%-10d\t%s\n",$$3,$$0 }' $(PWDIR)/passwd $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)…
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dsbind.c38 static int simple_bind_nolock( LDAP *ld, const char *dn, const char *passwd,
40 static int simple_bindifnot_s( LDAP *ld, const char *dn, const char *passwd );
54 ldap_simple_bind( LDAP *ld, const char *dn, const char *passwd ) in ldap_simple_bind() argument
64 rc = simple_bind_nolock( ld, dn, passwd, 1 ); in ldap_simple_bind()
71 simple_bind_nolock( LDAP *ld, const char *dn, const char *passwd, in simple_bind_nolock() argument
95 if ( passwd == NULL ) in simple_bind_nolock()
96 passwd = ""; in simple_bind_nolock()
101 bv.bv_val = (char *)passwd; in simple_bind_nolock()
102 bv.bv_len = strlen( passwd ); in simple_bind_nolock()
122 NSLDAPI_LDAP_VERSION( ld ), dn, LDAP_AUTH_SIMPLE, passwd ) == -1 ) { in simple_bind_nolock()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/xattr/
H A Dxattr_011_pos.ksh60 create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd
71 create_xattr $TESTDIR/cpio.$$ passwd /etc/passwd
97 compare_xattrs $TESTDIR/myfile.$$ $TESTDIR/myfile2.$$ passwd
127 create_xattr $TESTDIR/mvfile.$$ passwd /etc/passwd
129 verify_xattr $TESTDIR/mvfile2.$$ passwd /etc/passwd
135 create_xattr $TESTDIR/pax.$$ passwd /etc/passwd
153 verify_xattr $TESTDIR/pax.$$ passwd /etc/passwd
164 create_xattr $TESTDIR/tar.$$ passwd /etc/passwd
179 verify_xattr tar.$$ passwd /etc/passwd
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
H A Dxattr_013_pos.ksh62 create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd
81 verify_xattr $TESTDIR/myfile.$$ passwd /etc/passwd
86 create_xattr $TESTDIR/new.$$ passwd /etc/passwd
/illumos-gate/usr/src/lib/passwdutil/
H A Dswitch_utils.c295 struct passwd *passwd = (struct passwd *)ent; in str2passwd() local
311 passwd->pw_name = p = gettok(&next); /* username */ in str2passwd()
318 passwd->pw_uid = UID_NOBODY; in str2passwd()
319 passwd->pw_gid = GID_NOBODY; in str2passwd()
323 passwd->pw_passwd = ""; in str2passwd()
324 passwd->pw_age = ""; in str2passwd()
328 passwd->pw_comment = ""; in str2passwd()
329 passwd->pw_gecos = ""; in str2passwd()
330 passwd->pw_dir = ""; in str2passwd()
331 passwd->pw_shell = ""; in str2passwd()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/
H A Dilbd.h298 struct passwd cli_pw;
310 ilb_status_t ilbd_check_client_config_auth(const struct passwd *);
311 ilb_status_t ilbd_check_client_enable_auth(const struct passwd *);
317 const struct passwd *, ucred_t *);
319 const struct passwd *, ucred_t *);
321 const struct passwd *, ucred_t *);
323 ilb_status_t ilbd_destroy_sg(const char *, const struct passwd *,
327 ilb_status_t ilbd_enable_server(ilb_sg_info_t *, const struct passwd *,
329 ilb_status_t ilbd_disable_server(ilb_sg_info_t *, const struct passwd *,
347 ilb_status_t ilbd_create_rule(ilb_rule_info_t *, int, const struct passwd *,
[all …]
/illumos-gate/usr/src/lib/libnsl/key/
H A Dpublickey.c148 getkeys_nis(int *errp, char *netname, char *pkey, char *skey, char *passwd) in getkeys_nis() argument
206 if (skey && extract_secret(p, skey, passwd)) in getkeys_nis()
228 getkeys_files(int *errp, char *netname, char *pkey, char *skey, char *passwd) in getkeys_files() argument
289 if (skey && extract_secret(p, skey, passwd)) in getkeys_files()
329 getsecretkey(const char *netname, char *skey, const char *passwd) in getsecretkey() argument
332 passwd)); in getsecretkey()
348 char *passwd, /* in */ in extract_secret_g() argument
356 if (!buf || !passwd || !raw || !private || !prilen || in extract_secret_g()
374 if (!xdecrypt_g(buf, keylen, algtype, passwd, netname, TRUE)) { in extract_secret_g()
399 extract_secret(char *raw, char *private, char *passwd) in extract_secret() argument
[all …]
H A Dxcrypt.c80 xencrypt(secret, passwd) in xencrypt() argument
82 char *passwd;
95 (void) passwd2des(passwd, key);
114 xdecrypt(secret, passwd) in xdecrypt() argument
116 char *passwd;
130 (void) passwd2des(passwd, key);
244 const char *passwd, /* in */ in xencrypt_g() argument
262 if (!secret || !keylen || !passwd || !encrypted_secret) in xencrypt_g()
303 (void) passwd2des((char *)passwd, key.c); in xencrypt_g()
306 (void) passwd2des_g(passwd, netname, in xencrypt_g()
[all …]
/illumos-gate/usr/src/cmd/krb5/ldap_util/
H A Dkdb5_ldap_util.c306 char *passwd = NULL; local
386 passwd = strdup(koptarg);
387 if (passwd == NULL) {
515 if (passwd == NULL) {
516 passwd = (char *)malloc(MAX_PASSWD_LEN);
517 if (passwd == NULL) {
525 free(passwd);
526 passwd = NULL;
532 memset(passwd, 0, sizeof(passwd));
536 db_retval = krb5_read_password(util_context, prompt, NULL, passwd, &passwd_len);
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Ddoor_if.c74 nwam_error_t (*ndre_fn)(nwamd_door_arg_t *, ucred_t *, struct passwd *);
78 ucred_t *, struct passwd *);
80 ucred_t *, struct passwd *);
82 ucred_t *, struct passwd *);
84 ucred_t *, struct passwd *);
86 ucred_t *, struct passwd *);
88 ucred_t *, struct passwd *);
90 ucred_t *, struct passwd *);
92 ucred_t *, struct passwd *);
94 ucred_t *, struct passwd *);
[all …]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dncgrpw.c62 static int dup_pw_ent(struct passwd *pwp);
181 struct passwd *
184 struct passwd *pwd; in cpwnam()
213 pwd = (struct passwd *)NULL; in cpwnam()
224 sizeof (struct passwd))) != Null_Item) { in cpwnam()
237 sizeof (struct passwd)); in cpwnam()
248 return ((struct passwd *)itemp->data); in cpwnam()
337 struct passwd *
340 struct passwd *pwd; in cpwuid()
370 pwd = (struct passwd *)NULL; in cpwuid()
[all …]
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dcheckpw.c113 const char *passwd, size_t passlen, in _sasl_make_plain_secret() argument
117 const char *passwd, size_t passlen, in _sasl_make_plain_secret()
138 _sasl_MD5Update(&ctx, passwd, passlen); in _sasl_make_plain_secret()
151 const char *passwd, in auxprop_verify_password() argument
198 if(!passwd) { in auxprop_verify_password()
208 && !strcmp(auxprop_values[0].values[0], passwd)) { in auxprop_verify_password()
219 passwd, strlen(passwd), in auxprop_verify_password()
222 ret = _sasl_make_plain_secret(db_secret, passwd, in auxprop_verify_password()
223 strlen(passwd), in auxprop_verify_password()
408 const char *passwd, in pwcheck_verify_password() argument
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpassprompt.c32 static int promptpass(char *user, char *passwd) in promptpass() argument
43 if (user != NULL && passwd == NULL) in promptpass()
89 red = read(p[0], passwd + readgood, MAXSECRETLEN-1 - readgood); in promptpass()
101 passwd[readgood] = 0; in promptpass()
114 if (readgood > 0 && passwd[--readgood] == '\n') in promptpass()
115 passwd[readgood] = '\0'; in promptpass()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dauth.c140 int (*pap_auth_hook) __P((char *user, char *passwd, char **msgp,
148 int (*pap_passwd_hook) __P((char *user, char *passwd)) = NULL;
270 { "password", o_string, passwd,
325 || fgets(passwd, MAXSECRETLEN - 1, ufile) == NULL){
335 l = strlen(passwd);
336 if (l > 0 && passwd[l-1] == '\n')
337 passwd[l-1] = '\0';
585 if (passwd[0] == '\0') {
587 if (!get_pap_passwd(passwd))
592 upap_authwithpeer(unit, user, passwd);
[all …]
/illumos-gate/usr/src/test/smbclient-tests/cmd/scripts/
H A Dpasswd.exp37 set passwd [lindex $argv 1]
39 spawn passwd $name
53 send "$passwd\r"
62 send "$passwd\r"
/illumos-gate/usr/src/ucbcmd/vipw/
H A Dvipw.c58 char *passwd = "/etc/passwd"; variable
85 if (stat(passwd, &osbuf) < 0) { in main()
90 if (copyfile(passwd, ptemp)) in main()
96 passwd); in main()
102 if (editfile(editor, ptemp, passwd, &n_mtime)) { in main()
103 if (sanity_check(ptemp, &n_mtime, passwd)) in main()
120 if (rename(ptemp, passwd) < 0) { in main()
127 (chown(passwd, osbuf.st_uid, osbuf.st_gid) < 0)) { in main()
160 if (rename(ptemp, passwd) < 0) { in main()
167 (chown(passwd, osbuf.st_uid, osbuf.st_gid) < 0)) { in main()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_info.c59 uint8_t passwd[SMBAUTH_HASH_SZ]; member
380 smb_set_machine_passwd(char *passwd) in smb_set_machine_passwd() argument
385 if (smb_config_set(SMB_CI_MACHINE_PASSWD, passwd) != SMBD_SMF_OK) in smb_set_machine_passwd()
429 rc = smb_get_machine_passwd(ipc_info.passwd, SMBAUTH_HASH_SZ); in smb_ipc_init()
431 *ipc_info.passwd = 0; in smb_ipc_init()
446 (void) memcpy(ipc_info.passwd, passwd_hash, SMBAUTH_HASH_SZ); in smb_ipc_set()
461 (void) smb_get_machine_passwd(ipc_info.passwd, SMBAUTH_HASH_SZ); in smb_ipc_commit()
475 (void) memcpy(ipc_info.passwd, ipc_orig_info.passwd, in smb_ipc_rollback()
476 sizeof (ipc_info.passwd)); in smb_ipc_rollback()
495 (void) memcpy(buf, ipc_info.passwd, SMBAUTH_HASH_SZ); in smb_ipc_get_passwd()
[all …]

12345678910>>...21