summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-01-02 21:29:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:52 -0500
commit725cb5d7c9e651af7a5739774bdaff69ea5a61a9 (patch)
tree2ae38cca1b24866e72afd61e00e5fa4e42e3e5c9 /source3
parent19f85cd9b96f291600012354ab668dbb0043c814 (diff)
downloadsamba-725cb5d7c9e651af7a5739774bdaff69ea5a61a9.tar.gz
samba-725cb5d7c9e651af7a5739774bdaff69ea5a61a9.tar.bz2
samba-725cb5d7c9e651af7a5739774bdaff69ea5a61a9.zip
r20486: Always upper case the "host/<sAMAccoutnName>" entry in the keytab file
so apps will know which one to look for, (This used to be commit d4a5dc3ad5f56a5f741424ecc4fffa0ef39bdc67)
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/kerberos_keytab.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c
index 80d11d434b..4b640151d3 100644
--- a/source3/libads/kerberos_keytab.c
+++ b/source3/libads/kerberos_keytab.c
@@ -530,13 +530,18 @@ int ads_keytab_create_default(ADS_STRUCT *ads)
}
/* now add the userPrincipalName and sAMAccountName entries */
-
+
if ( (sam_account_name = ads_get_samaccountname( ads, ctx, machine_name)) == NULL ) {
DEBUG(0,("ads_keytab_add_entry: unable to determine machine account's name in AD!\n"));
TALLOC_FREE( ctx );
return -1;
}
+ /* upper case the sAMAccountName to make it easier for apps to
+ know what case to use in the keytab file */
+
+ strupper_m( sam_account_name );
+
if ( (ret = ads_keytab_add_entry(ads, sam_account_name )) != 0 ) {
DEBUG(1,("ads_keytab_create_default: ads_keytab_add_entry failed while adding sAMAccountName (%s)\n",
sam_account_name));