Bugzilla – Attachment 600 Details for
Bug 4955
login problems with Kerberos protected home directories (AFS/NFS)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Updated tl-kinit to solve timing problem
tl-kinit.sh (text/plain), 1.41 KB, created by
Peter Åstrand
on 2015-02-12 12:31:09 CET
(
hide
)
Description:
Updated tl-kinit to solve timing problem
Filename:
MIME Type:
Creator:
Peter Åstrand
Created:
2015-02-12 12:31:09 CET
Size:
1.41 KB
patch
obsolete
>#!/bin/bash ># -*- mode: shell-script; coding: utf-8 -*- ># ># Copyright 2002-2013 Cendio AB. ># For more information, see http://www.cendio.com ># ># action: Obtaining Kerberos ticket ># > >if type kinit; then > if [ -z "${KRB5CCNAME}" ]; then > export KRB5CCNAME="${TLSESSIONDATA}/krb5cc" > fi > # -l without argument gives usage with both MIT and Heimdal > if kinit -l 2>&1 | grep password-file >/dev/null; then > # Heimdal > stdin_arg="--password-file=STDIN" > else > # MIT > stdin_arg="" > fi > if "${TLPREFIX}/bin/tl-sso-token-passphrase" --check; then > "${TLPREFIX}/bin/tl-sso-token-passphrase" | kinit ${stdin_arg} > elif "${TLPREFIX}/bin/tl-sso-password" --check; then > "${TLPREFIX}/bin/tl-sso-password" | kinit ${stdin_arg} > fi > if type afslog; then > # Try to find a Kerberos ticket from the login session > if [ ! -f $KRB5CCNAME ]; then > uid=`id -u` > fres=`find /tmp -user $USER -type f -size +0 -name krb5cc_${uid}_\* 2>/dev/null` > i=0 > while [ -z "$fres" -a $i -lt 10 ]; do > echo "Sleeping while waiting for kerberos ticket from ssh" > sleep 1 > fres=`find /tmp -user $USER -type f -size +0 -name krb5cc_${uid}_\* 2>/dev/null` > i=`expr $i + 1` > done > tkt=`find /tmp -user $USER -type f -size +0 -name krb5cc_${uid}_\* 2>/dev/null | xargs ls -lart | tail -n 1 | awk '{print $NF}'` > if [ -f $tkt ]; then > cp $tkt $KRB5CCNAME > fi > fi > afslog > fi >fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 4955
:
592
|
593
| 600