diff --git a/proxy-ssh b/proxy-ssh index 4ff740a..764a167 100755 --- a/proxy-ssh +++ b/proxy-ssh @@ -46,6 +46,13 @@ ensure_ticket() expiretm=$(/bin/date -j -f "%b %d %H:%M:%S" +%s "$expires" 2>/dev/null) ;; + Darwin:12.* ) + # Valid Starting Expires Service Principal + # Oct 27 08:50:04 2013 Oct 28 08:50:04 2013 krbtgt/CERN.CH@CERN.CH + expires=$(klist 2>/dev/null | grep krbtgt | grep -vi expired | awk '{print $5, $6, $7, $8}') + expiretm=$(/bin/date -j -f "%b %d %H:%M:%S %Y" +%s "$expires" 2>/dev/null) + ;; + * ) # Valid starting Expires Service principal # 10/27/11 09:21:32 10/28/11 08:50:04 krbtgt/CERN.CH@CERN.CH