r4346: Fix cut-and-paste error - bugid #2189. Fixed by Buck Huppmann <buckh@pobox...
authorJeremy Allison <jra@samba.org>
Thu, 23 Dec 2004 18:40:50 +0000 (18:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:45 +0000 (10:53 -0500)
Jeremy.
(This used to be commit 5c22cb082c86088add0db21541a8079c516c9fd9)

source3/libads/ldap.c

index c18e253f7b2e463dbf49a78d3554770fbd045761..8c37a90e7320f2031279527b5c2254af56d3d058 100644 (file)
@@ -1454,7 +1454,7 @@ static ADS_STATUS ads_add_machine_acct(ADS_STRUCT *ads, const char *machine_name
        psp4 = talloc_asprintf(ctx, "HOST/%s", my_fqdn);
        strlower_m(&psp4[5]);
        for (i = 0; i < next_spn; i++) {
-               if (strequal(servicePrincipalName[i], psp3))
+               if (strequal(servicePrincipalName[i], psp4))
                        break;
        }
        if (i == next_spn) {