1
0
mirror of https://github.com/samba-team/samba.git synced 2025-04-29 14:50:26 +03:00

1699 Commits

Author SHA1 Message Date
Jelmer Vernooij
66f13ea1e9 Partially revert 1f0298dd1b1a939cb215e7b474178b217f8347f4
It's fine to catch keyboard interrupts and other kinds of errors when it's done just for resource management, where the error is reraised later.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Feb 25 17:29:34 CET 2012 on sn-devel-104
2012-02-25 17:29:34 +01:00
Jelmer Vernooij
f5d706b0ee provision: Remove unused imports. 2012-02-25 15:58:07 +01:00
Andrew Bartlett
c623b4bbb8 s4-provision: Fix typo in 9b9fdeefb47f2657c9bb4c2f48318550da510209
This was not found to to a bug in the selftest system.

Andrew Bartlett
2012-02-23 19:19:54 +11:00
Amitay Isaacs
6daf04eb6e s4-provision: dns: Add txt DNS record 2012-02-21 23:08:35 +11:00
Amitay Isaacs
597449235e s4-provision: dns: Do not re-calculate ntdsguid, use from names 2012-02-21 23:08:35 +11:00
Amitay Isaacs
9b9fdeefb4 s4-provision: dns: Refactor population of dns data code
Code is split in 4 functions
 - create_dns_legacy
 - fill_dns_data_legacy
 - create_dns_partitions
 - fill_dns_data_partitions

This is useful to upgrade dns provision from file based DNS backend
to AD based DNS backend.
2012-02-21 23:08:35 +11:00
Amitay Isaacs
4bba5fcecd samba-tool: dns: Update the copyright
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Feb 21 09:55:07 CET 2012 on sn-devel-104
2012-02-21 09:55:07 +01:00
Amitay Isaacs
61d4d74145 samba-tool: dns: Fix the output display of DNS records 2012-02-21 18:24:30 +11:00
Amitay Isaacs
b45d6a6d69 samba-tool: dns: Add extra references for string objects as workaround
This is a workaround for bug in pidl generated python bindings, where
C object hold a pointer to python string without increasing reference
count in python. So when the python string goes out of scope, the
C pointer loses the value.
2012-02-21 18:24:30 +11:00
Amitay Isaacs
a8a6b27e06 samba-tool: dns: Add support to add/update/delete MX and SRV records 2012-02-21 18:24:30 +11:00
Amitay Isaacs
28b12827b6 samba-tool: dns: Convert dns data into a dns record for comparison
and compare two dns records directly. Refactor dns name comparision
as dns_name_equal().
2012-02-21 18:24:30 +11:00
Amitay Isaacs
4272a76075 samba-tool: dns: Convert dns data in a string to DNS record 2012-02-21 18:24:30 +11:00
Amitay Isaacs
1fc2fb5de1 samba-tool: dns: Add MXRecord type to add/update mx records 2012-02-21 18:24:30 +11:00
Jelmer Vernooij
a977de9fdf s4-python: Various formatting fixes. 2012-02-18 23:59:48 +01:00
Jelmer Vernooij
c29e0258e0 samba.web_server: Fix use of whitespace. 2012-02-18 23:54:38 +01:00
Matthias Dieter Wallnöfer
fa89f2756f s4:samba-tool fsmo * - fix missing "takes_optiongroups"
This has been reported in bug #8755.

Reviewed-by: Jelmer
2012-02-17 21:36:56 +01:00
Michael Adam
8ca39dfbe1 s4:provision: only print the adminpass if it was generated (not user-provided) 2012-02-16 12:07:50 +01:00
Michael Adam
09b865b2f0 s4:provision: generate the adminpass provision() instead of provision_fill()
so that the adminpass can be logged at the end
(otherwise we get "None")
2012-02-16 12:07:49 +01:00
Michael Adam
32cf164d99 s4:provision: don't log the ldap admin password - it is internal only 2012-02-16 12:07:49 +01:00
Björn Baumbach
ea27879dd0 s4-scripting: samba-tool: Fix domain info usage message
Signed-off-by: Michael Adam <obnox@samba.org>
2012-02-16 12:07:32 +01:00
Matthias Dieter Wallnöfer
05f9495ff3 s4:join python code - "msDS-KeyVersionNumber" does not exist on Win2k
No problem since "secretsdb_self_join()" then chooses 1 as a default
value.
Fix case sensitivity for "msDS-KeyVersionNumber".

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-02-13 09:49:20 +11:00
Jelmer Vernooij
209d3c0b71 tests/source: Add wafsamba/ files to list of Python files to check.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Feb 10 01:45:16 CET 2012 on sn-devel-104
2012-02-10 01:45:16 +01:00
Matthias Dieter Wallnöfer
fa1c71382d s4:join python code - perform a fallback password set operation over libnet
Windows 2000 DCs allow LDAP password set operations only with the help of SSL.
Given the fact that this technique is hard to setup it is easier to use SAMR
over "libnet".

Reviewed-By: Andrew Bartlett <abartlet@samba.org>
2012-02-09 00:27:08 +01:00
Matthias Dieter Wallnöfer
36e5526685 s4:join python code - write the SAM account name correctly
It is easier for the comprehension

Reviewed-By: Andrew Bartlett <abartlet@samba.org>
2012-02-09 00:27:08 +01:00
Amitay Isaacs
f8ef240831 samba-tool sites: Re-add support for option groups
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Feb  8 02:27:28 CET 2012 on sn-devel-104
2012-02-08 02:27:28 +01:00
Amitay Isaacs
8613bc7ea1 samba-tool dns: Re-add support for option groups 2012-02-08 10:49:48 +11:00
Jelmer Vernooij
f2903e0c4f provision: Make sure target directory is created early.
This is necessary when using the target directory to store temporary
files.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Feb  7 02:45:37 CET 2012 on sn-devel-104
2012-02-07 02:45:36 +01:00
Jelmer Vernooij
8dca1a0222 samba-tool user password: Re-add support for option groups. 2012-02-07 01:11:08 +01:00
Jelmer Vernooij
7c8476b434 samba-tool: Add optiongroups, necessary for 'samba-tool domain ...' 2012-02-07 01:11:08 +01:00
Jelmer Vernooij
a0ff4c349c Revert "samba-tool: moved takes_optiongroups definition to Command base class"
This reverts commit f6fa8684896b8f3f9f8b7bd3742c99906973274c.

This keeps the main command class fairly slim, and makes it a bit
more obvious where the arguments to run() are coming from.

Conflicts:

	source4/scripting/python/samba/netcmd/__init__.py
	source4/scripting/python/samba/netcmd/domain.py
	source4/scripting/python/samba/netcmd/gpo.py
	source4/scripting/python/samba/netcmd/newuser.py
	source4/scripting/python/samba/netcmd/testparm.py
	source4/scripting/python/samba/netcmd/user.py
	source4/scripting/python/samba/tests/samba_tool/__init__.py
2012-02-07 01:11:08 +01:00
Horacio G. de Oro
fa0c2ab5c5 Use named argument 'dir' instead of 'prefix' on NamedTemporaryFile for domain.py
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2012-02-07 01:11:07 +01:00
Amitay Isaacs
bfa951db97 s4-s3-upgrade: Check if there are duplicate sids for users and groups
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Jan 31 02:23:17 CET 2012 on sn-devel-104
2012-01-31 02:23:17 +01:00
Amitay Isaacs
449ca75759 s4-s3-upgrade: Use lowercase hostname as hostname for provision 2012-01-31 00:49:07 +01:00
Amitay Isaacs
1f0298dd1b python: Change except: statement to except Exception:
This way we only catch true exceptions and keyboard interrupts
are not caught here.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Jan 24 03:32:40 CET 2012 on sn-devel-104
2012-01-24 03:32:40 +01:00
Dave Craft
ab1f896c51 KCC importldif/exportldif and intersite topology
Add options for extracting an LDIF file from a database
and reimporting the LDIF into a schema-less database for
subsequent topology test/debug.  Add intersite topology
generation with computation of ISTG and bridgehead servers

Signed-off-by: Andrew Tridgell <tridge@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Jan 14 07:45:11 CET 2012 on sn-devel-104
2012-01-14 07:45:11 +01:00
Stefan Metzmacher
0f14ac40a2 s4:pygensec/tests: add test for gensec_set_max_update_size()
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jan 12 14:47:05 CET 2012 on sn-devel-104
2012-01-12 14:47:05 +01:00
Amitay Isaacs
6764e4f20d samba-tool:dns: DNS names are case insensitive
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Thu Jan 12 06:43:01 CET 2012 on sn-devel-104
2012-01-12 06:43:01 +01:00
Michael Adam
803dc389d1 s4:provision: add "+dns" to server services if the dns backend is SAMBA_INTERNAL
Signed-off-by: Kai Blin <kai@samba.org>

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Tue Jan 10 21:17:45 CET 2012 on sn-devel-104
2012-01-10 21:17:45 +01:00
Michael Adam
f489c681ea s4:provision: add the possibility to provision "server services" in smb.conf
Signed-off-by: Kai Blin <kai@samba.org>
2012-01-10 19:19:21 +01:00
Michael Adam
a876d519fe s4:provision: improve a message
Signed-off-by: Kai Blin <kai@samba.org>
2012-01-10 19:19:06 +01:00
Matthias Dieter Wallnöfer
354e43ca1e s4:python tests __init__.py - do not depend on "subprocess.check_call()"
Method not present in Python 2.4

Reviewed-by: Jelmer

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Jan 10 00:41:59 CET 2012 on sn-devel-104
2012-01-10 00:41:59 +01:00
Matthias Dieter Wallnöfer
a43b472b62 s4:python tests __init__.py - do not depend on "subprocess.CalledProcessError"
The class is not present in Python 2.4

Reviewed-by: Jelmer
2012-01-09 23:08:36 +01:00
Stefan Metzmacher
507e75ebb9 s4:python/samba/ndr.py: add an optional 'allow_remaining' to ndr_unpack()
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Jan  9 10:28:30 CET 2012 on sn-devel-104
2012-01-09 10:28:30 +01:00
Amitay Isaacs
200c22b994 samba-tool:dns: Check through all the DNS records for a match
There can be multiple dns records for a specified record type.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Fri Jan  6 02:41:22 CET 2012 on sn-devel-104
2012-01-06 02:41:22 +01:00
Stefan Metzmacher
9465b9ce6f s4:pygensec/tests: check that the client and server have the same session key
metze
2012-01-04 20:55:05 +01:00
Amitay Isaacs
90f06d69f0 s4-provision: Fix the problem of DnsProperty values not being set correctly
DnsProperty can have empty 'data' member. To parse Dnsproperty with
empty data, dnsp.idl has a hack as follows:

  [switch_is(wDataLength?id:DSPROPERTY_ZONE_EMPTY)] dnsPropertyData data;

This implies, to set 'data' value, wDataLength has to be set to a non-zero
value first.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Jan  3 05:26:32 CET 2012 on sn-devel-104
2012-01-03 05:26:32 +01:00
Andreas Schneider
79f9a2240e s4-provision: Fix tdbdump path lookup in make test.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-02 19:10:04 +01:00
Andrew Bartlett
502140a6ff s4-gensec: Pass the auth context in during gensec test 2011-12-29 14:01:55 +11:00
Amitay Isaacs
809092a7ad test:dnsserver: Add zone creation and deletion test 2011-12-23 16:18:26 +11:00
Amitay Isaacs
8a7cdfcccd samba-tool:dns: Fix a typo 2011-12-23 16:18:26 +11:00