View | Details | Raw Unified | Return to bug 5028
Collapse All | Expand All

(-)pamtester/src/app.c (-4 / +10 lines)
Lines 343-353 Link Here
343
			}
343
			}
344
344
345
			if ((err = pam_acct_mgmt(pamh, flag))) {
345
			if ((err = pam_acct_mgmt(pamh, flag))) {
346
				err_msg = xstrdup(pam_strerror(pamh, err));
346
				if (err == PAM_NEW_AUTHTOK_REQD) {
347
				goto out;
347
					err = pam_chauthtok(pamh, PAM_CHANGE_EXPIRED_AUTHTOK);
348
			} else {
348
				}
349
				printf("%s: account management done.\n", params->app_name);
349
350
				if (err) {
351
					err_msg = xstrdup(pam_strerror(pamh, err));
352
					goto out;
353
				}
350
			}
354
			}
355
			printf("%s: account management done.\n", params->app_name);
356
351
		} else if (!strcasecmp(op->name, "open_session")) {
357
		} else if (!strcasecmp(op->name, "open_session")) {
352
			int flag = 0;
358
			int flag = 0;
353
359

Return to bug 5028