Andrew Tridgell
011978eb1b
s4-rodc: use python finddc code to avoid the need for --server
...
The DC is now found via DNS/CLDAP
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15 15:39:35 +10:00
Matthias Dieter Wallnöfer
64af772b38
s4:fsmo.py - fix an obvious typo
2010-09-12 19:23:04 +02:00
Stefan Metzmacher
0ad2890c4e
s4:provision: remember the setup directory if it wasn't the default
...
This fixes make test without a make install.
metze
2010-09-10 17:21:31 +02:00
Andrew Tridgell
3d420ea2bb
s4-rodc: cope with missing searchFlags
...
this can be missing after the schema tests
2010-09-09 21:39:25 +10:00
Andrew Tridgell
b9c0b59034
s4-rodc: get the domain name from the partitions DN
...
don't rely on the netbios domain name being the first part of the
realm
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-09 21:39:24 +10:00
Andrew Tridgell
c44bdbc01d
s4-provision: fixed error format string
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-09 21:39:24 +10:00
Andrew Tridgell
54e86d881d
s4-pydsdb: expose samdb_partitions_dn() as get_partitions_dn() in python
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-09 21:39:24 +10:00
Matthieu Patou
49321571ea
upgradeprovision: avoid working with None objects ...
2010-09-05 12:29:21 +04:00
Matthieu Patou
b153558210
upgradeprovision: do not try to remove/change attribute before the RID Set object is present
2010-09-05 12:29:21 +04:00
Matthieu Patou
13d575d6e3
upgradeprovision: cleanup
2010-09-05 12:29:20 +04:00
Matthieu Patou
1d0815281e
s4 upgradeprovision: add dns_update_list if missing
2010-09-05 12:29:20 +04:00
Jelmer Vernooij
0bc53f7d9f
pidl: Keep only a single copy of samba.dcerpc.base.ClientConnection.
2010-09-03 02:39:38 +02:00
Andrew Tridgell
39599e949b
s4-pidl: added a test for all generated rpc interfaces
...
this tries to instantiate all types in all generated python RPC
interfaces, then checks that all attributes can be read, written and
compared.
2010-09-02 13:37:07 +10:00
Andrew Tridgell
9f5dcb2235
s4-net: use CommandError() in net rodc
...
this integrates better with the net command
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-09-02 13:37:07 +10:00
Andrew Bartlett
896553a1a8
s4:provision Allow OpenLDAP backend to provision again
...
OpenLDAP does not have any post-setup requirements at the moment.
Andrew Bartlett
2010-09-02 10:40:34 +10:00
Zahari Zahariev
9aae50443d
s4:provision Improved error handling in provisionbackend
...
When using OpenLDAP as a backend with Samba4 we get failure during
provision and this patch will help better determining the real error.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-09-02 10:40:34 +10:00
Andrew Tridgell
331905216a
s4-devel: added enumprivs developer script
...
this enumerates all LSA privileges on a server
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-26 22:50:20 +10:00
Andrew Tridgell
057a47130d
s4-net: fixed docstring on spn command
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-26 22:50:20 +10:00
Andrew Tridgell
d8f48c7ffc
s4-net: added "net rodc preload" command
...
this command will preload the credentials for an account from the full
domain controller
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-26 22:50:20 +10:00
Andrew Tridgell
da366ba221
s4-drs: split out drs utility python functions
...
these will be re-used by other net commands
2010-08-26 22:50:20 +10:00
Andrew Tridgell
502a5313c4
s4-pyrpc: convert rpc_talloc.py test to unittest framework
...
This fits in better with our test framework
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-08-26 22:50:20 +10:00
Andrew Tridgell
e69b13ccdd
s4-pyrpc: added a test for talloc behaviour in pidl python code
2010-08-25 23:05:05 +10:00
Andrew Tridgell
717ee453dd
s4-pyglue: added talloc_total_blocks() python call
2010-08-25 23:05:05 +10:00
Andrew Tridgell
ba5b3fb248
s4-rodc: removed python memory workaround
...
we can now assign pidl generates structures directly without errors
2010-08-25 23:05:05 +10:00
Andrew Tridgell
9218de4b74
s4-pyglue: pyglue now depends on pytalloc
2010-08-25 23:05:05 +10:00
Andrew Tridgell
956341965c
s4-rodc: setup secrets database at end of RODC join
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-25 23:05:05 +10:00
Andrew Tridgell
5a367f641e
s4-pyglue: added talloc_report_full() and talloc_enable_null_tracking()
...
these are useful for tracking down leaks and bugs in python scripts
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-08-25 23:05:05 +10:00
Andrew Tridgell
64bf637edf
s4-rodc: broke up RODC join into separate functions
...
this also removes some of the magic constants
2010-08-25 08:40:05 +10:00
Andrew Tridgell
e3c0409c7a
s4-rodc: added REPL_SECRET exop replication of accounts
...
During a RODC join, we need to fetch the secrets for the machine
account and krbtgt account using GetNCChanges
DRSUAPI_EXOP_REPL_SECRET calls
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-25 08:40:04 +10:00
Andrew Tridgell
8438da96ba
s4-dsdb: added get_attid_from_lDAPDisplayName() on samdb
...
This can be used to form the partial_attribute_set list for
GetNCChanges
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-25 08:40:04 +10:00
Andrew Tridgell
495bd182f5
s4-rodc: next step in RODC join code
...
a RODC net join can now replicate the schame, config and base
partitions, by calling the net.replicate*() python hooks, and driving
the GetNCChanges calls from python
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-25 08:40:04 +10:00
Andrew Tridgell
85ebc495f6
s4-devel: added a getncchanges developer script
...
this allows for command line access to getncchanges
it also provides a good example of calling DRSUAPI interfaces from
python
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:40 +10:00
Andrew Tridgell
b4a048d763
s4-net: role should be case insensitive for join
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Tridgell
bd7f9813de
s4-net: added initial implemention of RODC join
...
This does the join using python code
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Tridgell
a2cb6ef017
s4-net: moved the net join command to python
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23 15:55:39 +10:00
Andrew Tridgell
10813bdd85
s4-python: added ndr_print() method in ndr
2010-08-23 15:55:39 +10:00
Jelmer Vernooij
8bc58990a4
s4: Only install testparm to /usr/bin/, no longer to /usr/sbin.
2010-08-22 17:12:26 +02:00
Jelmer Vernooij
4ec7dd8deb
s4: Install testparm to /usr/bin, consistent with old behaviour.
2010-08-22 17:03:47 +02:00
Andrew Tridgell
d7d19fdc84
s4-net: better error message on net setpassword
2010-08-22 14:57:34 +10:00
Zahari Zahariev
5c272b8ce7
Remove place-holders when it is single domain
...
This patch changes the behavior of LDAPCmp in a single domain
scenario. No place-holders will be applied during comparison
so replication will be fully tested and even the silightest
difference will pop up.
There is a second smaller fix when we compre hosts in different
domains. This fix disables ${SERVERNAME} paace-holder when there
are more then one serevr (domain controller) in the given domain.
2010-08-20 13:52:08 +03:00
Andrew Tridgell
3d13c9e53a
s4-pysamdb: fixed get_domain_sid()
...
we need to actually return the SID!
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-20 20:34:11 +10:00
Matthieu Patou
4fec72db1c
s4 provision: POLICY_ACL is already an FS acl no need to translate it
2010-08-19 15:59:06 +04:00
Matthieu Patou
6e7d684462
s4 provision: Add some documentation to GPO related functions
2010-08-19 15:59:05 +04:00
Matthieu Patou
ed51bf5f68
s4 upgradeprovision: exit with a non null return code so that it can be trapped in blackbox tests
2010-08-19 15:59:05 +04:00
Matthieu Patou
a5653bcf83
s4 upgradeprovision: add more attrbutes the ignore list
...
Also format in a pretty way the int64 ranges
2010-08-19 15:59:05 +04:00
Matthieu Patou
e378d7fd89
s4 upgradeprovision: Deal with bootstrap indexing attribute to avoid useless reindexing
2010-08-19 15:59:05 +04:00
Matthieu Patou
d79a5cc358
s4 upgradeprovision: Add a function for schema reloading
...
Full schema reloading is needed when we modify exisiting elements that
have attributes that comes from not from the default schema (ie.
openchange schema, user schema ..)
2010-08-19 15:59:04 +04:00
Matthieu Patou
eaf1d050fe
s4 upgradeprovision: upgrade_delta_samdb return a msg_diff of @ATTRIBUTES
...
This is used by upgradeprovision to readd this delta just before loading
a merged schema
2010-08-19 15:59:04 +04:00
Matthieu Patou
3e49b20cf0
s4 upgradeprovision: Fixes for increment_keyversion
...
fix
2010-08-19 15:59:04 +04:00
Matthieu Patou
503824b757
s4 upgradeprovision: fix a typo and pass correct parameter to increment_calculated_keyversion
2010-08-19 15:59:04 +04:00