summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/getopt.py
Commit message (Collapse)AuthorAgeFilesLines
* Move python modules from source4/scripting/python/ to python/.Jelmer Vernooij2013-03-021-251/+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
* s4:scripting/python: add '-V' as alias for '--version'Stefan Metzmacher2012-10-081-1/+1
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Oct 8 17:52:52 CEST 2012 on sn-devel-104
* s4-python: Remove env from non-executable samba scripts.Andreas Schneider2012-03-131-2/+0
|
* samba.getopt: Keep exception message when setting a lp option fails.Jelmer Vernooij2011-10-191-4/+5
|
* samba-tool: Improve getopt.py error handlingGiampaolo Lauria2011-10-191-4/+5
| | | | | | Modified code to handle -k and --kerberos options to: 1. Throw the correct exception 2. On error, display the correct user's specified option
* samba-tool: Improve getopt.py error handlingGiampaolo Lauria2011-10-191-1/+5
| | | | Throw an exception when the --option value is invalid
* samba-tool: Improve getopt.py error handlingGiampaolo Lauria2011-10-191-2/+1
| | | | Throw an exception when --option value is not in the form "a=b"
* samba-tool: Improve getopt.py error handlingGiampaolo Lauria2011-10-191-0/+3
| | | | Raise exception when -d or --debuglevel value is <0
* samba.getopt: Refactor parsing of --kerberos argument into separate function.Jelmer Vernooij2011-10-131-13/+16
|
* samba.getopt: Allow --kerberos=auto, and fix exception name if an unknownJelmer Vernooij2011-10-121-1/+4
| | | | | | | value is specified. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Oct 12 02:12:21 CEST 2011 on sn-devel-104
* s4-s3-upgrade Improve samba-tool domain samba3upgrade behaviourAndrew Bartlett2011-09-131-0/+2
| | | | | | | | | | | | | The --realm argument is again optional (the previous code would take the default from the default smb.conf, not the one specified) and --targetdir is now a named argument much like it is to provision. We now test the --testparm option to ensure it behaves the way we expect. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Sep 13 16:30:31 CEST 2011 on sn-devel-104
* s4-python: Fix some formatting issues.Jelmer Vernooij2011-09-131-8/+15
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Sep 13 03:51:13 CEST 2011 on sn-devel-104
* samba-tools: more reasonable defaults for samba-tool commandsAndrew Tridgell2010-12-081-1/+10
| | | | | | - fallback to machine account where possible - default to local hostname where this is reasonable
* samba.getopt: Fix missing import of sys.Jelmer Vernooij2010-11-281-8/+14
|
* s4-samba-tool: fixed "-k no" for disabling kerberos authAndrew Tridgell2010-11-281-2/+4
| | | | | | | The option "-k no" was not correctly disabling kerberos in python programs Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-getopt.py: Make Anonymous creds when no credentialsKamen Mazdrashki2010-10-031-2/+7
| | | | | are supplied on command line and caller doesn't want us to guess credentials from environment
* s4-net: added --ipaddress option to net commandsAndrew Tridgell2010-09-251-0/+7
| | | | | | | this allows override of server IP address, bypassing NBT or DNS name resolution of DCs Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s4-python: python is not always in /usr/binAndrew Tridgell2010-06-241-1/+1
| | | | | | | | Using "#!/usr/bin/env python" is more portable. It still isn't ideal though, as we should really use the python path found at configure time. We do that in many places already, but some don't. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-python: added --realm option to python scriptsAndrew Tridgell2010-04-211-1/+7
| | | | | | this is needed for net vampire Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-python: accept --option arguments in python cmdline parsingAndrew Tridgell2010-04-211-10/+17
| | | | | | also fixed the -d option to use lp.set() which calls lp_set_cmdline() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* Support --version in python scripts.Jelmer Vernooij2010-04-091-0/+8
|
* s4-python: rename samba.glue to samba._glue to indicate it's private.Jelmer Vernooij2010-04-081-2/+2
|
* s4-python: added --debuglevel to our python scriptsAndrew Tridgell2010-04-021-0/+10
| | | | | very useful for debugging our cPython extensions, such as dcerpc modules
* s4:getopt.py - set the password callback only when no password has been providedMatthias Dieter Wallnöfer2010-02-121-4/+6
| | | | | | | | | | Previously the "no_pass" and "no_pass2" variables weren't handled correctly. Since at the initialisation of the "CredentialsOptions" we don't have any password at all. Only afterwards we could get one through "set_password". If a password is specified, use it. If no password is specified, consider the use fo an input mask on STDOUT. But if the loadparm context contains one prefer it over the input.
* Comparison tool for LDAP servers (using Ldb)Zahari Zahariev2010-01-131-0/+52
| | | | | | | | This tool is integrated with Samba4 Ldb. It provides a useful output where you can find easy differences in objects or attributes within naming context (Domain, Configuration or Schema). Added functionality for two sets of credentials.
* Use CommandError exception to deal with problems during net commands.Jelmer Vernooij2009-12-291-7/+7
|
* Remove unnecessary imports.Jelmer Vernooij2009-07-191-1/+1
|
* Add helper object Hostconfig to make it easier to get to e.g. theJelmer Vernooij2008-08-011-0/+4
| | | | | SAM database. (This used to be commit be75b2a36ee49f66ada3ec3ababa82d74085d559)
* Add docstrings to samba3 and getopt modules.Jelmer Vernooij2008-05-231-0/+15
| | | | (This used to be commit bdf1c039db6c184a9f275a6e4bf3786570cc924a)
* Also look in the environment for smb.conf path.Jelmer Vernooij2008-04-141-4/+6
| | | | (This used to be commit 8be7d93735a357a3b73a1c4413d6fd9ec09b7555)
* Fix and test python scripts and kerberosAndrew Bartlett2008-03-281-3/+12
| | | | | | | | | | | | | | | | | This fixes up the python credentials interface in a number of areas, with the aim of supporting '-k yes' as a command line option. (This enables the use of kerberos). As such, I've had to change the get_credentials call to take a loadparm context, so that the credentials can be initialised correctly. The test_kinit script has been modified to prove that this continues to work, as well as to provide greater code coverage of the kerberos paths. Andrew Bartlett (This used to be commit 727ef40c2b56910028ef3c1092b8eab1bfa6ce63)
* python: Support --no-pass.Jelmer Vernooij2008-01-241-0/+6
| | | | (This used to be commit a90f3e8c420bec7fd7a39e0d5e2df6b32aedcdd5)
* python: Add convenience function for getting command line loadparm contextJelmer Vernooij2008-01-231-2/+18
| | | | | and default to using system smb.conf. (This used to be commit b3afde0f00ab5093b577b139a062c233d4db2524)
* r26629: python: Improve documentation in various places.Jelmer Vernooij2007-12-291-8/+8
| | | | (This used to be commit ee71a27bca66426d34cb1d686a83ac6a342329d3)
* r26628: python: Add more documentation, simplify code in Samba3 module.Jelmer Vernooij2007-12-291-1/+1
| | | | (This used to be commit 3c329ee73d9979236313c37e51750ec06b8dd69e)
* r26618: Implement -W option support.Jelmer Vernooij2007-12-281-1/+7
| | | | (This used to be commit e48026b17d682c01eb3343ef35f6e847b18fa297)
* r26616: Support parsing of user data in SAmba 3 tdbsam.Jelmer Vernooij2007-12-271-1/+1
| | | | (This used to be commit 2f33e0451d6699fed8bc9abfa2f331317502b358)
* r26614: Fix options parsing for credentials in Python.Jelmer Vernooij2007-12-271-6/+18
| | | | (This used to be commit 9ef3b7de6baadeb2240ef9d24c55be9dc4cccf1e)
* r26088: Import some native-python python modules and move original python ↵Jelmer Vernooij2007-12-211-0/+46
swig torture code to common python directory as well. (This used to be commit cbf656ff054ab2b0b5ca81e1d4f16ac54c8098f1)