Searched refs:pw (Results 76 - 100 of 192) sorted by relevance

12345678

/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Dlp.c83 struct passwd *pw; local
89 if ((pw = getpwuid(ruid)) != NULL)
90 (void) initgroups(pw->pw_name, pw->pw_gid);
/illumos-gate/usr/src/cmd/krb5/kadmin/kpasswd/
H A Dkpasswd.c75 * 4 new passwd mismatch or error trying to change pw
111 struct passwd *pw = 0; local
170 pw = getpwuid( getuid());
171 if (pw == NULL) {
175 princ_str = strdup(pw->pw_name);
/illumos-gate/usr/src/uts/sparc/fpu/
H A Dpack.c360 uint_t *pw) /* 4th word of extended significand */
369 *pw = 0;
377 *pw = 0;
389 *pw = pu->significand[3];
417 *pw = pu->significand[3];
434 *pw = 0xffffffffU;
441 *pw = pu->significand[3];
354 packextended( fp_simd_type *pfpsd, unpacked *pu, extended_type *px, uint_t *py, uint_t *pz, uint_t *pw) argument
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Dauthtok_check.c436 check_composition(char *pw, struct pwdefaults *pwdef, pam_handle_t *pamh, argument
457 for (w = pw; significant != 0 && *w != '\0'; w++, significant--) {
491 if (pwdef->maxlength < strlen(pw))
603 check_diff(char *pw, char *opw, struct pwdefaults *pwdef, pam_handle_t *pamh, argument
613 pwlen = MIN(strlen(pw), max);
621 while (*opw != '\0' && *pw != '\0' && max-- != 0) {
622 if (*opw != *pw)
625 pw++;
649 check_dictionary(char *pw, struct pwdefaults *pwdef, pam_handle_t *pamh, argument
671 crack_ret = DictCheck(pw, pwde
[all...]
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dfuncs.c236 struct passwd *pw; local
246 pw = getpwuid(getuid());
247 if (pw == NULL) {
256 if (!chkauthattr(authname, pw->pw_name))
287 if (chkauthattr(authtoks, pw->pw_name))
H A Dusermod.c154 struct passwd *pw; local
327 pw = getpwnam(logname);
337 while ((pw = fgetpwent(pwf)) != NULL)
338 if (strcmp(pw->pw_name, logname) == 0)
344 if (pw == NULL) {
359 pstruct = passwd_cpmalloc(pw);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dmain.c51 struct passwd *pw; /* pointer to static area used by getpwent */ variable in typeref:struct:passwd
115 pw = getpwuid(getuid());
116 if (pw == NULL) {
120 strncpy(user, pw->pw_name, sizeof (user));
122 strncpy(homedir, pw->pw_dir, sizeof (homedir));
H A Ddefs.h139 extern struct passwd *pw; /* pointer to static area used by getpwent */
/illumos-gate/usr/src/cmd/fs.d/smbclnt/test/
H A Dsrvenum.c116 char *pw = NULL; local
131 pw = optarg;
142 if (pw != NULL && (dom == NULL || usr == NULL)) {
168 if (pw)
169 smb_ctx_setpassword(ctx, pw, NULL);
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dctx.c471 char *dom, *usr, *pw, *p; local
483 dom = usr = pw = host = NULL;
518 pw = strchr(p, ':');
519 if (pw)
520 *pw++ = '\0';
561 if (pw != NULL) {
562 error = smb_ctx_setpassword(ctx, pw, TRUE);
875 struct passwd pw; local
891 if (getpwnam_r(pair, &pw, buf, sizeof (buf)) != NULL) {
892 *uid = pw
1501 struct passwd pw; local
[all...]
/illumos-gate/usr/src/lib/pam_modules/dhkeys/
H A Ddhkeys.c89 * type and send it to keyserv if the given pw decrypts it. Update the
101 const char *pw, /* in */
120 if (getsecretkey_g(netname, keylen, algtype, skey, skeylen, pw)) {
206 struct passwd pw; /* Needed to obtain uid */ local
231 if (getpwnam_r(user, &pw, scratch, scratchlen) == NULL) {
236 uid = pw.pw_uid;
237 gid = pw.pw_gid;
96 get_and_set_seckey( pam_handle_t *pamh, const char *netname, keylen_t keylen, algtype_t algtype, const char *pw, uid_t uid, gid_t gid, int *get_seckey_cnt, int *good_pw_cnt, int *set_seckey_cnt, int flags, int debug) argument
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dmain.c68 struct passwd *pw = NULL; local
225 pw = getpwnam(cp);
227 if (pw == NULL)
228 pw = getpwuid(getuid());
229 if (pw != NULL) {
231 (void) strcpy(home, pw->pw_dir);
/illumos-gate/usr/src/cmd/sendmail/src/
H A Drecipient.c1168 register struct passwd *pw; local
1235 while ((pw = getpwent()) != NULL)
1240 if (sm_strcasecmp(pw->pw_name, name) == 0)
1248 sm_pwfullname(pw->pw_gecos, pw->pw_name, buf, sizeof(buf));
1252 sm_dprintf("fuzzy matches %s\n", pw->pw_name);
1253 message("sending to login name %s", pw->pw_name);
1257 if (pw != NULL)
1264 if (pw == NULL)
1266 sm_mbdb_frompw(user, pw);
1749 register struct passwd *pw; local
[all...]
/illumos-gate/usr/src/cmd/krb5/kadmin/kclient/
H A Dksetpw.c41 krb5_enctype enctype, krb5_kvno kvno, const char *pw);
331 const char *pw)
351 password.length = strlen(pw);
352 password.data = (char *)pw;
329 kt_add_entry(krb5_context ctx, krb5_keytab kt, const krb5_principal princ, const krb5_principal sprinc, krb5_enctype enctype, krb5_kvno kvno, const char *pw) argument
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_write.c221 struct passwd *pw; local
223 if ((pw = getpwuid(getuid())) != NULL) {
226 if ((fd = rcmd_af(&host, htons(514), pw->pw_name, "root",
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dimport_name.c65 struct passwd *pw; local
157 if (k5_getpwuid_r(uid, &pwx, pwbuf, sizeof(pwbuf), &pw) == 0)
158 stringrep = pw->pw_name;
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A D_crypt.c391 _crypt(char *pw, char *salt) argument
403 for(i=0; (c= *pw) && i<64; pw++){
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c268 struct passwd *pw; local
298 if (unquick && (pw = getpwnam(name))) {
299 p->pwd = pwdcopy(pw);
324 struct passwd *pw; local
358 if ((pw = getpwnam(p->name)) != NULL)
359 p->pwd = pwdcopy(pw);
362 while ((pw = getpwent()) != NULL) {
366 if (strcmp(p->name, pw->pw_name) != 0 &&
367 !matchcmp(pw->pw_gecos, pw
[all...]
/illumos-gate/usr/src/cmd/id/
H A Did.c309 struct passwd *pw; local
311 if (nflag && (pw = getpwuid(uid)) != PWNULL)
312 (void) printf("%s", pw->pw_name);
/illumos-gate/usr/src/cmd/logger/
H A Dlogger.c130 struct passwd *pw; local
182 if ((pw = getpwuid(u)) == NULL) {
186 tag = pw->pw_name;
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_logon.c234 struct passwd pw; local
243 if (getpwuid_r(entry->sa_uid, &pw, buf, sizeof (buf)) == NULL)
246 smb_autohome_remove(pw.pw_name);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DPosixDaemon.c208 const struct passwd *pw = getpwnam(MDNSD_USER); local
209 if (pw != NULL)
210 setuid(pw->pw_uid);
/illumos-gate/usr/src/cmd/cron/
H A Dcron.c897 struct passwd *pw; local
907 if ((pw = getpwnam(name)) == NULL) {
928 if ((strcmp(pw->pw_shell, "") != 0) &&
929 (strcmp(pw->pw_shell, SHELL) != 0)) {
949 u->home = xmalloc(strlen(pw->pw_dir) + 1);
950 (void) strcpy(u->home, pw->pw_dir);
951 u->uid = pw->pw_uid;
952 u->gid = pw->pw_gid;
955 u->uid = pw->pw_uid;
956 u->gid = pw
994 struct passwd *pw; local
3196 struct passwd *pw; local
[all...]
/illumos-gate/usr/src/lib/pam_modules/unix_account/
H A Dunix_acct.c404 char *pw = "Unix PW"; local
407 pw = "NULL";
410 pw = LOCKSTRING;
412 pw = NOPWDRTR;
422 "%s Policy:Unix, pw=%s, lstchg=%d, min=%d, max=%d, "
424 user, pw, shpwd.sp_lstchg, shpwd.sp_min, shpwd.sp_max,
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_file.c222 struct passwd *pw, pwx; local
226 if (!k5_getpwuid_r(uid, &pwx, pwbuf, sizeof(pwbuf), &pw)
227 && pw != NULL && pw->pw_dir[0] != 0)
228 home_env = pw->pw_dir;

Completed in 2967 milliseconds

12345678