summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-03-10 13:12:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:13 -0500
commite724dc9a60b488ed2bfa9ca87cdaaae86655b3ee (patch)
tree19c0cf1d94455bea37f87df7d3b7a8191ab1d3d0 /source3/client
parente443866f76e060d908e5c48588468c14f37d4abc (diff)
downloadsamba-e724dc9a60b488ed2bfa9ca87cdaaae86655b3ee.tar.gz
samba-e724dc9a60b488ed2bfa9ca87cdaaae86655b3ee.tar.bz2
samba-e724dc9a60b488ed2bfa9ca87cdaaae86655b3ee.zip
r14145: Add missing WITH_KCM hunks from my local tree.
Guenther (This used to be commit 977079a0583497255fbd4a48de52ebd404710b62)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/smbspool.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c
index d7a02b76f9..92e0bb4b67 100644
--- a/source3/client/smbspool.c
+++ b/source3/client/smbspool.c
@@ -299,15 +299,21 @@ list_devices(void)
static
char * get_ticket_cache( uid_t uid )
{
+ char *ticket_file = NULL;
+
+#ifdef WITH_KCM
+ snprintf(ticket_file, CC_MAX_FILE_LEN, "KCM:%d", uid );
+ goto done;
+#else
+ {
SMB_STRUCT_DIR *tcdir; /* directory where ticket caches are stored */
SMB_STRUCT_DIRENT *dirent; /* directory entry */
char *filename = NULL; /* holds file names on the tmp directory */
SMB_STRUCT_STAT buf;
char user_cache_prefix[CC_MAX_FILE_LEN];
char file_path[CC_MAX_FILE_PATH_LEN];
- char *ticket_file = NULL;
time_t t = 0;
-
+
snprintf(user_cache_prefix, CC_MAX_FILE_LEN, "%s%d", CC_PREFIX, uid );
tcdir = sys_opendir( TICKET_CC_DIR );
if ( tcdir == NULL )
@@ -343,6 +349,10 @@ char * get_ticket_cache( uid_t uid )
}
sys_closedir(tcdir);
+ }
+#endif
+
+done:
if ( ticket_file == NULL )
{