r1475: More kerberos work
authorAndrew Bartlett <abartlet@samba.org>
Tue, 13 Jul 2004 05:14:59 +0000 (05:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:57:34 +0000 (12:57 -0500)
commitde5da669397db4ac87c6da08d3533ca3030da2b0
treee1650ceff4d298f9c70a9aaf2936c48589e4a89a
parent2cc0b3a2f1785c53268f018999a87c26539fd4a6
r1475: More kerberos work

- We can now connect to hosts that follow the SPNEGO RFC, and *do not*
give us their principal name in the mechListMIC.
 - The client code now remembers the hostname it connects to

- We now kinit for a user, if there is not valid ticket already

- Re-introduce clock skew compensation

TODO:
 - See if the username in the ccache matches the username specified
 - Use a private ccache, rather then the global one, for a 'new' kinit
 - Determine 'default' usernames.
  - The default for Krb5 is the one in the ccache, then $USER
  - For NTLMSSP, it's just $USER

Andrew Bartlett
source/include/cli_context.h
source/libcli/auth/gensec.c
source/libcli/auth/gensec.h
source/libcli/auth/gensec_krb5.c
source/libcli/auth/kerberos.c
source/libcli/auth/kerberos.h
source/libcli/auth/spnego.c
source/libcli/raw/clisession.c
source/libcli/raw/clisocket.c
source/librpc/rpc/dcerpc_spnego.c