summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-03-22 14:48:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:10 -0500
commit40295c41dbba119f6b4e32647fb70f51ebf390a0 (patch)
treee4200c2226e26d32400a42e2c77d0cec9fdee45c /source3/libads
parentd2b8348fefdb21811999bef6d344e152c44084b8 (diff)
downloadsamba-40295c41dbba119f6b4e32647fb70f51ebf390a0.tar.gz
samba-40295c41dbba119f6b4e32647fb70f51ebf390a0.tar.bz2
samba-40295c41dbba119f6b4e32647fb70f51ebf390a0.zip
r5948: more compile cleanups from Jason Mader
(This used to be commit cc6c769c3c26164919dd13777d671abe02c084d9)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 6e1b011c37..13e6aa5a31 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -1267,7 +1267,7 @@ ADS_STATUS ads_add_service_principal_name(ADS_STRUCT *ads, const char *machine_n
ADS_STATUS ret;
TALLOC_CTX *ctx;
LDAPMessage *res = NULL;
- char *host_spn, *host_upn, *psp1, *psp2, *psp3;
+ char *host_spn, *psp1, *psp2, *psp3;
ADS_MODLIST mods;
fstring my_fqdn;
char *dn_string = NULL;
@@ -1297,11 +1297,6 @@ ADS_STATUS ads_add_service_principal_name(ADS_STRUCT *ads, const char *machine_n
ads_msgfree(ads, res);
return ADS_ERROR(LDAP_NO_SUCH_OBJECT);
}
- if (!(host_upn = talloc_asprintf(ctx, "%s@%s", host_spn, ads->config.realm))) {
- talloc_destroy(ctx);
- ads_msgfree(ads, res);
- return ADS_ERROR(LDAP_NO_SUCH_OBJECT);
- }
/* Add the extra principal */
psp1 = talloc_asprintf(ctx, "%s/%s", spn, machine_name);