summaryrefslogtreecommitdiff
path: root/source4/libcli/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-03-24 03:35:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:15 -0500
commitf312d91d60aa9d5ce688d589fd0bdde6f81ab82f (patch)
tree13982e640a7aa067182bb0d10e31e3f91499df58 /source4/libcli/auth
parent038c4c4c6a4f6039e0436134de1d9c1e14c444d8 (diff)
downloadsamba-f312d91d60aa9d5ce688d589fd0bdde6f81ab82f.tar.gz
samba-f312d91d60aa9d5ce688d589fd0bdde6f81ab82f.tar.bz2
samba-f312d91d60aa9d5ce688d589fd0bdde6f81ab82f.zip
r6025: Remove unused variables. This code will be modified again for the new
cli_credentials code shortly. Andrew Bartlett (This used to be commit 13d09c8e9a50ae265059e4a0d92a07c651018a6c)
Diffstat (limited to 'source4/libcli/auth')
-rw-r--r--source4/libcli/auth/kerberos.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source4/libcli/auth/kerberos.c b/source4/libcli/auth/kerberos.c
index 45838c6818..89b4108280 100644
--- a/source4/libcli/auth/kerberos.c
+++ b/source4/libcli/auth/kerberos.c
@@ -5,6 +5,7 @@
Copyright (C) Remus Koos 2001
Copyright (C) Nalin Dahyabhai 2004.
Copyright (C) Jeremy Allison 2004.
+ Copyright (C) Andrew Bartlett <abartlet@samba.org> 2004-2005
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -442,17 +443,13 @@ static BOOL verify_service_password(krb5_context ctx,
krb5_keyblock key;
krb5_data passdata;
char *salting_s = NULL;
- char *machine_account = NULL, *password = NULL;
+ char *password = NULL;
krb5_auth_context auth_context = NULL;
krb5_error_code err;
memset(&passdata, '\0', sizeof(passdata));
memset(&key, '\0', sizeof(key));
- asprintf(&machine_account, "%s$@%s", lp_netbios_name(), lp_realm());
- if (machine_account == NULL) {
- goto out;
- }
password = secrets_fetch_machine_password(lp_workgroup());
if (password == NULL) {
goto out;
@@ -506,7 +503,6 @@ static BOOL verify_service_password(krb5_context ctx,
}
SAFE_FREE(salting_s);
SAFE_FREE(password);
- SAFE_FREE(machine_account);
return ret;
}