Added Kerberos V4 style authentification.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1992-05-05 22:49:50 +00:00
parent 3ee6e108c0
commit 6c00248a67
4 changed files with 96 additions and 5 deletions

View File

@@ -68,8 +68,10 @@ struct passwd * pwp;
}
/* Now give this file to the user */
(void) chown(template,pwp->pw_uid, pwp->pw_gid);
(void) chmod(template,0600);
if (pwp) {
(void) chown(template,pwp->pw_uid, pwp->pw_gid);
(void) chmod(template,0600);
}
/* Now link this file to the temporary maildrop. If this fails it
* is probably because the temporary maildrop already exists. If so,
@@ -81,9 +83,10 @@ struct passwd * pwp;
(void) unlink(template);
/* Now we run as the user. */
(void) setuid(pwp->pw_uid);
(void) setgid(pwp->pw_gid);
if (pwp) {
(void) setuid(pwp->pw_uid);
(void) setgid(pwp->pw_gid);
}
#ifdef DEBUG
if(p->debug)pop_log(p,POP_DEBUG,"uid = %d, gid = %d",getuid(),getgid());
#endif DEBUG