Displaying 20 results from an estimated 1764 matches for "netcmd".
2015 Nov 04
3
Using samba-python to query AD? Status of API?
...be able to run it as Active Directory you
> would have samba-tool available.
>
> # which samba-tool
> /usr/bin/samba-tool
> # file /usr/bin/samba-tool
> /usr/bin/samba-tool: Python script, ASCII text executable
> # locate ldapcmp.py
> /usr/lib64/python2.7/site-packages/samba/netcmd/ldapcmp.py
> /usr/lib64/python2.7/site-packages/samba/netcmd/ldapcmp.pyc
> /usr/lib64/python2.7/site-packages/samba/netcmd/ldapcmp.pyo
> # file /usr/lib64/python2.7/site-packages/samba/netcmd/ldapcmp.py
> /usr/lib64/python2.7/site-packages/samba/netcmd/ldapcmp.py: Python script,
> AS...
2015 Oct 02
4
Wiki news: Build Samba, Join DCs
...samba.org/index.php/Check_and_fix_DNS_entries_on_DC_joins
adam at eagle:~$ samba-tool dns add DC sogo.smbdomain.com DC A 10.99.0.2
-Uadministrator
ERROR(runtime): uncaught exception - (-1073741628,
'NT_STATUS_UNEXPECTED_NETWORK_ERROR')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py",
line 175, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line
1059, in run
dns_conn = dns_connect(server, self.lp, self.creds)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py",...
2015 Jul 16
2
4.2.2 as AD with 2 DCs: database incoherency
Am 16.07.2015 um 17:18 schrieb Rowland Penny:
> On 16/07/15 13:27, Reindl Harald wrote:
>>
>> Am 16.07.2015 um 14:02 schrieb Rowland Penny:
>>> /etc/hosts should be:
>>>
>>> 127.0.0.1 localhost.localdomain localhost
>>
>> uhm no - you want 127.0.0.1 normally resolved to localhost and hence
>> 127.0.0.1 localhost
2018 Aug 22
1
Cannot find KDC for requested realm
...samba-tool dns add -k no -P ['fd35:4534:20ac:0:200:ff:fe00:5',
'ad.firma.andrick.de', 'ad', 'A', '192.168.4.53']
ERROR(runtime): uncaught exception - (9711,
'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib64/python2.7/site-packages/samba/netcmd/__init__.py",
line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/samba/netcmd/dns.py", line
940, in run
raise e
Failed 'samba-tool dns' based update of A ad.ad.firma.andrick.de
192.168.4.53
update (samba-tool): AAAA ad.ad.fir...
2019 Nov 14
2
samba-tool ldapcmp without --filter errors out.
...untill i remove the filter..
?
samba-tool ldapcmp? ldap://dc1.fqdn ?ldap://dc2.fqdn
This errors out with :
* Comparing [DOMAIN] context...
?
* Objects to be compared: 845
ERROR(<class 'KeyError'>): uncaught exception - 'CN'
? File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in _run
??? return self.run(*args, **kwargs)
? File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 957, in run
??? if b1.diff(b2):
? File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 781, in diff
??? if object1 == ob...
2016 Jul 07
4
FSMO Transfer fail
...ansfer of 'infrastructure' role successful
FSMO transfer of 'schema' role successful
ERROR(<type 'exceptions.UnboundLocalError'>): uncaught exception - local
variable 'master_guid' referenced before assignment
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line
175, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/fsmo.py", line 452,
in run
transfer_dns_role(self.outf, sambaopts, credopts, "domaindns", samdb)
File "/usr/lib/python2.7/dist-packages/samb...
2019 May 17
2
samba-tool dns serverinfo command throws error
... : DC1.domain.local
pszDsContainer :
CN=MicrosoftDNS,DC=DomainDnsZones,DC=domain,DC=local
ERROR(<class 'TypeError'>): uncaught exception - a bytes-like object is
required, not 'str'
File
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/__init__.py",
line 185, in _run
return self.run(*args, **kwargs)
File
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd/dns.py", line
564, in run
print_serverinfo(self.outf, typeid, res)
File
"/usr/local/samba/lib/python3.5/site-packages/samba/netcmd...
2016 Jul 07
1
FSMO Transfer fail
...lready has the 'infrastructure' FSMO role
This DC already has the 'schema' FSMO role
ERROR(<type 'exceptions.UnboundLocalError'>): uncaught exception - local
variable 'master_guid' referenced before assignment
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line
175, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/fsmo.py", line 452,
in run
transfer_dns_role(self.outf, sambaopts, credopts, "domaindns", samdb)
File "/usr/lib/python2.7/dist-packages/samb...
2018 Aug 22
1
Samba 4.8.4 + BIND 9.9.4 - possibility of nonsecure DNS updates
...5.1 (add)
Calling samba-tool dns add -k no -P ['192.168.45.1', 'samdom.svmetal.cz', 'dc03x', 'A', '192.168.45.1']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib64/python2.7/site-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/samba/netcmd/dns.py", line 940, in run
raise e
Failed 'samba-tool dns' based update of A dc03x.samdom.svmetal.cz 192.168.45.1
update (samba-tool): NS samdom.svm...
2015 Sep 01
2
ldapcmp issue
...-------------
samba-tool ldapcmp ldap://deb2.domain.tld ldap://deb1.domain.tld domain
* Comparing [DOMAIN] context...
* Objects to be compared: 39790
ERROR(ldb): uncaught exception - LDAP client internal error:
NT_STATUS_UNEXPECTED_NETWORK_ERROR
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line
175, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/ldapcmp.py", line
983, in run
if b1 == b2:
File "/usr/lib/python2.7/dist-packages/samba/netcmd/ldapcmp.py", line
774, in __eq__
outf=self.out...
2018 Sep 10
2
samba 4.7.6-Ubuntu + ipv6 not work bind9-DLZ
...mba-tool dns add -k no -P ['2001:db8:3:0:20c:29ff:fecb:5299', 'freewaynet.corp', 'agamenon', 'A', '192.168.1.252']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run
raise e
Failed 'samba-tool dns' based update of A agamenon.freewaynet.corp 192.168.1.252
update (samba-tool): AAAA agame...
2016 Mar 28
2
Unable to join DC to domain
...samba.org/archive/samba-technical/2016-January/111516.html
Here's where I'm at:
sudo /usr/local/samba/bin/samba-tool fsmo show
ERROR(<type 'exceptions.KeyError'>): uncaught exception - 'No such element'
File
"/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py",
line 175, in _run
return self.run(*args, **kwargs)
File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/fsmo.py",
line 390, in run
infrastructureMaster = get_fsmo_roleowner(samdb, infrastructure_dn)
File "/usr/local/samba/lib/python2.7/site-p...
2015 Jul 23
2
4.2.2 as AD with 2 DCs: database incoherency
...ve this issue, without
> success.
>
> On DC acting as full FSMO:
> dc20:~# samba-tool ldapcmp ldap://dc00.ad.dgfip.lan
> ldap://dc20.ad.dgfip.lan domain
> ERROR(ldb): uncaught exception - ldb_wait: Time limit exceeded (3)
> 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/ldapcmp.py", line
> 968, in run
> outf=self.outf, errf=self.errf)
> File "/usr/lib64/python2.6/site-packages/samba/netcm...
2015 Feb 27
8
samba-tool time
...Can somebody try to run :
?
samba-tool time
and
samba-tool time servername.fqdn
?
when i run it, im getting :
?
ERROR(runtime): uncaught exception - Connection to SRVSVC pipe of server 'rotterdam.bazuin.nl' failed: NT_STATUS_NONE_MAPPED
? File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
??? return self.run(*args, **kwargs)
? File "/usr/lib/python2.7/dist-packages/samba/netcmd/time.py", line 59, in run
??? self.outf.write(net.time(server_name)+"\n")
?
Greetz,
?
Louis
?
2015 Jul 23
0
4.2.2 as AD with 2 DCs: database incoherency
...ldapcmp" several times to solve this issue, without
success.
On DC acting as full FSMO:
dc20:~# samba-tool ldapcmp ldap://dc00.ad.dgfip.lan
ldap://dc20.ad.dgfip.lan domain
ERROR(ldb): uncaught exception - ldb_wait: Time limit exceeded (3)
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/ldapcmp.py", line
968, in run
outf=self.outf, errf=self.errf)
File "/usr/lib64/python2.6/site-packages/samba/netcmd/ldapcmp.py", line
80, in __...
2020 Nov 09
2
samba-tool gpo listall error
...s it has the GPOs that I think it does.
But I get this error:
root at ad2:~# samba-tool gpo listall
ERROR(runtime): uncaught exception - ('Could not find a DC for domain',
NTSTATUSError(3221225524, 'The object name is not found.'))
File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186,
in _run
return self.run(*args, **kwargs)
File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 464, in
run
self.url = dc_url(self.lp, self.creds, H)
File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 128, in
dc_url...
2024 May 25
1
LDAP error 53 LDAP_UNWILLING_TO_PERFORM
...ng into the domain an error occurs, the
> administrator has all the rights, but for some reason it is not
> possible to enter this server into the domain, samba 4.19.0, the log
> is attached
>
> INFO 2024-05-24 17:23:00,320
> pid:73718 /opt/reddc/lib/python3.8/site-packages/samba/netcmd/main.py
> #91: workgroup is DOMAIN INFO 2024-05-24 17:23:00,320 pid:73718
> /opt/reddc/lib/python3.8/site-packages/samba/netcmd/main.py #91:
> realm is doamin.local
I do hope that 'domain.local' is sanitisation for your real dns domain.
> ERROR(ldb): uncaught exception - LDAP...
2023 Nov 08
2
samba-tool dns zoneoptions --mark-old-records-static
...http://example.com>
--mark-old-records-static=2021-03-30ERROR(ldb): uncaught exception - LDAP
error 32 LDAP_NO_SUCH_OBJECT - <acl_read: Error retrieving instanceType
for base. at ../../source4/dsdb/samdb/ldb_modules/acl_read.c:967> <> File
"/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in
_run return self.run(*args, **kwargs) File
"/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 546, in run
self.mark_old_records_static(server, zone, File
"/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 586, in
mark_old_reco...
2019 Feb 28
6
samba-tool domain backup ERROR
...inistrator]:
....
Committing SAM database
Setting isSynchronized and dsServiceName
Cloned domain LF (SID S-1-5-21-2842440679-1648109622-3732055899)
ERROR(<type 'exceptions.IndexError'>): uncaught exception - list index
out of range
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line
177, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain_backup.py",
line 237, in run
new_sid = get_sid_for_restore(remote_sam)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain_backup....
2015 Aug 28
2
More on bind_dlz - documentation I have not found
...for
> ncacn_ip_tcp:127.0.0.1[1024,sign,abstract_syntax=50abc2a4-574d-40b3-9d66-ee4fd5fba076/0x00000005,localaddress=127.0.0.1]
> NT_STATUS_LOGON_FAILURE
> ERROR(runtime): uncaught exception - (-1073741715, 'Logon failure')
> File "/usr/lib/python2.7/site-packages/samba/netcmd/__init__.py",
> line 175, in _run
> return self.run(*args, **kwargs)
> File "/usr/lib/python2.7/site-packages/samba/netcmd/dns.py", line
> 809, in run
> dns_conn = dns_connect(server, self.lp, self.creds)
> File "/usr/lib/python2.7/site-packages/s...