1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-09 20:59:11 +03:00
Commit Graph

27 Commits

Author SHA1 Message Date
545932fda5 samba-tools: more reasonable defaults for samba-tool commands
- fallback to machine account where possible

- default to local hostname where this is reasonable
2010-12-08 05:26:05 +01:00
979d298b0d samba.getopt: Fix missing import of sys. 2010-11-28 17:23:27 +01:00
af93f227ad s4-samba-tool: fixed "-k no" for disabling kerberos auth
The option "-k no" was not correctly disabling kerberos in python
programs

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-28 00:16:37 +11:00
da0f3bd229 s4-getopt.py: Make Anonymous creds when no credentials
are supplied on command line and caller doesn't want us
to guess credentials from environment
2010-10-03 01:24:57 +03:00
c53210bf06 s4-net: added --ipaddress option to net commands
this allows override of server IP address, bypassing NBT or DNS name
resolution of DCs

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2010-09-25 10:38:45 -07:00
4cb423f527 s4-python: python is not always in /usr/bin
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-06-24 18:46:57 +10:00
1a68311d41 s4-python: added --realm option to python scripts
this is needed for net vampire

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-21 13:35:56 +10:00
024b53755c s4-python: accept --option arguments in python cmdline parsing
also fixed the -d option to use lp.set() which calls lp_set_cmdline()

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-21 13:35:56 +10:00
ececb73262 Support --version in python scripts. 2010-04-09 11:53:00 +02:00
a35d876537 s4-python: rename samba.glue to samba._glue to indicate it's private. 2010-04-08 23:20:36 +02:00
23f2db7ab6 s4-python: added --debuglevel to our python scripts
very useful for debugging our cPython extensions, such as dcerpc
modules
2010-04-02 18:52:29 +11:00
de555895e5 s4:getopt.py - set the password callback only when no password has been provided
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-02-12 15:04:07 +01:00
5d1aa4c5b7 Comparison tool for LDAP servers (using Ldb)
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.
2010-01-13 12:06:17 +02:00
732a7630e9 Use CommandError exception to deal with problems during net commands. 2009-12-29 16:26:19 +01:00
478446f96d Remove unnecessary imports. 2009-07-19 18:51:15 +02:00
47124efe42 Add helper object Hostconfig to make it easier to get to e.g. the
SAM database.
(This used to be commit be75b2a36e)
2008-08-01 21:12:37 +02:00
c159d1221b Add docstrings to samba3 and getopt modules.
(This used to be commit bdf1c039db)
2008-05-23 00:38:11 +02:00
c1d9167fbc Also look in the environment for smb.conf path.
(This used to be commit 8be7d93735)
2008-04-14 19:01:32 +02:00
142fbfb3c1 Fix and test python scripts and kerberos
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 727ef40c2b)
2008-03-28 21:57:15 +11:00
4277181453 python: Support --no-pass.
(This used to be commit a90f3e8c42)
2008-01-24 01:05:57 +01:00
decdf5954d python: Add convenience function for getting command line loadparm context
and default to using system smb.conf.
(This used to be commit b3afde0f00)
2008-01-23 23:38:57 +01:00
2bd4bf6a1b r26629: python: Improve documentation in various places.
(This used to be commit ee71a27bca)
2007-12-29 12:21:04 -06:00
6817c5d885 r26628: python: Add more documentation, simplify code in Samba3 module.
(This used to be commit 3c329ee73d)
2007-12-29 12:21:04 -06:00
77c825f08b r26618: Implement -W option support.
(This used to be commit e48026b17d)
2007-12-28 09:42:01 -06:00
8ad2a035e3 r26616: Support parsing of user data in SAmba 3 tdbsam.
(This used to be commit 2f33e0451d)
2007-12-27 17:36:06 -06:00
094f364fe1 r26614: Fix options parsing for credentials in Python.
(This used to be commit 9ef3b7de6b)
2007-12-27 17:36:05 -06:00
39adc2418a r26088: Import some native-python python modules and move original python swig torture code to common python directory as well.
(This used to be commit cbf656ff05)
2007-12-21 05:45:59 +01:00