summaryrefslogtreecommitdiffstats
path: root/tdm
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-02-26 01:38:29 +0100
committerSlávek Banko <[email protected]>2013-02-26 01:38:29 +0100
commit2f56a3448b73075ca4ae46efaa304e0f7c1100e9 (patch)
treef07a99a9d7119c9aec665ff9e9cc62bb7c0b08f3 /tdm
parenta1aa8254a43d6f819fc0d297a40246abd0ede32e (diff)
downloadtdebase-2f56a3448b73075ca4ae46efaa304e0f7c1100e9.tar.gz
tdebase-2f56a3448b73075ca4ae46efaa304e0f7c1100e9.zip
Fix unintended rename of krbtkfile
Diffstat (limited to 'tdm')
-rw-r--r--tdm/backend/client.c22
-rw-r--r--tdm/config.def2
2 files changed, 12 insertions, 12 deletions
diff --git a/tdm/backend/client.c b/tdm/backend/client.c
index 344984edb..0cf4e216b 100644
--- a/tdm/backend/client.c
+++ b/tdm/backend/client.c
@@ -133,7 +133,7 @@ static char tty[16], hostname[100];
static struct spwd *sp;
# endif
# ifdef KERBEROS
-static char krbttdefile[MAXPATHLEN];
+static char krbtkfile[MAXPATHLEN];
# endif
#endif
@@ -719,24 +719,24 @@ Verify( GConvFunc gconv, int rootok )
V_RET_FAIL( 0 );
}
- sprintf( krbttdefile, "%s.%.*s", TKT_ROOT, MAXPATHLEN - strlen( TKT_ROOT ) - 2, td->name );
- krb_set_tkt_string( krbttdefile );
- unlink( krbttdefile );
+ sprintf( krbtkfile, "%s.%.*s", TKT_ROOT, MAXPATHLEN - strlen( TKT_ROOT ) - 2, td->name );
+ krb_set_tkt_string( krbtkfile );
+ unlink( krbtkfile );
ret = krb_verify_user( curuser, "", realm, curpass, 1, "rcmd" );
if (ret == KSUCCESS) {
- chown( krbttdefile, p->pw_uid, p->pw_gid );
+ chown( krbtkfile, p->pw_uid, p->pw_gid );
Debug( "KerberosIV verify succeeded\n" );
goto done;
} else if (ret != KDC_PR_UNKNOWN && ret != SKDC_CANT) {
LogError( "KerberosIV verification failure %\"s for %s\n",
krb_get_err_text( ret ), curuser );
- krbttdefile[0] = '\0';
+ krbtkfile[0] = '\0';
V_RET_FAIL( 0 );
}
Debug( "KerberosIV verify failed: %s\n", krb_get_err_text( ret ) );
}
- krbttdefile[0] = '\0';
+ krbtkfile[0] = '\0';
# endif /* KERBEROS */
# if defined(ultrix) || defined(__ultrix__)
@@ -1259,7 +1259,7 @@ StartClient()
}
# else /* _AIX */
# if defined(KERBEROS) && !defined(NO_AFS)
- if (krbttdefile[0] != '\0') {
+ if (krbtkfile[0] != '\0') {
if (k_hasafs()) {
if (k_setpag() == -1)
LogError( "setpag() for %s failed\n", curuser );
@@ -1307,8 +1307,8 @@ StartClient()
if (cursource == PWSRC_AUTOLOGIN)
env = setEnv (env, "TDM_AUTOLOGIN", curuser);
#if !defined(USE_PAM) && !defined(_AIX) && defined(KERBEROS)
- if (krbttdefile[0] != '\0')
- env = setEnv( env, "KRBTTDEFILE", krbttdefile );
+ if (krbtkfile[0] != '\0')
+ env = setEnv( env, "KRBTKFILE", krbtkfile );
#endif
#ifdef WITH_CONSOLE_KIT
if (ck_session_cookie != NULL) {
@@ -1752,7 +1752,7 @@ SessionExit( int status )
#endif /* K5AUTH */
#if !defined(USE_PAM) && !defined(_AIX)
# ifdef KERBEROS
- if (krbttdefile[0]) {
+ if (krbtkfile[0]) {
(void)dest_tkt();
# ifndef NO_AFS
if (k_hasafs())
diff --git a/tdm/config.def b/tdm/config.def
index 7ac2b3299..b1045b6db 100644
--- a/tdm/config.def
+++ b/tdm/config.def
@@ -632,7 +632,7 @@ the following environment variables are passed:</para>
<listitem><para>may be set to a non-standard authority file</para></listitem>
</varlistentry>
<varlistentry>
- <term>KRBTTDEFILE</term>
+ <term>KRBTKFILE</term>
<listitem><para>may be set to a Kerberos4 credentials cache name</para>
</listitem>
</varlistentry>