1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-09 11:17:03 +03:00

1722 Commits

Author SHA1 Message Date
Jelmer Vernooij
47c62eeb68 upgradehelpers: Simplify transaction handling.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Feb 27 05:25:04 CET 2012 on sn-devel-104
2012-02-27 05:25:04 +01:00
Jelmer Vernooij
8008228b94 samba.xattr: Massively simplify copytree_with_xattrs. 2012-02-27 03:52:05 +01:00
Jelmer Vernooij
f40c9ac7ac samba.xattr: Split copying of tree with extended attributes out into separate module. 2012-02-27 03:52:05 +01:00
Jelmer Vernooij
687e065036 provision: Write configuration without help of templates.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Feb 27 00:52:46 CET 2012 on sn-devel-104
2012-02-27 00:52:46 +01:00
Jelmer Vernooij
852418133e provision: Simplify make_smbconf a bit. 2012-02-26 23:19:07 +01:00
Jelmer Vernooij
3bfccdfbc8 provision: Fix order for error formatting. 2012-02-26 23:19:07 +01:00
Jelmer Vernooij
e27e519bb8 provision: Raise proper error when shares are missing rather than AssertionError. 2012-02-26 23:19:07 +01:00
Jelmer Vernooij
411119db50 provision: Share more code for determine_netbios_name() with samba.valid_netbios_name().
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Feb 26 22:24:42 CET 2012 on sn-devel-104
2012-02-26 22:24:42 +01:00
Jelmer Vernooij
d5485a1e56 provision/backend: Properly close all opened files. 2012-02-26 20:52:05 +01:00
Jelmer Vernooij
6b320d63f3 provision: Properly close opened files. 2012-02-26 20:52:05 +01:00
Jelmer Vernooij
171dc5ad4f provision: Reuse determine_netbios_name. 2012-02-26 20:52:05 +01:00
Jelmer Vernooij
3b738a5914 provision: Add tests for determine_netbios_name. 2012-02-26 20:52:05 +01:00
Jelmer Vernooij
16a4fa9704 provision: Factor out determination of new netbios name. 2012-02-26 20:52:05 +01:00
Jelmer Vernooij
d09764e180 join: Don't print provision results when they're just noise.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Feb 26 17:56:57 CET 2012 on sn-devel-104
2012-02-26 17:56:57 +01:00
Jelmer Vernooij
6664541156 provision: Split out result reporting for backends. 2012-02-26 16:27:06 +01:00
Jelmer Vernooij
eeb5f66d90 provision: Put adminpass details in ProvisionResult. 2012-02-26 16:27:06 +01:00
Jelmer Vernooij
3e6fa054f9 provision/tests: Test for phpldapadminconfig path. 2012-02-26 16:27:06 +01:00
Jelmer Vernooij
21f443eb82 provision: Leave result reporting up to caller. 2012-02-26 16:27:06 +01:00
Jelmer Vernooij
fe3274d9cb provision: Start splitting out provision result reporting from actual provisioning.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Feb 25 22:13:10 CET 2012 on sn-devel-104
2012-02-25 22:13:10 +01:00
Jelmer Vernooij
2fd10469c1 provision: Properly close ldb transactions. 2012-02-25 20:39:05 +01:00
Jelmer Vernooij
9ecc68abe7 'samba-tool gpo': Properly close transaction. 2012-02-25 20:39:05 +01:00
Jelmer Vernooij
08a3d6d6ad ntacl: There is no 'secrets database' configuration option. 2012-02-25 20:39:05 +01:00
Jelmer Vernooij
d06eeb7949 Factor out sanitize_server_role. 2012-02-25 20:39:05 +01:00
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