summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/netcmd
Commit message (Collapse)AuthorAgeFilesLines
* Move python modules from source4/scripting/python/ to python/.Jelmer Vernooij2013-03-0222-8512/+0
| | | | | | | 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
* samba-tool/user setpassword: fix help messageStefan Metzmacher2013-02-041-3/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4-dbcheck: Allow forcing an override of an old @MODULES recordAndrew Bartlett2013-01-101-4/+20
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* samba-tool Add --service argument to samba-tool ntacl get/setAndrew Bartlett2013-01-081-6/+10
| | | | | | | | | | | This also ensures a VFS connect is done to the correct service. Andrew Bartlett Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jan 8 03:39:21 CET 2013 on sn-devel-104
* samba-tool processes: Make the output a bit neaterRicky Nance2012-12-081-5/+5
| | | | | | | Reviewed-By: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Sat Dec 8 03:34:29 CET 2012 on sn-devel-104
* s4:samba-tool/gpo: fix the operation order when creating gposStefan Metzmacher2012-12-031-13/+20
| | | | | | | | | | | | | | We should do it like the windows GUI. 1. create the LDAP objects 2. query the security_descriptor of the groupPolicyContainer 3. create the gPCFileSysPath via smb 4. set the security_descriptor of gPCFileSysPath 5. copy the files and directories into gPCFileSysPath 6. modify the groupPolicyContainer and link gPCFileSysPath Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4:samba-tool/gpo: use 'gPCFileSysPath' when deleting gposStefan Metzmacher2012-12-031-4/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4:samba-tool/gpo: use the dns_domain from the server when creating gposStefan Metzmacher2012-12-031-2/+14
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4:netcmd/gpo.py: let get_gpo_info explicitly ask for the full ↵Stefan Metzmacher2012-11-301-2/+4
| | | | | | | ntSecurityDescriptor Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4:netcmd/gpo.py: only ask for OWNER/GROUP/DACL when validating the ↵Stefan Metzmacher2012-11-301-5/+6
| | | | | | | nTSecurityDescriptor Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4:netcmd/gpo.py: the nTSecurityDescriptor may not be visible for the ↵Stefan Metzmacher2012-11-301-3/+7
| | | | | | | current user Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4:netcmd/gpo.py: s/ntSecurityDescriptor/nTSecurityDescriptorStefan Metzmacher2012-11-301-5/+5
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* samba-tool dns: Don't use "localhost" to connect to local hostKai Blin2012-11-161-0/+2
| | | | | | | | | | | | | | Calling "samba-tool dns <cmd> localhost" provokes a stacktrace. This just makes 'samba-tool dns <cmd> localhost' work and doesn't fix the underlying issue, but I don't see it causing any harm (unless you don't have an ipv4 localhost, I guess). Signed-off-by: Kai Blin <kai@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Nov 16 13:18:14 CET 2012 on sn-devel-104
* s4:samba-tool: Fix samba-tool fsmo --role=schemaArvid Requate2012-11-161-1/+1
| | | | | | | | | | | | | | | | | Fix traceback: samba-tool fsmo --role=schema --force ERROR(<type 'exceptions.TypeError'>): uncaught exception - argument 2 must be string, not ldb.Dn File "/usr/lib/python2.6/dist-packages/samba/netcmd/__init__.py", line 168, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.6/dist-packages/samba/netcmd/fsmo.py", line 160, in run self.seize_role(role, samdb, force) File "/usr/lib/python2.6/dist-packages/samba/netcmd/fsmo.py", line 119, in seize_role m.dn = ldb.Dn(samdb, self.schema_dn) Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Nov 16 00:40:24 CET 2012 on sn-devel-104
* samba-tool: Add new samba-tool gpo aclcheck and testAndrew Bartlett2012-11-161-0/+63
| | | | Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
* s4:samba-tool/testparm: report a CommandError if loading of the config file ↵Stefan Metzmacher2012-11-131-1/+4
| | | | | | | | fails Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* samba-tool: Fix typo in --help output.Karolin Seeger2012-11-091-1/+1
| | | | | | | Signed-off-by: Karolin Seeger <kseeger@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Fri Nov 9 11:04:50 CET 2012 on sn-devel-104
* provision: Make dsacl2fsacl() take a security.dom_sid, not strAndrew Bartlett2012-11-061-2/+2
| | | | | | | | Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Nov 6 00:12:43 CET 2012 on sn-devel-104
* samba-tool: "drs options" does not need a samdb connectionAndrew Tridgell2012-11-011-1/+0
| | | | | | this gives us a handy pure RPC client test for use in blackbox testing Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: Add samba-tool processes subcommandAndrew Bartlett2012-10-312-0/+80
| | | | | | | | | | | This will allow administrators to inspect the process list in a similar way to what running on a platform with setproctitle might permit. --pid= returns the registered server names for a PID (eg kdc, cldap_server) --name= returns the pids registered with a particular name. Andrew Bartlett
* samba-tool user: Fix typos, improve messages.Jelmer Vernooij2012-10-181-6/+10
|
* Warn when setting UID/GID without idmap_ldb:use rfc2307 = YesAlexander Wuerstlein2012-10-181-0/+4
| | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Oct 18 09:51:35 CEST 2012 on sn-devel-104
* Set RFC2307 attributes in samba-tool createAlexander Wuerstlein2012-10-181-2/+33
| | | | | | | | | | Optionally set RFC2307 (NIS Schema) attributes in samba-tool create. Mainly needed for UID mapping to be usable. Not all attributes are set-able, only harmless and non-overlapping ones (uid, uidNumber, gidNumber, loginShell, gecos). Description and homeDirectory should already be set, userPassword seems problematic. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* provision: No longer use the wheel group in new AD DomainsAndrew Bartlett2012-10-181-4/+1
| | | | | | | | | | | The issue here is that if we set S-1-5-32-544 (administrators) to a GID only, then users cannot force a mandetory profile to be owned by administrators (which is a requirement). There is no particularly useful reason for us to enforce this matching a system group. Andrew Bartlett
* samba-tool: Some more unifications...Karolin Seeger2012-10-0915-15/+15
| | | | | | in the usage message. Karolin
* s4:samba-tool: allow 'samba-tool --version'Stefan Metzmacher2012-10-081-0/+6
| | | | metze
* s4:samba-tool: use normal option parsing in SuperCommandStefan Metzmacher2012-10-081-10/+13
| | | | | | We use the epilog to print the subcommands. metze
* s4:samba-tool: add optional epilog to _create_parser()Stefan Metzmacher2012-10-081-2/+7
| | | | metze
* samba-tool: Unify usage messages.Karolin Seeger2012-10-0813-60/+60
| | | | | | | Karolin Autobuild-User(master): Karolin Seeger <kseeger@samba.org> Autobuild-Date(master): Mon Oct 8 14:26:52 CEST 2012 on sn-devel-104
* samba-tool: Clarify usage of --help.Karolin Seeger2012-10-081-1/+1
| | | | Karolin
* samba-tool: Fix typo in usage.Karolin Seeger2012-10-081-1/+1
| | | | Karolin
* s4-provision: do not skip setting the acls on sysvolMatthieu Patou2012-10-031-1/+1
| | | | | Autobuild-User(master): Matthieu Patou <mat@samba.org> Autobuild-Date(master): Wed Oct 3 10:26:06 CEST 2012 on sn-devel-104
* s4-python: Various formatting fixes.Jelmer Vernooij2012-09-278-38/+35
| | | | | | * Trailing whitespace * use of "==" where "is" should be used * double spaces
* samba-tool domain provision: DNS forwarder defaultRicky Nance2012-09-271-0/+2
| | | | | | | | | Provision would break with an exception if there was no value given for the DNS forwarder, this simply sets a default to "none". Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Thu Sep 27 04:35:33 CEST 2012 on sn-devel-104
* samba-tool: Hide 'samba-tool domain samba3upgrade'.Jelmer Vernooij2012-09-262-12/+25
| | | | | | | | This subcommand is provided for backwards compatibility only; new use of it should be discouraged. Its new name is 'samba-tool domain classicupgrade'. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9047
* samba-tool domain provision: DNS forwarder is not a boolean.Jelmer Vernooij2012-09-251-3/+3
| | | | | Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Tue Sep 25 00:48:43 CEST 2012 on sn-devel-104
* replace: Support setproctitle().Jelmer Vernooij2012-09-241-2/+2
| | | | | This uses the setproctitle() from libc, libsetproctitle or libbsd. If none is available it provides a dummy implementation.
* samba-tool domain-provision: Avoid python2.5-isms.Jelmer Vernooij2012-09-241-1/+4
|
* samba-tool domain-provision: Fix docstring.Jelmer Vernooij2012-09-241-2/+2
|
* Correct command help messageDaniele Dario2012-09-201-1/+1
| | | | | Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Thu Sep 20 16:55:17 CEST 2012 on sn-devel-104
* samba.netcmd: Formatting fixes, break lines.Jelmer Vernooij2012-09-168-194/+209
|
* s4 provision: Ask for the dns forwarder IP address during interactive provisionKai Blin2012-09-121-9/+46
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4 dns: use the internal DNS server per defaultKai Blin2012-09-121-13/+13
|
* s4:samba-tool: add 'samba-tool domain provision'Stefan Metzmacher2012-09-111-1/+264
| | | | | | This is mostly a copy of the standalone source4/setup/provision. metze
* s4:python/netcmd: give the Commad implementations access to the raw argumentsStefan Metzmacher2012-09-111-0/+8
| | | | metze
* s4:samba-tool: remove unused code in testparm.pyStefan Metzmacher2012-09-111-5/+0
| | | | metze
* samba_tool: Improve samba-tool ntacl get/set to use the local sam.ldb SIDAndrew Bartlett2012-09-051-19/+53
| | | | | | | | | This gets the SID for the local machine correctly. We also add options for --use-ntvfs and --use-s3fs to help control exactly which database is being read and written. Andrew Bartlett
* samba_tool: Fix ntacl get to correctly output in sddlAndrew Bartlett2012-09-051-3/+3
|
* s3-passdb: Rename pdb_samba4 to samba_dsdb and autoconfigure when we are a AD DCAndrew Bartlett2012-09-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | The name samba_dsdb is not ideal, but it matches the primary ldb module we use, and more importantly it avoids having '4' in the name. We should slowly avoid using the term samba4 in long-term places like the smb.conf because it is confusing to users given we are shipping Samba 4.0 as an AD DC as well as all the other supported roles (domain member/standalone server/classic DC) Additionally, samba4 will be an odd name when we eventually release Samba 5.0! samba4 remains accepted as an alias to ensure existing smb.conf files load, but to allow changes here in the future, we set the value during the smb.conf load, and not during the provision when we are an AD DC. This simplifies the default smb.conf for the vast majority of our users and reduces the number of things listed in smb.conf files that we later have to work around if we wish to change the name/implementation of the passdb glue module again. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Sep 4 04:45:16 CEST 2012 on sn-devel-104
* s4-samba-tool: Add samba-tool ntacl sysvolcheck commandAndrew Bartlett2012-08-231-0/+34
| | | | | | | | | This command verifies that the current on-disk ACLs match the directory and the defaults from provision. Unlike sysvolreset, this does not change any of the permissions. Andrew Bartlett