search for: k_setpag

Displaying 5 results from an estimated 5 matches for "k_setpag".

2004 Feb 27
1
[PATCH] Getting AFS tokens from a GSSAPI-delegated TGT
...krb5_ctx != NULL)) { - char cell[64]; + if (options.kerberos_get_afs_token && k_hasafs()) { + session_krb5_use_ccache(s->authctxt); + if (s->authctxt->krb5_ctx != NULL) { + char cell[64]; - debug("Getting AFS token"); + debug("Getting AFS token"); - k_setpag(); + k_setpag(); - if (k_afs_cell_of_file(pw->pw_dir, cell, sizeof(cell)) == 0) - krb5_afslog(s->authctxt->krb5_ctx, - s->authctxt->krb5_fwd_ccache, cell, NULL); + if (k_afs_cell_of_file(pw->pw_dir, cell, sizeof(cell)) == 0) + krb5_afslog(s->authctxt->krb5_...
2000 May 09
1
openssh-2.1.0 and AFS
...:28:50 2000 +++ auth1.c Tue May 9 17:38:13 2000 @@ -183,6 +183,11 @@ /* Accept AFS token. */ char *token_string = packet_get_string(&dlen); packet_integrity_check(plen, 4 + dlen, type); + /* If machine has AFS, set process authentication group. */ + if (k_hasafs()) { + k_setpag(); + k_unlog(); + } if (!auth_afs_token(pw, token_string)) verbose("AFS token REFUSED for %s", pw->pw_name); xfree(token_string); @@ -441,14 +446,6 @@ packet_integrity_check(plen, (4 + ulen), SSH_CMSG_USER); setproctitle("%s", user); - -#ifdef AFS...
2005 Nov 09
2
KerberosGetAFSToken drives me crazy
hi, every time i enable the option "KerberosGetAFSToken yes" on a computer where the afs-client works fine i get a (/var/log/)message(s) like this: "sshd[1136]: rexec line 70: Unsupported option KerberosGetAFSToken". no one get a afs-token via ssh-login. i found this in sshd in suse9.3, suse 10.0 and fedora core 4 but i does not found any informations if this is an error or
2004 Jan 01
1
Syncing sshd/krb GetAFSToken change to Portable: help wanted
...-lwrap -lresolv -lskey -lutil -lz -lnsl -lcrypto -lcrypt -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err session.o: In function `do_child?: /home/builder/gate/openssh-tinderbox/session.c:1427: undefined reference to `k_hasafs? /home/builder/gate/openssh-tinderbox/session.c:1433: undefined reference to `k_setpag? /home/builder/gate/openssh-tinderbox/session.c:1435: undefined reference to `k_afs_cell_of_file? /home/builder/gate/openssh-tinderbox/session.c:1436: undefined reference to `krb5_afslog? /home/builder/gate/openssh-tinderbox/session.c:1439: undefined reference to `krb5_afslog_home? collect2: ld ret...
2019 Nov 08
1
Regarding an "earlier" variant of `pre-xfer exec` [feature request and proposed patch]
...ing any files, one must call the `klog` tool to authenticate. However as said above, one can`t use `pre-xfer exec` because that executes after `chdir` which fails. For reference: * https://docs.openafs.org/Reference/1/pagsh.html * https://github.com/openafs/openafs/blob/master/src/sys/setpag.c * `k_setpag` -- http://manpages.ubuntu.com/manpages/bionic/man3/krb_afslog.3.html Other use-cases for such a feature: * as the original poster of the thread from 2008 said, he wanted to mount an encrypted file-system; * one could expose a Git worktree as a `rsync` module and use the "early" hook to...