1
0
mirror of https://github.com/samba-team/samba.git synced 2025-04-28 10:50:25 +03:00

27 Commits

Author SHA1 Message Date
Andrew Tridgell
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
Jelmer Vernooij
979d298b0d samba.getopt: Fix missing import of sys. 2010-11-28 17:23:27 +01:00
Andrew Tridgell
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
Kamen Mazdrashki
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
Andrew Tridgell
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
Andrew Tridgell
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
Andrew Tridgell
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
Andrew Tridgell
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
Jelmer Vernooij
ececb73262 Support --version in python scripts. 2010-04-09 11:53:00 +02:00
Jelmer Vernooij
a35d876537 s4-python: rename samba.glue to samba._glue to indicate it's private. 2010-04-08 23:20:36 +02:00
Andrew Tridgell
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
Matthias Dieter Wallnöfer
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
Zahari Zahariev
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
Jelmer Vernooij
732a7630e9 Use CommandError exception to deal with problems during net commands. 2009-12-29 16:26:19 +01:00
Jelmer Vernooij
478446f96d Remove unnecessary imports. 2009-07-19 18:51:15 +02:00
Jelmer Vernooij
47124efe42 Add helper object Hostconfig to make it easier to get to e.g. the
SAM database.
(This used to be commit be75b2a36ee49f66ada3ec3ababa82d74085d559)
2008-08-01 21:12:37 +02:00
Jelmer Vernooij
c159d1221b Add docstrings to samba3 and getopt modules.
(This used to be commit bdf1c039db6c184a9f275a6e4bf3786570cc924a)
2008-05-23 00:38:11 +02:00
Jelmer Vernooij
c1d9167fbc Also look in the environment for smb.conf path.
(This used to be commit 8be7d93735a357a3b73a1c4413d6fd9ec09b7555)
2008-04-14 19:01:32 +02:00
Andrew Bartlett
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 727ef40c2b56910028ef3c1092b8eab1bfa6ce63)
2008-03-28 21:57:15 +11:00
Jelmer Vernooij
4277181453 python: Support --no-pass.
(This used to be commit a90f3e8c420bec7fd7a39e0d5e2df6b32aedcdd5)
2008-01-24 01:05:57 +01:00
Jelmer Vernooij
decdf5954d python: Add convenience function for getting command line loadparm context
and default to using system smb.conf.
(This used to be commit b3afde0f00ab5093b577b139a062c233d4db2524)
2008-01-23 23:38:57 +01:00
Jelmer Vernooij
2bd4bf6a1b r26629: python: Improve documentation in various places.
(This used to be commit ee71a27bca66426d34cb1d686a83ac6a342329d3)
2007-12-29 12:21:04 -06:00
Jelmer Vernooij
6817c5d885 r26628: python: Add more documentation, simplify code in Samba3 module.
(This used to be commit 3c329ee73d9979236313c37e51750ec06b8dd69e)
2007-12-29 12:21:04 -06:00
Jelmer Vernooij
77c825f08b r26618: Implement -W option support.
(This used to be commit e48026b17d682c01eb3343ef35f6e847b18fa297)
2007-12-28 09:42:01 -06:00
Jelmer Vernooij
8ad2a035e3 r26616: Support parsing of user data in SAmba 3 tdbsam.
(This used to be commit 2f33e0451d6699fed8bc9abfa2f331317502b358)
2007-12-27 17:36:06 -06:00
Jelmer Vernooij
094f364fe1 r26614: Fix options parsing for credentials in Python.
(This used to be commit 9ef3b7de6baadeb2240ef9d24c55be9dc4cccf1e)
2007-12-27 17:36:05 -06:00
Jelmer Vernooij
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 cbf656ff054ab2b0b5ca81e1d4f16ac54c8098f1)
2007-12-21 05:45:59 +01:00