Bug 10438 - Samba-tool reports uncaught exception
Summary: Samba-tool reports uncaught exception
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.1.4
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-11 15:47 UTC by James B. Byrne
Modified: 2019-09-21 12:55 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 James B. Byrne 2014-02-11 15:47:42 UTC
i86_64
CentOS-6.5
Samba-4.4.4-7 (sernet)

samba-tool dns add 192.168.216.66
_msdcs.brockley.harte-lyne.ca 4c012287-f5d1-4f54-b186-3c6d5bfc2c68 CNAME
brdc-02.brockley.harte-lyne.ca -Uadministrator
Password for [BROCKLEY\administrator]:
ERROR(runtime): uncaught exception - (-1073610706,
'NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE')
  File "/usr/lib64/python2.6/site-packages/samba/netcmd/__init__.py", line
175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/samba/netcmd/dns.py", line 1067, in
run
    0, server, zone, name, add_rec_buf, None)

I have checked the DNS on BRDC-01, the existing Win2K AD DC, and there were no entries
for brdc-02 whatsoever (these have since been added manually to proceed past this issue).
Comment 1 Amit Kumar 2019-09-02 03:18:24 UTC
(In reply to James B. Byrne from comment #0)
Hey james,

Cannot find issues with:
samba-dc-4.10.6-0.fc30.x86_64
samba-4.10.6-0.fc30.x86_64

# samba-tool dns zonecreate _msdcs.brockley.harte-lyne.ca

# samba-tool dns add sambadom.amitexample.com _msdcs.brockley.harte-lyne.ca 4c012287-f5d1-4f54-b186-3c6d5bfc2c68 CNAME brdc-02.brockley.harte-lyne.ca -UAdministrator%<>
Record added successfully

# samba-tool dns query sambadom.amitexample.com _msdcs.brockley.harte-lyne.ca 4c012287-f5d1-4f54-b186-3c6d5bfc2c68 ALL -UAdministrator%<>
  Name=, Records=1, Children=0
    CNAME: brdc-02.brockley.harte-lyne.ca. (flags=f0, serial=2, ttl=900)
Comment 2 Björn Jacke 2019-09-21 12:55:45 UTC
also works for me, NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE looks like some problem in your specific setup. Feel free to reopen, if this is reproducible in some given steps with an uptodate samba version still.