Bug 8681 - smb_krb5_open_keytab fails if default_keytab_name path in krb5.conf isn't prefixed by 'FILE:'
smb_krb5_open_keytab fails if default_keytab_name path in krb5.conf isn't pre...
Status: NEW
Product: Samba 3.5
Classification: Unclassified
Component: File services
3.5.10
All Linux
: P5 normal
: ---
Assigned To: Volker Lendecke
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-29 22:56 UTC by Benjamin Riggs
Modified: 2011-12-29 23:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Riggs 2011-12-29 22:56:57 UTC
In source3/libsmb/clikrb5.c: smb_krb5_open_keytab, line 1631 doesn't appear to function properly.

With "default_keytab_name = /swadm/etc/krb5.keytab" in /etc/krb5.conf, smb_krb5_open_keytab returns KRB5_KT_UNKNOWN_TYPE.
With "default_keytab_name = FILE:/swadm/etc/krb5.keytab", everything succeeds.

<snip>
[2011/12/29 15:29:03.080546, 10] libsmb/clikrb5.c:1875(smb_krb5_open_keytab)
  smb_krb5_open_keytab: krb5_kt_default_name returned /swadm/etc/krb5.keytab
[2011/12/29 15:29:03.080574,  1] libads/kerberos_keytab.c:257(ads_keytab_add_entry)
  ads_keytab_add_entry: smb_krb5_open_keytab failed (Unknown Key table type)
</snip>

<snip>
[2011/12/29 16:26:07.968123, 10] libsmb/clikrb5.c:1875(smb_krb5_open_keytab)
  smb_krb5_open_keytab: krb5_kt_default_name returned FILE:/swadm/etc/krb5.keytab
[2011/12/29 16:26:07.968163, 10] libsmb/clikrb5.c:1928(smb_krb5_open_keytab)
  smb_krb5_open_keytab: resolving: WRFILE:/swadm/etc/krb5.keytab
</snip>

$ smbd -V
Version 3.5.10-114.el6
Comment 1 Derrell Lipman 2011-12-29 23:01:26 UTC
Fix component