Bug 8810 - samba_spnupdate crashed with AttributeError in domain_dns_name(): 'NoneType' object has no attribute 'canonical_str'
Summary: samba_spnupdate crashed with AttributeError in domain_dns_name(): 'NoneType' ...
Status: NEW
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.0 alpha 17
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: samba4-qa@samba.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-13 15:09 UTC by Jelmer Vernooij
Modified: 2012-03-27 14:54 UTC (History)
1 user (show)

See Also:


Attachments

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?