Joe Guo
126a14b443
netcmd: apply the new get_logger to cmds
...
This is an example of how to use the new logger.
Signed-off-by: Joe Guo <joeg@catalyst.net.nz >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
2018-10-10 06:16:22 +02:00
Joe Guo
deb819913d
PEP8: fix E127: continuation line over-indented for visual indent
...
Signed-off-by: Joe Guo <joeg@catalyst.net.nz >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
2018-09-06 12:10:12 +02:00
Joe Guo
fd6b2086cb
PEP8: fix E303: too many blank lines (2)
...
Signed-off-by: Joe Guo <joeg@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
2018-08-24 07:49:30 +02:00
Joe Guo
211c9a5f85
PEP8: fix E302: expected 2 blank lines, found 1
...
Signed-off-by: Joe Guo <joeg@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
2018-08-24 07:49:29 +02:00
Joe Guo
12d3fbe15c
PEP8: fix E231: missing whitespace after ','
...
Signed-off-by: Joe Guo <joeg@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
2018-08-24 07:49:28 +02:00
Joe Guo
562411bd95
PEP8: fix E202: whitespace before ')'
...
Signed-off-by: Joe Guo <joeg@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
2018-08-24 07:49:27 +02:00
Joe Guo
a9551edaee
PEP8: fix E201: whitespace after '('
...
Signed-off-by: Joe Guo <joeg@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
2018-08-24 07:49:27 +02:00
Joe Guo
5d532543ab
PEP8: fix E128: continuation line under-indented for visual indent
...
Signed-off-by: Joe Guo <joeg@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
2018-08-24 07:49:27 +02:00
Joe Guo
bbb9f57603
PEP8: fix E127: continuation line over-indented for visual indent
...
Signed-off-by: Joe Guo <joeg@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
2018-08-24 07:49:26 +02:00
Joe Guo
484ce0634b
PEP8: fix E123: closing bracket does not match indentation of opening bracket's line
...
Signed-off-by: Joe Guo <joeg@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
2018-08-24 07:49:26 +02:00
Douglas Bagnall
3f67fb5e7e
samba-tool dns cleanup_record: add missing verbose/quiet options
...
The code for using them is already there
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
2018-05-31 01:57:16 +02:00
Noel Power
504fca732a
samba_tool: replace xrange -> range
...
Signed-off-by: Noel Power <noel.power@suse.com >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
2018-05-12 21:38:17 +02:00
Douglas Bagnall
a485ac3243
samba-tool: convert 'except X, e' to 'except X as e' for all X
...
This is needed for Python 3 and is compatible with python 2.6
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
2018-02-15 00:18:30 +01:00
Garming Sam
90e74fc15a
samba-tool/dns: Clarify the cleanup subcommand
...
Signed-off-by: Garming Sam <garming@catalyst.net.nz >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
2018-02-08 04:58:10 +01:00
Garming Sam
d82687e77f
remove_dc: Allow remove_dns_references to ignore missing server names
...
Signed-off-by: Garming Sam <garming@catalyst.net.nz >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
2018-02-08 04:58:10 +01:00
Joe Guo
178f86848d
samba-tool: add dns cleanup cmd
...
1. Add new command to cleanup dns records for a dns host name
2. Add test to verify the command is working
Signed-off-by: Joe Guo <joeg@catalyst.net.nz >
Reviewed-by: Garming Sam <garming@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
2018-02-08 04:58:10 +01:00
Gary Lockyer
29b3a2b0d1
samba-tool dns query: Allow '*' in names
...
As DNS wild cards are now supported we need to allow '*' characters in
the domain names.
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Garming Sam <garming@catalyst.net.nz >
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12952
2017-08-15 08:07:10 +02:00
Andrew Bartlett
4aaae038b7
python: Move dnsserver helper functions into samba.dnsserver
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Garming Sam <garming@catalyst.net.nz >
2017-02-23 11:36:21 +01:00
Bob Campbell
2a5d9e61db
python: Use generated WERROR definitions
...
Previously we either defined WERRORs locally or compared them against
strings where we needed to use them.
Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Garming Sam <garming@catalyst.net.nz >
2017-02-14 09:46:23 +01:00
Bob Campbell
30faba750f
samba-tool/dns: remove use of dns_record_match from add and delete
...
Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz >
Reviewed-by: Garming Sam <garming@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
2016-12-12 05:00:18 +01:00
Bob Campbell
464da7dc8d
samba-tool/dns: reword error messages and make error catching specific
...
Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz >
Reviewed-by: Garming Sam <garming@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
2016-12-12 05:00:18 +01:00
Andrew Bartlett
5701b99b5c
samba-tool dns: Trap on conneciton errors and give useful info
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org >
Reviewed-by: Jeremy Allison <jra@samba.org >
2015-10-20 20:22:22 +02:00
Guenter Kukkukk
d5af53c537
samba-tool: Fix the IP output of "samba-tool dns serverinfo <some_server>"
...
Avoid hardcoded IP-strings, use standard python IP functions to format
IPv4 and IPv6 addresses correctly.
I have removed the display of the port number.
MS-DNSP 2.2.3.2.2.1 DNS_ADDR: (from May 15, 2014)
Port Number (2bytes): Senders MUST set this to zero, and receivers MUST ignore
it.
Signed-off-by: Guenter Kukkukk <linux@kukkukk.com >
Reviewed-by: Amitay Isaacs <amitay@gmail.com >
2014-11-26 01:22:05 +01:00
Guenter Kukkukk
4bda589c8e
samba-tool: Fix enum values in dns.py
...
DNS_ZONE_UPDATE_SECURE was used twice, DNS_ZONE_UPDATE_UNSECURE was missing.
Signed-off-by: Guenter Kukkukk <linux@kukkukk.com >
Reviewed-by: Amitay Isaacs <amitay@gmail.com >
2014-11-26 01:22:05 +01:00
Amitay Isaacs
8e7f8a2ab1
netcmd/dns: Catch wildcard patterns when querying for name
...
DNS query should either be '@' to represent entire zone or a fixed string
and not wildcard search pattern.
Signed-off-by: Amitay Isaacs <amitay@gmail.com >
Reviewed-by: Kai Blin <kai@samba.org >
2013-11-30 14:22:57 +11:00
Amitay Isaacs
05578dcdbf
samba-tool/dns: Set secure zone update flag after creating new zone
...
Windows DC ignores the secure update flag while creating new zone. Windows
performs another operation to set the secure update flag.
Signed-off-by: Amitay Isaacs <amitay@gmail.com >
2013-05-30 10:44:13 +10:00
Amitay Isaacs
c22eb103d8
samba-tool/dns: Pass on additional flags when creating zones
...
Windows DCs require additional flags to be set when creating zones.
This fixes bug #9599 .
Signed-off-by: Amitay Isaacs <amitay@gmail.com >
2013-05-30 10:44:11 +10:00
Amitay Isaacs
612fbc18c3
s4-dns: Support update of SOA records
...
Signed-off-by: Amitay Isaacs <amitay@gmail.com >
2013-05-30 10:44:08 +10:00
Amitay Isaacs
5a633dd6bb
s4-dns: Print/Set minimumTTL value in SOA record
...
Signed-off-by: Amitay Isaacs <amitay@gmail.com >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org >
Autobuild-Date(master): Tue May 28 08:47:56 CEST 2013 on sn-devel-104
2013-05-28 08:47:56 +02:00
Amitay Isaacs
8543a7b9b3
samba-tool/dns: Fix a typo in ttl variable name
...
Signed-off-by: Amitay Isaacs <amitay@gmail.com >
Reviewed-by: Jeremy Allison <jra@samba.org >
2013-04-19 12:30:17 -07:00
David Disseldorp
bb7c6a0bd0
netcmd/dns: fix typo
...
Fix provided by Tobias Florek.
Reviewed-by: Andreas Schneider <asn@samba.org >
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org >
Autobuild-Date(master): Thu Apr 18 12:40:33 CEST 2013 on sn-devel-104
2013-04-18 12:40:33 +02:00
Jelmer Vernooij
87afc3aee1
Move python modules from source4/scripting/python/ to python/.
...
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org >
Autobuild-Date(master): Sat Mar 2 03:57:34 CET 2013 on sn-devel-104
2013-03-02 03:57:34 +01:00