mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
reset uid back to the user before doing kerberised change password.
root permission is not needed and the kerberos library is paranoid about access control to the ticket file PR: bin/20779
This commit is contained in:
parent
02c9ff5b94
commit
1d4589b693
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74137
@ -216,6 +216,7 @@ main(argc, argv)
|
||||
k = auth_getval("auth_list");
|
||||
if (k && strstr(k, "kerberos"))
|
||||
if(krb_get_lrealm(realm, 0) == KSUCCESS) {
|
||||
setuid(getuid());
|
||||
fprintf(stderr, "realm %s\n", realm);
|
||||
exit(krb_passwd(argv[0], iflag, rflag, uflag));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user