search for: sia_make_entity_pwd

Displaying 7 results from an estimated 7 matches for "sia_make_entity_pwd".

2001 Dec 19
0
Patch for DU SIA auth
...argc, saved_argv, host, user, tty, 0, - NULL) != SIASUCCESS) { - error("sia_ses_init failed"); - exit(1); - } - if ((pw = getpwnam(user)) == NULL) { ! sia_ses_release(&ent); error("getpwnam(%s) failed: %s", user, strerror(errno)); exit(1); } ! if (sia_make_entity_pwd(pw, ent) != SIASUCCESS) { ! sia_ses_release(&ent); error("sia_make_entity_pwd failed"); exit(1); } ! ent->authtype = SIA_A_NONE; ! if (sia_ses_estab(sia_collect_trm, ent) != SIASUCCESS) { error("couldn't establish session for %s from %s", user,...
2001 Apr 13
0
Fixed patch for Digital Unix SIA
...CESS) { + error("sia_ses_init failed"); + exit(1); + } if ((pw = getpwnam(user)) == NULL) { sia_ses_release(&ent); - fatal("getpwnam(%s) failed: %s", user, strerror(errno)); + error("getpwnam(%s) failed: %s", user, strerror(errno)); + exit(1); } if (sia_make_entity_pwd(pw, ent) != SIASUCCESS) { sia_ses_release(&ent); - fatal("sia_make_entity_pwd failed"); + error("sia_make_entity_pwd failed"); + exit(1); } ent->authtype = SIA_A_NONE; - if (sia_ses_estab(sia_collect_trm, ent) != SIASUCCESS) - fatal("couldn't establi...
2002 Sep 04
2
uid transition and post-auth privsep (WAS Re: possible fundamental problem with tru64 patch) (fwd)
...host, pw->pw_name, tty, > + 0, NULL) != SIASUCCESS) > fatal("sia_ses_init failed"); > - } > > - if ((pw = getpwnam(user)) == NULL) { > - sia_ses_release(&ent); > - fatal("getpwnam: no user: %s", user); > - } > if (sia_make_entity_pwd(pw, ent) != SIASUCCESS) { > sia_ses_release(&ent); > fatal("sia_make_entity_pwd failed"); > } > > ent->authtype = SIA_A_NONE; > - if (sia_ses_estab(sia_collect_trm, ent) != SIASUCCESS) { > - fatal("Couldn't establish session...
2003 Feb 27
0
Update for Tru64 Unix
...SUCCESS) { + if (sia_ses_init(&ent, saved_argc, saved_argv, host, pw->pw_name, tty, + 0, NULL) != SIASUCCESS) fatal("sia_ses_init failed"); - } - if ((pw = getpwnam(user)) == NULL) { - sia_ses_release(&ent); - fatal("getpwnam: no user: %s", user); - } if (sia_make_entity_pwd(pw, ent) != SIASUCCESS) { sia_ses_release(&ent); fatal("sia_make_entity_pwd failed"); } ent->authtype = SIA_A_NONE; - if (sia_ses_estab(sia_collect_trm, ent) != SIASUCCESS) { - fatal("Couldn't establish session for %s from %s", user, - host); - } - -...
2003 Sep 24
1
Patches for compatibility with Heimdal's libsia_krb5 SIA module
...LL) != SIASUCCESS) - fatal("sia_ses_init failed"); + if (ent) { + if (tty) + ent->tty = xstrdup(tty); + } else { + if (sia_ses_init(&ent, saved_argc, saved_argv, host, pw->pw_name, + tty, 0, NULL) != SIASUCCESS) + fatal("sia_ses_init failed"); + } if (sia_make_entity_pwd(pw, ent) != SIASUCCESS) { sia_ses_release(&ent); + ent = NULL; fatal("sia_make_entity_pwd failed"); } @@ -102,6 +115,7 @@ pw->pw_name, host); sia_ses_release(&ent); + ent = NULL; if (setreuid(geteuid(), geteuid()) < 0) fatal("setreuid: %s&q...
2000 Oct 15
1
Patch for Digital Unix SIA authentication
A while back, I sent in a patch that added Digital Unix SIA authentication to OpenSSH. Well, I just figured out that it didn't handle everything correctly (locked accounts could still log in). I thought I had checked that, but I guess I missed it. Anyway, here is a patch against OpenSSH 2.2.0p1 that fixes this. -- Chris Adams <cmadams at hiwaay.net> Systems and Network Administrator
2001 Feb 12
2
OSF_SIA bug in 2.3.0p1
Is anyone maintaining the OSF_SIA support in openssh? This seems to be an obvious bug triggered if you try to connect as a non-existant user. >From auth1.c line 459 #elif defined(HAVE_OSF_SIA) (sia_validate_user(NULL, saved_argc, saved_argv, get_canonical_hostname(), pw->pw_name, NULL, 0, NULL, "") == SIASUCCESS)) { #else /*