[Samba] Solaris 10 (sparc) and samba issue

Ravi Channavajhala ravi.channavajhala at dciera.com
Mon May 11 15:17:38 GMT 2009


The net ads joins the host to the AD, but cant get the proper kerberos
tix.  Manually generating the kerberos keytab from AD  dont work.  Any
suggestions?

root at host /#head -1 /etc/release
Solaris 10 10/08 s10s_u6wos_07b SPARC

root at host /usr/sfw/sbin#./smbd -V
Version 3.0.28

root at host /#for PKG in `pkginfo -x | grep -i samba | awk '{print
$1}'`; do VER=`pkginfo -l ${PKG} | grep PSTAMP`; echo ${PKG} ${VER};
done
SUNWsmbac PSTAMP: sfw10-patch20080310191909
SUNWsmbar PSTAMP: sfw10-patch20080723133424
SUNWsmbau PSTAMP: sfw10-patch20080723134146

Last few relevant lines from net ads with -d10 level debugging.

[2009/05/11 20:13:20, 10] libsmb/clientgen.c:(395)
  cli_rpc_pipe_close: closed pipe \NETLOGON to machine host.domain.com
[2009/05/11 20:13:20, 6] libsmb/clientgen.c:(153)
  write_socket(9,39)
[2009/05/11 20:13:20, 6] libsmb/clientgen.c:(156)
  write_socket(9,39) wrote 39
[2009/05/11 20:13:20, 10] lib/util_sock.c:(623)
  got smb length of 35
[2009/05/11 20:13:20, 5] lib/util.c:(484)
[2009/05/11 20:13:20, 5] lib/util.c:(494)
  size=35
  smb_com=0x71
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=51201
  smb_tid=2050
  smb_pid=2945
  smb_uid=2050
  smb_mid=12
  smt_wct=0
  smb_bcc=0
[2009/05/11 20:13:20, 10] lib/util.c:(2957)
  name_to_fqdn: lookup for HOST -> HOST.domain.com
[2009/05/11 20:13:20, 3] libads/ldap.c:(2471)
  ads_domain_func_level: 2
[2009/05/11 20:13:20, 3] libads/kerberos.c:(337)
  kerberos_secrets_store_des_salt: Storing salt
"host/host.domain.com at DOMAIN.COM"
[2009/05/11 20:13:21, 2] libads/kerberos_keytab.c:(260)
  ads_keytab_add_entry: Using default system keytab: FILE:/etc/krb5/krb5.keytab
[2009/05/11 20:13:21, 5] libads/ldap.c:(1422)
  ads_get_kvno: Searching for host HOST
[2009/05/11 20:13:21, 5] libads/ldap.c:(1440)
  ads_get_kvno: Using: CN=HOST,CN=Computers,DC=domain,DC=com
[2009/05/11 20:13:21, 5] libads/ldap.c:(1459)
  ads_get_kvno: Looked Up KVNO of: 7
[2009/05/11 20:13:21, 3] libads/kerberos_keytab.c:(65)
  smb_krb5_kt_add_entry: Will try to delete old keytab entries
[2009/05/11 20:13:21, 1] libads/kerberos_keytab.c:(152)
  smb_krb5_kt_add_entry: krb5_kt_end_seq_get failed (Bad file number)
[2009/05/11 20:13:21, 1] libads/kerberos_keytab.c:(346)
  ads_keytab_add_entry: Failed to add entry to keytab file
[2009/05/11 20:13:21, 1] libads/kerberos_keytab.c:(508)
  ads_keytab_create_default: ads_keytab_add_entry failed while adding 'host'.
[2009/05/11 20:13:21, 1] utils/net_ads.c:(1644)
  Error creating host keytab!
Joined 'HOST' to realm 'DOMAIN.COM'
[2009/05/11 20:13:21, 2] utils/net.c:(1036)
  return code = 0


More information about the samba mailing list