[23002] in Kerberos
Re: samba keytab support for AD and kinit -k [PATCH: UPN adjustment]
daemon@ATHENA.MIT.EDU (Rakesh Patel)
Mon Dec 6 15:27:27 2004
Date: Sun, 05 Dec 2004 19:08:06 -0500
From: Rakesh Patel <rapatel@optonline.net>
In-reply-to: <200412052314.iB5NEaPd086843@au.padl.com>
To: samba-technical@lists.samba.org
Message-id: <41B3A2E6.1000301@optonline.net>
MIME-version: 1.0
Content-type: multipart/mixed; boundary="Boundary_(ID_FPy5CdASiCR4ietaUDq3Dg)"
cc: lukeh@padl.com
cc: huaraz@moeller.plus.com
cc: kerberos@mit.edu
Reply-To: rapatel@optonline.net
Errors-To: kerberos-bounces@mit.edu
This is a multi-part message in MIME format.
--Boundary_(ID_FPy5CdASiCR4ietaUDq3Dg)
Content-type: text/plain; charset=us-ascii; format=flowed
Content-transfer-encoding: 7BIT
Attached is a patch to 3.0.9 that addresses the issue.
Rakesh Patel
Luke Howard wrote:
>>you can use setspn to assign a SPN to a user or computer account.
>>
>>
>
>Right, but you can't use the SPN as the client name in an AS-REQ.
>You have to use the SAM account name or the UPN.
>
>-- Luke
>
>--
>
>
--Boundary_(ID_FPy5CdASiCR4ietaUDq3Dg)
Content-type: text/x-patch; name=ldap.c.diff
Content-transfer-encoding: 7BIT
Content-disposition: inline; filename=ldap.c.diff
--- source/libads/ldap.c.ORIG 2004-11-15 22:03:32.000000000 -0500
+++ source/libads/ldap.c 2004-12-05 18:59:12.757740084 -0500
@@ -1353,6 +1353,7 @@
ret = ADS_ERROR(LDAP_NO_MEMORY);
name_to_fqdn(my_fqdn, machine_name);
+ strlower_m(my_fqdn);
status = ads_find_machine_acct(ads, (void **)&res, machine_name);
if (ADS_ERR_OK(status) && ads_count_replies(ads, res) == 1) {
@@ -1382,7 +1383,7 @@
goto done;
}
- if (!(host_spn = talloc_asprintf(ctx, "HOST/%s", machine_name)))
+ if (!(host_spn = talloc_asprintf(ctx, "HOST/%s", my_fqdn)))
goto done;
if (!(host_upn = talloc_asprintf(ctx, "%s@%s", host_spn, ads->config.realm)))
goto done;
@@ -1400,7 +1401,7 @@
servicePrincipalName[3] = psp2;
/* Ensure servicePrincipalName[4] and [5] are unique. */
- strlower_m(my_fqdn);
+
psp3 = talloc_asprintf(ctx, "CIFS/%s", my_fqdn);
strlower_m(&psp3[5]);
--Boundary_(ID_FPy5CdASiCR4ietaUDq3Dg)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos
--Boundary_(ID_FPy5CdASiCR4ietaUDq3Dg)--