Bug 8810 - samba_spnupdate crashed with AttributeError in domain_dns_name(): 'NoneType' object has no attribute 'canonical_str'
samba_spnupdate crashed with AttributeError in domain_dns_name(): 'NoneType' ...
Status: NEW
Product: Samba 4.0
Classification: Unclassified
4.0 alpha 17
All All
: P5 normal
: ---
Assigned To: Andrew Bartlett
Depends on:
  Show dependency treegraph
Reported: 2012-03-13 15:09 UTC by Jelmer Vernooij
Modified: 2012-03-27 14:54 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jelmer Vernooij 2012-03-13 15:09:28 UTC
Traceback (most recent call last):
  File "/usr/sbin/samba_spnupdate", line 114, in <module>
    sub_vars = get_subst_vars(samdb)
  File "/usr/sbin/samba_spnupdate", line 73, in get_subst_vars
    vars['DNSDOMAIN'] = samdb.domain_dns_name()
  File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 588, in domain_dns_name
    return domain_dn.canonical_str().split('/')[0]
AttributeError: 'NoneType' object has no attribute 'canonical_str'
Comment 1 Matthias Dieter Wallnöfer 2012-03-27 14:54:32 UTC
Amitay, could you improve this, please?