summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/getopt.py
AgeCommit message (Collapse)AuthorFilesLines
2012-03-13s4-python: Remove env from non-executable samba scripts.Andreas Schneider1-2/+0
2011-10-19samba.getopt: Keep exception message when setting a lp option fails.Jelmer Vernooij1-4/+5
2011-10-19samba-tool: Improve getopt.py error handlingGiampaolo Lauria1-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
2011-10-19samba-tool: Improve getopt.py error handlingGiampaolo Lauria1-1/+5
Throw an exception when the --option value is invalid
2011-10-19samba-tool: Improve getopt.py error handlingGiampaolo Lauria1-2/+1
Throw an exception when --option value is not in the form "a=b"
2011-10-19samba-tool: Improve getopt.py error handlingGiampaolo Lauria1-0/+3
Raise exception when -d or --debuglevel value is <0
2011-10-13samba.getopt: Refactor parsing of --kerberos argument into separate function.Jelmer Vernooij1-13/+16
2011-10-12samba.getopt: Allow --kerberos=auto, and fix exception name if an unknownJelmer Vernooij1-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
2011-09-13s4-s3-upgrade Improve samba-tool domain samba3upgrade behaviourAndrew Bartlett1-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
2011-09-13s4-python: Fix some formatting issues.Jelmer Vernooij1-8/+15
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Sep 13 03:51:13 CEST 2011 on sn-devel-104
2010-12-08samba-tools: more reasonable defaults for samba-tool commandsAndrew Tridgell1-1/+10
- fallback to machine account where possible - default to local hostname where this is reasonable
2010-11-28samba.getopt: Fix missing import of sys.Jelmer Vernooij1-8/+14
2010-11-28s4-samba-tool: fixed "-k no" for disabling kerberos authAndrew Tridgell1-2/+4
The option "-k no" was not correctly disabling kerberos in python programs Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-03s4-getopt.py: Make Anonymous creds when no credentialsKamen Mazdrashki1-2/+7
are supplied on command line and caller doesn't want us to guess credentials from environment
2010-09-25s4-net: added --ipaddress option to net commandsAndrew Tridgell1-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>
2010-06-24s4-python: python is not always in /usr/binAndrew Tridgell1-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>
2010-04-21s4-python: added --realm option to python scriptsAndrew Tridgell1-1/+7
this is needed for net vampire Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-21s4-python: accept --option arguments in python cmdline parsingAndrew Tridgell1-10/+17
also fixed the -d option to use lp.set() which calls lp_set_cmdline() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-09Support --version in python scripts.Jelmer Vernooij1-0/+8
2010-04-08s4-python: rename samba.glue to samba._glue to indicate it's private.Jelmer Vernooij1-2/+2
2010-04-02s4-python: added --debuglevel to our python scriptsAndrew Tridgell1-0/+10
very useful for debugging our cPython extensions, such as dcerpc modules
2010-02-12s4:getopt.py - set the password callback only when no password has been providedMatthias Dieter Wallnöfer1-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.
2010-01-13Comparison tool for LDAP servers (using Ldb)Zahari Zahariev1-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.
2009-12-29Use CommandError exception to deal with problems during net commands.Jelmer Vernooij1-7/+7
2009-07-19Remove unnecessary imports.Jelmer Vernooij1-1/+1
2008-08-01Add helper object Hostconfig to make it easier to get to e.g. theJelmer Vernooij1-0/+4
SAM database. (This used to be commit be75b2a36ee49f66ada3ec3ababa82d74085d559)
2008-05-23Add docstrings to samba3 and getopt modules.Jelmer Vernooij1-0/+15
(This used to be commit bdf1c039db6c184a9f275a6e4bf3786570cc924a)
2008-04-14Also look in the environment for smb.conf path.Jelmer Vernooij1-4/+6
(This used to be commit 8be7d93735a357a3b73a1c4413d6fd9ec09b7555)
2008-03-28Fix and test python scripts and kerberosAndrew Bartlett1-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)
2008-01-24python: Support --no-pass.Jelmer Vernooij1-0/+6
(This used to be commit a90f3e8c420bec7fd7a39e0d5e2df6b32aedcdd5)
2008-01-23python: Add convenience function for getting command line loadparm contextJelmer Vernooij1-2/+18
and default to using system smb.conf. (This used to be commit b3afde0f00ab5093b577b139a062c233d4db2524)
2007-12-29r26629: python: Improve documentation in various places.Jelmer Vernooij1-8/+8
(This used to be commit ee71a27bca66426d34cb1d686a83ac6a342329d3)
2007-12-29r26628: python: Add more documentation, simplify code in Samba3 module.Jelmer Vernooij1-1/+1
(This used to be commit 3c329ee73d9979236313c37e51750ec06b8dd69e)
2007-12-28r26618: Implement -W option support.Jelmer Vernooij1-1/+7
(This used to be commit e48026b17d682c01eb3343ef35f6e847b18fa297)
2007-12-27r26616: Support parsing of user data in SAmba 3 tdbsam.Jelmer Vernooij1-1/+1
(This used to be commit 2f33e0451d6699fed8bc9abfa2f331317502b358)
2007-12-27r26614: Fix options parsing for credentials in Python.Jelmer Vernooij1-6/+18
(This used to be commit 9ef3b7de6baadeb2240ef9d24c55be9dc4cccf1e)
2007-12-21r26088: Import some native-python python modules and move original python ↵Jelmer Vernooij1-0/+46
swig torture code to common python directory as well. (This used to be commit cbf656ff054ab2b0b5ca81e1d4f16ac54c8098f1)