James Peach
3f398ec36d
smbtorture: Refactor interactive shell into independent commands.
...
Refactor the smbtorture interactive shell into a set of independent
command callbacks to make it easier to add more independent commands.
2010-06-21 08:58:10 -07:00
James Peach
9f69790355
smbtorture: Move interactive shell into a separate file.
2010-06-21 08:58:10 -07:00
James Peach
a5e14bded4
smbtorture: Print global options for interactive "list" command.
2010-06-21 08:58:10 -07:00
James Peach
12e15b0ac8
smbtorture: Add history support to shell mode.
2010-06-21 08:58:10 -07:00
James Peach
6f96293406
smbtorture: Add list command to smbtorture shell.
2010-06-21 08:58:10 -07:00
Matthias Dieter Wallnöfer
c38f94ed9b
s4:dsdb_load_partition_usn - free the right memory context (tmp_ctx)
2010-06-21 11:10:02 +02:00
Kamen Mazdrashki
3aa8853f58
s4/dsdb: msg_idx->dn should be allocated in msg_idx mem context
2010-06-21 02:57:56 +03:00
Kamen Mazdrashki
cc7e2c10f2
s4/dsdb: Move schema accessors cleanup in separate function
...
This way dsdb_setup_sorted_accessors() will
free memory allocated for accessor arrays correctly
in case of failure,
2010-06-21 02:57:56 +03:00
Kamen Mazdrashki
267645ca55
s4/dsdb-schema: Index attributes on msDS-IntId value
...
O(n) search for dsdb_attribute by msDS-IntId value was
replaced by binary-search in ordered index.
I've choosen the approach of separate index on msDS-IntId values
as I think it is more clear what we are searching for.
And it should little bit faster as we can clearly determine
in which index to perform the search based on ATTID value -
ATTIDs based on prefixMap and ATTIDs based on msDS-IntId
are in separate ranges.
Other way to implement this index was to merge msDS-IntId values
in attributeID_id index.
This led me to a shorted but not so obvious implementation.
2010-06-21 02:57:55 +03:00
Matthias Dieter Wallnöfer
ecbe9a74c6
s4:kdc/db-glue.c - remove unreachable code
...
Would be nice if someone could check if this fits.
2010-06-20 22:33:03 +02:00
Matthias Dieter Wallnöfer
05f31c3f6d
s4:registry/regf.c - add some casts to suppress build warnings on Solaris
2010-06-20 22:33:02 +02:00
Matthias Dieter Wallnöfer
2adfe47303
s4:registry/rpc.c - fix Solaris warnings by casts
2010-06-20 22:33:02 +02:00
Matthias Dieter Wallnöfer
2f49c8f58e
s4:samr RPC server - fix Solaris build warning
2010-06-20 22:33:01 +02:00
Matthias Dieter Wallnöfer
871cdec414
s4:registry RPC server - quite some build warnings on Solaris
2010-06-20 22:33:01 +02:00
Matthias Dieter Wallnöfer
82fd483758
s4:lsa_lookup.c - fix type argument
2010-06-20 22:33:00 +02:00
Matthias Dieter Wallnöfer
0bf26edf6c
s4:rpc_server/service_rpc.c - fix warnings on Solaris
2010-06-20 22:32:59 +02:00
Matthias Dieter Wallnöfer
c972e6ec23
s4:rpc_server/service_rpc.c - deactivate the 0-length struct
...
This should fix the build on Solaris
2010-06-20 22:32:59 +02:00
Matthias Dieter Wallnöfer
58715dd365
s4:libpolicy - fix printf output specifiers to suppress warning
2010-06-20 20:34:48 +02:00
Matthias Dieter Wallnöfer
26bcbf6e35
s4:libpolicy - Solaris compatibility fix
2010-06-20 20:25:00 +02:00
Matthias Dieter Wallnöfer
91c49c2fb2
s4:ldap.py - test subtree deletes through a new testcase
2010-06-20 18:52:31 +02:00
Matthias Dieter Wallnöfer
449370db54
s4:ldap_backend.c - now also the LDAP server supports controls on delete operations
2010-06-20 18:52:31 +02:00
Matthias Dieter Wallnöfer
9803c89ee2
s4:ldap_backend.c - move function "ldb_mod_req_with_controls" to a better place in the code
...
Under the "add" and over the "delete" function.
2010-06-20 18:52:30 +02:00
Matthias Dieter Wallnöfer
fbd0902958
s4:subtree_delete LDB module - now do support tree delete operations
2010-06-20 18:52:30 +02:00
Matthias Dieter Wallnöfer
87d0f63632
s4:dsdb - add a new dsdb delete function which understands the tree delete control
2010-06-20 18:52:29 +02:00
Matthias Dieter Wallnöfer
ad5e19f29e
ldb:controls - add the "TREE_DELETE" control for allowing subtree deletes
2010-06-20 18:52:29 +02:00
Matthias Dieter Wallnöfer
065579b4c6
ldb:ldb.h - add classifications to the control declarations
...
This makes it easier to understand which standard specifies which control.
2010-06-20 18:52:28 +02:00
Matthias Dieter Wallnöfer
e062e7300b
s4:python LDB __init__.py - remove completely unused "erase_partitions" call
...
Seems to be a relict from the past.
2010-06-20 18:52:28 +02:00
Matthias Dieter Wallnöfer
2fb715b484
s4:samldb LDB module - remove "samldb_set_defaultObjectCategory"
...
As far as I can tell and the test show the DN gets now normalised automatically
when stored into the database.
Anyway, if we find a case where this doesn't happen then I propose to do it
centrally for all DN attributes in common since we should get away from special
attribute hacks as far as possible.
2010-06-20 18:52:27 +02:00
Matthias Dieter Wallnöfer
c8d2c5fff0
s4:ldap_backend.c - add some newlines to make logs easier to read
2010-06-20 18:52:27 +02:00
Matthias Dieter Wallnöfer
d7ad7eed24
ldb:pyldb.c - introduce a "mem_ctx" also on "py_ldb_search"
...
To prevent memory leaks
2010-06-20 18:52:27 +02:00
Matthias Dieter Wallnöfer
00bf608481
ldb:pyldb.c - some cleanups and adequations also in "py_ldb_modify" and "py_ldb_rename"
...
To make them consistent.
2010-06-20 18:52:26 +02:00
Matthias Dieter Wallnöfer
4cc49d365f
s4:ldap_controls.c - remove encoding functions for private recalculate SD control
2010-06-20 18:52:26 +02:00
Jelmer Vernooij
0714e23971
provision: Look for Samba prefix a bit harder.
2010-06-20 17:46:39 +02:00
Stefan Metzmacher
a87561613a
Revert "s4:ldb-samba: fix the build without a system ldb"
...
This reverts commit 44c01a5eb4
.
This caused problems when using a system ldb and as we don't
do ABI checks for ldb-samba4 any more, we don't need this change.
metze
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:42:22 +02:00
Stefan Metzmacher
e812832db3
s4:ldb: only do ABI checking for the standalone build for now
...
Otherwise we fail to build samba4 with a system ldb.
metze
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:42:22 +02:00
Jelmer Vernooij
52307a11e1
libpolicy: Fix the build.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:13 +02:00
Wilco Baan Hofman
e18a172207
Add preliminary support for storing changed Group Policies.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:13 +02:00
Wilco Baan Hofman
04133225c1
Refactor policy filesystem code.
...
* It now uses reusable code to download the GPT.
* It creates a list before copying for better error handling.
* String_replace is now used instead of manually replacing '\\' with '/'
for local paths.
* A security check has been added for file names with "../".
* It adheres to the 80 column rule, if at all possible.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:13 +02:00
Wilco Baan Hofman
b9b85d6b0e
Fix memory allocation with error handling.
...
Also moved pypolicy.c headers around so as not to generate compile warnings
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:13 +02:00
Wilco Baan Hofman
9b5e0fe6bb
Add talloc_frees in error cases in net_gpo.c
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:13 +02:00
Wilco Baan Hofman
c09922cfae
Code cleanups: GUID generation, lp_dnsdomain instead of lp_realm, missing spaces.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
5c2c8dfc5a
Set inherit flag type to bool.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
d61f0240ee
Fix 'magic' numbers to be strlen(something)
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
e86ef688ee
Change talloc_steal to strdup because function might not expect it.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
674d559f37
Add GP ini functions.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
3fe793fce7
Remove iconv convenience in used functions, which were deleted in commit f9ca9e46ad
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
e1f22174e1
Fix net gpo list to use the dsdb with extended DN's. Fixes memberOf group memberships.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
3895b8fbf8
Revert "Add old functionality back which was removed in commit 589a42e2."
...
This reverts commit 94e3b4a0d8b714c101803886d60ae6c484740d2f.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
8f74ee01d9
Add ini parser for GPO's.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
c36bd5de6a
Add net gpo setacl support. Create gp_set_acl function. Show ACL in net gpo show.
...
Cleanup memory allocation of gp_create_gpo
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
5434171296
Fix set GPT security descriptor to match windows' behaviour.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
31aeddfa43
Fix crash when get_gpo_info returns incorrect data.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
299531ce32
Add preliminary NT ACL support for GPT (GPO on filesystem).
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Jelmer Vernooij
60bc5fe0ed
samba4: Add python bindings for samba.policy.get_gplink_options.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Jelmer Vernooij
381e824658
policy: Add samba.policy.get_gpo_flags binding.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
41fae89daf
Add gpo create functionality. Also fix gPLink handling bugs
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
32ee6f8cfd
Fix mode_t in mkdir.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
2941d2ebc3
Finish net gpo fetch function. Reorder arguments to make them more understandable. Rename getgpo to show.
...
This makes the net gpo break for it's samba 3 origins, but makes the syntax more intuitive.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
2b761c3def
Optimize the backslash logic in the path traversal.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
f24f472d44
Fix error in logic, making recursion work past the first level.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
3b11a53304
Add fetch function for GPO which fetches all relevant files from the sysvol share.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
698144851a
Add getinheritance and setinheritance to net gpo util and library.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
a4cb72790c
Implemented delete group policy link function and corresponding feature in net gpo.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
f0353fddde
Changed add_gplink to set_gplink, so we can change gPLink options as well.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:11 +02:00
Wilco Baan Hofman
40d7181507
Add add gPLink function and corresponding net gpo linkadd call.
...
Also added some definitions for future functions in policy.h
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
a1fceac844
Rename files to reflect the libpolicy naming convention. Also fix the GNU make build.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
b025715419
Rename libgpo to lib/policy to avoid confusion with samba3 and add waf build
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
626db5c3b5
Add old functionality back which was removed in commit 589a42e2
.
...
Andrew, please review!
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
08a7bb4abc
Add gpo list function for listing applicable GPO's for users/machines.
...
Implements:
* Hierarchical listing through all parent containers
* security ACL checking on the GPO
* User/computer disabled flags on the GPO
* gPLink disabled
* gPLink enforced
* Block inheritance on the container
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
6478a1edb7
Add gPLink and getgpo functionality to net gpo.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Wilco Baan Hofman
8d5f8f577f
Created net gpo and new libgpo for samba 4. This adds the init function which finds a DC and connects to its LDAP. It also can return information on all group policy objects on a DC.
...
Aborted earlier attempt at reconciliation with samba 3.
Did not work out due to lack of ldb support in samba 3, also the
different registry libraries and different libnet did not help..
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:10 +02:00
Jelmer Vernooij
9e02764f7c
pydsdb: Mark all SamDB and Schema methods that are in pydsdb as
...
private, to discourage them being called directly.
2010-06-20 15:22:49 +02:00
Jelmer Vernooij
7b32f65600
testparm: Check netbios name and workgroup characters and length.
2010-06-20 15:04:42 +02:00
Jelmer Vernooij
5f3d5a3ad8
provision: Properly cancel transactions on the secrets ldb.
2010-06-20 14:24:54 +02:00
Jelmer Vernooij
237ab66f6c
selftest: Use scripted testparm.
2010-06-20 14:14:47 +02:00
Jelmer Vernooij
7a064b9960
pyparam: Support Loadparm.get(p, "global")
2010-06-20 14:14:01 +02:00
Jelmer Vernooij
a2540fb3cb
ldb: Add ABI file for use when including ildap in the build.
2010-06-20 13:54:51 +02:00
Jelmer Vernooij
08a3e8b9f4
testparm: Simplify default option handling.
2010-06-20 13:51:39 +02:00
Jelmer Vernooij
338315f4d7
pyparam: Allow specifying None as section name to LoadparmContext.get()
...
to mean default section.
2010-06-20 13:51:14 +02:00
Jelmer Vernooij
f0ab4503d6
testparm: Fix suppress prompt option.
2010-06-20 13:47:36 +02:00
Jelmer Vernooij
c0e9a41f67
testparm: Fix exit value, install.
2010-06-20 13:41:38 +02:00
Jelmer Vernooij
de3f9e31d3
s4-python: Add LoadparmService.dump()
2010-06-20 13:40:49 +02:00
Jelmer Vernooij
74c66c9a3f
s4-python: Implement LoadParm.dump().
2010-06-20 13:29:35 +02:00
Jelmer Vernooij
f051a8557f
testparm: Split up functions that do multiple things.
2010-06-20 13:22:26 +02:00
Jelmer Vernooij
0a07b8ebfe
testparm: Convert to Python.
2010-06-20 13:16:30 +02:00
Jelmer Vernooij
8f383fc5c8
s4-python: Remove more unused imports, fix use of sets in upgradehelpers.
2010-06-20 13:15:09 +02:00
Jelmer Vernooij
1e35ec43f2
setnttoken: Remove empty utility.
2010-06-20 12:19:08 +02:00
Jelmer Vernooij
3795358aca
Use standard Python syntax, booleans and set()'s where appropriate.
2010-06-20 12:06:50 +02:00
Jelmer Vernooij
66e27e5214
Remove unnecessary use of transactions.
2010-06-20 11:59:49 +02:00
Jelmer Vernooij
9bcd0daba2
ldb: Change LDBSAMBA back to subsystem, update comments, use different
...
ABI file based on whether ldb_ildap is included.
2010-06-20 11:49:08 +02:00
Stefan Metzmacher
44c01a5eb4
s4:ldb-samba: fix the build without a system ldb
...
metze
2010-06-20 11:33:43 +02:00
Jelmer Vernooij
1f07f53827
ldb: Remove last import of dsdb.
2010-06-20 02:46:57 +02:00
Jelmer Vernooij
94e06fe203
Some more formatting fixes, move schema related functions from Ldb to Schema.
2010-06-20 02:46:57 +02:00
Jelmer Vernooij
d3d7ff66d4
Move convert_to_openldap onto Schema class.
2010-06-20 02:46:56 +02:00
Jelmer Vernooij
afad634207
Formatting cleanups; use True/False for booleans, unnecessary backslashes, spacing.
2010-06-20 01:57:11 +02:00
Jelmer Vernooij
a5e8ef884b
Move a few more samdb-specific methods to SamDB, away from Ldb.
2010-06-20 01:37:06 +02:00
Jelmer Vernooij
1d86414eb0
samdb: Fix formatting, move get_oid_from_attid from Ldb to SamDB.
2010-06-20 01:30:51 +02:00
Jelmer Vernooij
b48182007c
s4-python: Remove trivial function, replace by dictionary.
2010-06-20 01:30:51 +02:00
Lukasz Zalewski
e55c012acc
make test modules for net group set of commands and modification to the newuser to include additional parameters
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 01:29:03 +02:00
Lukasz Zalewski
214133fbec
Modifications extending functionality of newuser cmd and new net group set of commands for group related operations on ldb
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 01:29:03 +02:00
Lukasz Zalewski
c58c0c2129
Modifications extending functionality of newuser cmd and new net group set of commands for group related operations on ldb
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 01:29:03 +02:00
Matthieu Patou
38a26f79ea
s4 upgradeprovision: Make grouped commit / rollback more resistant to unexpected problems
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:09 +02:00
Matthieu Patou
c4f7b0e5f6
s4 upgradeprovision: Check that the policy for DC is present if not warn the user
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:09 +02:00
Matthieu Patou
aea0003d08
s4 upgradeprovision: Emit message instead of crashing when not able to set acl
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:09 +02:00
Matthieu Patou
17af115de5
s4 upgradeprovision: add an option to force the rebuilding of FS ACLs on sysvols share
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:09 +02:00
Matthieu Patou
59f17f9e64
s4 unittests: add unit tests for upgradehelpers
...
The functions tested are:
* construct_existor_expr
* search_constructed_attrs_stored
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:09 +02:00
Matthieu Patou
75389cecdd
s4 upgradeprovision: Add function for searching stored constructed attributes
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
f3e7d0ae8f
s4: Using control bypassoperational allow the logic of this module to be bypassed for some given attributes
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
3ebe560622
ldb: add a new control bypassioperationnal
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
9c5f0ed729
s4 upgradeprovision: additional restyling
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
423f99172e
s4 upgradeprovision: Restyle imports
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
fbeacc1013
s4 upgradeprovision: Move functions to helpers and improve code
...
Among code improvement the most significant part is that we now
compare DN object instead of their string representation. It allow
to better react to case an white space difference.
Some new move objects have been added (ie. System into well known
security principals).
This will allow more unittesting
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
8ff65b0136
s4 python: Update unit tests related to create secrets
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
9c808c47fc
s4: Add comments about setup_secrets
...
Comments are to inform people that this function should not handle
transaction within the function as it is mainly used in provision and
that we want to commit secrets only if all the action on secrets have
worked.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
84342b1c7f
s4 upgradeprovision: Add documentation on the update process
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
a466e0d61a
s4 python: Add unit tests for upgradeprovision related stuff
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
ad55248958
s4 upgradeprovision: move some functions to upgradehelpers for unit tests
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
0537de17c1
s4 upgradeprovision: Fix style
...
reformat *_update_samdb functions
fix_partition_sd
rebuild_sd
update_samdb
update_privilege
update_machine_account_password
update_gpo
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
b624440a0f
s4 upgradeprovision: Use replPropertyMetaData for better guess
...
Rework upgradeprovision in order to get more precise updates when doing upgrade provision.
This is done through the use of replPropertyMetaData information and raw information revealed by the
"reveal" control.
The code has been changed also to avoid double free error when changing the schema (for old provision).
Checking of SD is done a bit more cleverly as we compare the different parts for an ACL separately.
Fix logic when upgrading provision without replPropertyMetaData infos
Also for old provision (pre alpha9) do not copy the usn range because data here will be wrong
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
dd963ddb4e
s4 upgradeprovision: Reformat attributes lists and reformat parser
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Matthieu Patou
60400a7803
s4 upgradeprovision: Inform about new dns dynamic update if the provision didn't have it
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:07 +02:00
Matthieu Patou
26ccc3f440
s4 upgradeprovision: fix style
...
add_deletedobj_containers
add missing objects
clean add-mising
handle special add + dump denied
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:07 +02:00
Matthieu Patou
0ff46ec557
s4 upgrade provision: Refactor code to do all the modification within 1 transaction
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:07 +02:00
Matthieu Patou
ec90b1b40e
s4 upgrade provision: Fix style in gen_dn_index
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:07 +02:00
Matthieu Patou
50072e27fe
s4 Add functions related to ldb manipulation when doing upgrade
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:07 +02:00
Matthieu Patou
e2df3c2510
s4 provision: Add information about provisioned usn range in sam.ldb
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:07 +02:00
Jelmer Vernooij
c92db7b6dc
python: Use samba.tests.TestCase, make sure base class tearDown and
...
setUp methods are called, fix formatting.
2010-06-19 22:46:45 +02:00
Jelmer Vernooij
105ebb3440
acl: Clean up formatting, use samba.tests.TestCase.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
5060367bf9
pyrpc: Fix reference counting when using secondary connections.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
50429fb750
samba.tests.samba3: Clean up imports, use new TestCase class.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
f57b26b6f4
ntacls: Raise TestSkipped rather than writing to stdout.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
96f120e234
python/passwords: Clean up imports.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
026a4d85a1
samba.tests: Provide TestCase and TestSkipped classes (from testtools) for convenience.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
2b7b69544c
dsdb_schema_info: Clean up imports, avoid using rpc test case for
...
non-RPC tests.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
c2cb0a710b
python: Remove unnecessary Ldb.set_invocation_id - use SamDB.set_invocation_id instead.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
827ce7b0a3
pyglue: Trim dependencies.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
27d82685da
pyglue: Remove unused code.
2010-06-19 22:46:44 +02:00
Jelmer Vernooij
74309eb29c
pydsdb: Move write_prefixes_from_schema_to_ldb to pydsdb from pyglue.
2010-06-19 22:46:43 +02:00
Jelmer Vernooij
a4f60ffe4b
pydsdb: Move dsdb_set_schema_from_ldb to pydsdb.
2010-06-19 22:46:43 +02:00
Jelmer Vernooij
05b108a06b
pydsdb: Move set_schema_from_ldif function to pydsdb from pyglue.
2010-06-19 22:46:43 +02:00
Stefan Metzmacher
cadca1f6ba
s4:provision: don't use hardcoded 'Default-First-Site-Name'
...
metze
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2010-06-19 21:32:43 +02:00
Matthias Dieter Wallnöfer
131be8da0f
s4:instancetype LDB module - "instanceType" is single-valued - MS-ADTS 3.1.1.5.2.2
2010-06-19 19:37:47 +02:00
Matthias Dieter Wallnöfer
3055ead4cf
s4:torture/ldap/basic.c - add more error code/messages tests
...
And now we do match at least the LDAP error code (the WERROR one does still
differ from Windows - we will see how to change that).
2010-06-19 17:53:24 +02:00
Matthias Dieter Wallnöfer
7cbe3035d9
s4:ldap_backend.c - more customisations to match Windows Server error behaviour on renames
2010-06-19 17:53:23 +02:00
Matthias Dieter Wallnöfer
e315aceda3
ldb:ldb_dn.c - don't support "ldb_dn_add_child" on a "" parent DN
...
It's meaningless and could end in DNs as "cn=child,".
2010-06-19 17:53:23 +02:00
Matthias Dieter Wallnöfer
bce8017ca9
s4:python/samba/__init__.py - now specify the "relax" control for the delete operation before the provision
2010-06-19 17:53:22 +02:00
Matthias Dieter Wallnöfer
c0538a006d
ldb:api.py - add a small test for the enhanced "py_ldb_delete" syntax
2010-06-19 17:53:21 +02:00
Matthias Dieter Wallnöfer
ca34ffaaac
ldb:python bindings - some small cleanup & improvements in "py_ldb_add"
...
Also to make it similar to "py_ldb_delete".
2010-06-19 17:53:21 +02:00
Matthias Dieter Wallnöfer
2aeea4bb4d
ldb:python bindings - let also "py_ldb_delete" support controls
2010-06-19 17:53:20 +02:00
Matthias Dieter Wallnöfer
d16697df49
s4:objectclass LDB module - disable delete operations when "SYSTEM_FLAG_DISALLOW_DELETE" is specified
2010-06-19 17:53:19 +02:00
Matthias Dieter Wallnöfer
46bcf883bf
s4:rootdse LDB module - strip trailing whitespaces
2010-06-19 17:53:18 +02:00
Matthias Dieter Wallnöfer
7f46a91e77
s4:rootdse LDB module - protect add and delete operations on the rootdse entry
2010-06-19 17:53:18 +02:00
Matthias Dieter Wallnöfer
72e14ea8bd
s4:rootdse LDB module - Return "UNWILLING_TO_PERFORM" when no attribute fits on a change
2010-06-19 17:53:17 +02:00
Matthias Dieter Wallnöfer
2af67a3602
s4:rootdse LDB module - refactor error messages
...
Fix indentations, use "set_errstring" when no "asprintf" functionality required.
2010-06-19 17:53:16 +02:00
Matthias Dieter Wallnöfer
a4381239ba
s4:objectclass LDB module - use the old DN when displaying error messages
2010-06-19 17:53:16 +02:00
Matthias Dieter Wallnöfer
ee2bb4474f
s4:objectclass LDB module - add a better message when the parent DN is invalid
2010-06-19 17:53:15 +02:00
Matthias Dieter Wallnöfer
04890bb750
s4:objectclass LDB module - add an error message when someone tries to add entries without objectclasses
2010-06-19 17:53:15 +02:00
Matthias Dieter Wallnöfer
9da8b06112
s4:objectclass LDB module - handle the case when there is a retry to add the root basedn
...
This isn't quitted with a normal "NO_SUCH_OBJECT" (parent not found) but with a
very special referral: one with the DN itself and the hostname is the last
component value of the DN.
2010-06-19 17:53:14 +02:00
Jelmer Vernooij
b099631f42
heimdal/waf: Initial work on making it possible to use the system
...
heimdal again.
Still missing are the detection of the right Heimdal version and
linking (unresolved symbols at the moment).
2010-06-19 15:32:27 +02:00
Jelmer Vernooij
b03637cb9e
dsdb: Fix includes when building against system ldb.
2010-06-19 14:46:22 +02:00
Jelmer Vernooij
ccaf0c6038
dsdb: Use Samba includes so _PUBLIC_ is defined.
2010-06-19 13:55:41 +02:00
Jelmer Vernooij
238e89f7b0
dsdb: Make module ops struct for each module public.
2010-06-19 13:46:39 +02:00
Jelmer Vernooij
f36a9afc2f
s4-python: Use sys.prefix rather than guessing prefix from current
...
file path.
2010-06-19 13:41:48 +02:00
Jelmer Vernooij
bd1786f7f1
wafsamba: Fix typo: noextenion -> noextension.
2010-06-19 12:10:29 +02:00
Jelmer Vernooij
bf8045037d
waf: Add missing dependency (so header paths are inherited) on talloc to internal python lib.
2010-06-19 02:26:13 +02:00
Jelmer Vernooij
5143353108
samba4: Build libreplace as builtin library by default so it doesn't end
...
up in $prefix/lib.
2010-06-18 23:51:40 +02:00
Jelmer Vernooij
380ee5f081
ldb: Remove dependency on self.
2010-06-18 23:51:40 +02:00
Jelmer Vernooij
da0fb0affb
ldbsamba: Build as subsystem to prevent infinite recursion issues.
2010-06-18 23:51:40 +02:00
Jelmer Vernooij
4c22434b3b
s4: Don't build a $prefix/lib/libpython.so, as such a library often already exists :-)
2010-06-18 23:51:40 +02:00
Jelmer Vernooij
b391b7d072
s4-waf: Don't include pytalloc when embedding python.
2010-06-18 23:51:40 +02:00
Jelmer Vernooij
ebd0bca555
s4: Build more python convenience files as subsystems rather than as python modules.
2010-06-18 23:51:40 +02:00
Jelmer Vernooij
8e8496208b
ldb: Don't build pyldb_util as python module but rather as subsystem, so as to not delute /usr/lib.
2010-06-18 23:51:40 +02:00
Jelmer Vernooij
f74dceda8c
ldb-samba: Don't build pyldbsamba as python module but rather as subsystem, so as to not delute /usr/lib.
2010-06-18 23:51:40 +02:00
Jelmer Vernooij
9382507909
web_server: Don't build wsgi support as python module but rather as
...
subsystem so we don't install it into /usr/lib.
2010-06-18 23:51:40 +02:00
Matthias Dieter Wallnöfer
837a975c2b
s4:cldap_server/rootdse.c - simplify the code a bit
...
Remove "NULL"-content variables and use "NULL"s directly as arguments. Add some
linewraps where needed.
2010-06-18 19:21:34 +02:00
Matthias Dieter Wallnöfer
9969cfc36c
s4:cldap_server.c - here the counter variable should be "signed"
2010-06-18 18:57:38 +02:00
Matthieu Patou
3fa38046cb
unittest: Change the name of the base ldb test so that it can be easily called separatly
2010-06-18 10:04:28 +02:00
Matthias Dieter Wallnöfer
c9ef9da12f
s4:ldap_backend.c - fix crash bugs when we got in error situations with "res" still set to "NULL"
2010-06-18 10:03:19 +02:00
Matthias Dieter Wallnöfer
e7fef1ac84
s4:ldap_backend.c - fix a small error (use "ModifyResponse" rather than "AddResponse")
2010-06-18 10:03:19 +02:00
Matthias Dieter Wallnöfer
955e1835ef
s4:objectclass LDB module - move "mem_ctx" initialisation lower
...
Saves us some "talloc_free"s on error cases
2010-06-18 10:03:09 +02:00
Matthias Dieter Wallnöfer
56e4822566
s4:dcesrv_netr_DsRAddressToSitenamesExW - fix the detection of the address family in a better way
...
Obviously the last attempt wasn't enough. Now we do really only read the first
byte in the address buffer which on little endian transmission does always
contain the address family (MS-NRPC 2.2.1.2.4.1).
This should now be working platform-independently.
2010-06-18 10:03:08 +02:00
Matthias Dieter Wallnöfer
01e9d090f1
s4:torture/rpc/netlogon.c - make sure that the address family is set in little endian in the "AddressToSitenames" tests
2010-06-18 10:03:07 +02:00
Matthias Dieter Wallnöfer
917f6015a6
s4:torture/rpc/netlogon.c - activate "AddressToSitenames" tests which do run against s4
2010-06-18 10:03:07 +02:00
Stefan Metzmacher
d823e529b8
s4:torture/rpc/remote_pac: use dcerpc_netr_LogonSamLogon_r() instead of dcerpc_netr_LogonSamLogon()
...
metze
2010-06-17 10:17:33 +02:00
Matthias Dieter Wallnöfer
d9c81e3ea5
s4:dcesrv_netr_DsRAddressToSitenamesExW - fix the read of the IP packet version
...
This should make it clearer by the use of the standardised "sa_family_t" type
and hopefully fixes the problems on platforms other than Linux (NetBSD in the
buildfarm for example).
2010-06-16 21:47:22 +02:00
Matthias Dieter Wallnöfer
ad7859dfff
s4:ldif_handlers.c - fix warning
2010-06-16 21:45:15 +02:00
Jelmer Vernooij
bd8fcd869d
s4: Fix build when there is a system-provided ldb.
2010-06-16 18:13:18 +02:00
Günther Deschner
a6f1c111ff
s4-smbtorture: Remind myself we need to add a test for SMBsplretq in RAP-PRINTING.
...
Guenther
2010-06-16 17:10:15 +02:00
Matthias Dieter Wallnöfer
12fdfc9430
s4:ldap.py - add another test about linked attributes
...
In addition this test makes sure that the bug regarding the search with deleted
linked attributes in the filter has been fixed.
2010-06-16 15:34:42 +02:00
Andrew Bartlett
53afe4e018
s4:ldif-handlers Add a custom handler for DNs that knows about deleted values
...
In Samba we my store a deleted DN for a linked attribute. We must
ensure that we can't match on it, or else searches for member= will
still reveal it.
Andrew Bartlett
2010-06-16 15:34:42 +02:00
Matthias Dieter Wallnöfer
5779c21e41
s4:provision.py - we do now support the "Windows 2000 Native" domain function level
2010-06-16 15:34:41 +02:00
Matthias Dieter Wallnöfer
233ce18a17
s4:linked attributes LDB module - strip trailing whitespaces
2010-06-16 15:34:41 +02:00
Matthias Dieter Wallnöfer
e190683b59
s4:linked_attributes LDB module - cosmetics
...
- unsigned counters for LDB objects
- we tend to have the "ret" variable always as the last declaration to see
which type of error a function returns
2010-06-16 15:34:41 +02:00
Stefan Metzmacher
6dbcffb51d
s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.
...
This is needed to remove samba specifc symbols from the bundled
ldb, in order to get the ABI right.
metze
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-06-16 14:07:28 +02:00
Günther Deschner
8843eea2e0
s4-smbtorture: only pull info when status code indicates success in smbcli_rap_netprintqgetinfo().
...
Guenther
2010-06-16 12:20:05 +02:00
Günther Deschner
185adc4c81
Revert "s4-smbtorture: only pull info when status code indicates success in smbcli_rap_netprintqgetinfo()."
...
This reverts commit 1f1c04010a
.
2010-06-16 12:18:32 +02:00
Günther Deschner
1a86532fce
s4-smbtorture: test smbcli_rap_netprintqgetinfo() with "" printqname.
...
Guenther
2010-06-16 12:15:24 +02:00
Günther Deschner
1f1c04010a
s4-smbtorture: only pull info when status code indicates success in smbcli_rap_netprintqgetinfo().
...
Guenther
2010-06-16 12:15:24 +02:00
Andrew Bartlett
18f3e5113a
s4:dsdb Allow renames with (now removed) linked attributes
...
It is important to allow the rename, even if we just have one-way
links, as this happens on deleted objects, which have the backlinks
alredy removed by repl_meta_data.
Andrew Bartlett
2010-06-16 12:05:31 +10:00
Andrew Bartlett
35237d5356
s4:libnet Remove 'ads min function level' checks.
...
We support Windows 2000 native now.
Andrew Bartlett
2010-06-16 09:57:52 +10:00
Andrew Bartlett
25abcb6818
s4:dsdb Fix linked_attributes to cope with the Feb 2010 changes to DLIST
...
The DLIST macros changed in behaviour in Feb 2010, and walking the
lists backwards is no longer safe if you don't use the macros.
Andrew Bartlett
2010-06-16 09:57:52 +10:00
Andrew Bartlett
5150f8597a
s4:dsdb Assert that we can't get backlinks as input in linked_attributes
...
The objectclass_attr module should prevent users creating such links,
and the mrepl_meta_data module should only create them in functional
level 2003 or above.
Andrew Bartlett
2010-06-16 09:57:52 +10:00
Andrew Bartlett
f9018bc0ea
s4:selftest Add test environment for functional level 2000
...
This required that we pass the name of the realm down as a parameter,
so we can start up two different realms.
Andrew Bartlett
2010-06-16 09:57:52 +10:00
Andrew Bartlett
d523e946b1
s4:provision Add import for DS_DOMAIN_FUNCTION_2000
2010-06-16 09:57:51 +10:00
Andrew Bartlett
814cb8895d
s4:provision Allow functional level 2000 to be chosen
2010-06-16 09:57:51 +10:00
Andrew Bartlett
ec6839ac26
s4:dsdb use dsdb_module_modify() rather than ldb_next_request()
...
This does exactly the same thing, but with less code.
Andrew Bartlett
2010-06-16 09:57:51 +10:00
Andrew Bartlett
ffa787772f
s4:dsdb Handle backlinks for Windows 2000 level linked attributes
...
This revives the code from 5964acfa74
,
before tridge and I simplified this too much, and removed the Windows
2000 functional level linked attribute support.
By telling the linked_attributes module that repl_meta_data has
handled the links, we avoid a conflict for the new style (functional
level 2003 and above) linked attributes. However, we still need
backlinks for 2000 style linked attributes, so this allows that code
in the linked_attributes module to be revived to handle those.
Andrew Bartlett
2010-06-16 09:57:51 +10:00
Andrew Bartlett
ecfce7365c
s4:dsdb Add control for signaling between repl_meta_data and linked_attributes
...
This control will allow the linked_attributes module to know if
repl_meta_data has already handled the creation of forward and back
links.
Andrew Bartlett
2010-06-16 09:57:51 +10:00
Aravind Srinivasan
6da487580e
s4 torture: RAW-SEARCH: break out some of the old search levels
...
* Added two new parameters: raw_search_search and raw_ea_size which
can be enabled/disabled based on whether the server supports
RAW_SEARCH_SEARCH and/or RAW_SEARCH_EA_SIZE levels
* Skip unsupported levels from the server and give a warning rather
than failing.
Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-15 13:48:15 -07:00
Tim Prouty
2170a59215
s4 torture: RAW-SEARCH: Only test supported info levels
2010-06-15 13:48:15 -07:00
Jelmer Vernooij
a4a127ea5a
s4-waf: Fix build of libldb_ildap against system ldb.
2010-06-15 20:52:01 +02:00
Jelmer Vernooij
773e47f4a9
wafsamba: Fix include path inheritance from module subsystems.
2010-06-15 20:35:22 +02:00
Jelmer Vernooij
d913aacfe4
dcerpc-samr: Fix library name.
2010-06-15 17:22:46 +02:00
Jelmer Vernooij
8c88c9c500
Attempt to fix SamDB test infrastructure (not used in Samba anywhere, only in OpenChange).
2010-06-15 17:21:39 +02:00
Jelmer Vernooij
026fcc6a4f
ldb: Bump version number, use same ABI version for Samba4 and non-Samba 4 versions.s
2010-06-15 13:15:51 +02:00
Jelmer Vernooij
fb7a98aa32
ldb: Fix included ldb build.
2010-06-15 13:15:50 +02:00
Jelmer Vernooij
0d7f8fb73d
wafsamba: Fix building of modules as shared libraries.
2010-06-15 13:15:50 +02:00
Jelmer Vernooij
e27ef3dd6d
ldb: Only build standard ldb modules when building bundled ldb.
2010-06-15 13:15:50 +02:00
Jelmer Vernooij
7fe9e6cd69
dsdb: Fix includes when building against system ldb.
2010-06-15 13:15:50 +02:00
Jelmer Vernooij
6c9336110c
dsdb: Build modules as external modules when using system ldb.
2010-06-15 13:15:50 +02:00
Jelmer Vernooij
9ac0a876a7
ldb-samba: Add missing dependency on credentials code.
2010-06-15 13:15:50 +02:00
Andrew Bartlett
b16e602660
s4:dsdb Move linked attribute restrictions to objectclass_attrs
...
This puts more of the schema restrictions in one place.
Andrew Bartlett
2010-06-15 10:54:09 +10:00
Andrew Bartlett
8ea4118472
s4:dsdb Add const to dsdb_dn functions that operate on an ldb_val.
...
Andrew Bartlett
2010-06-15 10:53:50 +10:00
Andrew Bartlett
982f688c02
s4:selftest Remove becomedc tests from knownfail, these should now pass
...
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
2010-06-15 10:51:35 +10:00
Andrew Bartlett
b5d80a225e
s4:dsdb Rework the vampire schema handling to convert 3 times.
...
This seems like a lot of duplicate work, but by the end we should
have, in normal LDB format, the remote DRS schema, having bootstrapped
it with the locally loaded schema.
The multiple steps are to resolve the problems with references to
schema items that we don't 'yet' know about.
Andrew Bartlett
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
2010-06-15 10:51:34 +10:00
Andrew Bartlett
7c60ac97bf
s4:provision Allow a specific prefix map to be loaded into a new schema provision
...
This allows the prefixMap from a DRS server to be used when loading
the schema from the local files. This helps us then import other
schema with this map in place.
Andrew Bartlett
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
2010-06-15 10:51:34 +10:00
Andrew Bartlett
9e28ceda96
s4:dsdb Keep the DRS-based prefix map for use in provision-based schema
...
We need to use the remote prefix map for the provision schema, or else
we can't decode new, non-standard attributes into OIDs. Then once we
decode that schema, we can try again and get them properly translated.
Andrew Bartlett
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
2010-06-15 10:51:34 +10:00
Andrew Bartlett
5323485eb3
s4:dsdb Allow the setting an override on the schema
...
The change here is to try and convert a per the previous rules, but if
we don't know a particular OID as a attributeID, then store it as an
OID (for example). This allows known values to be converted as
before, but still copes with unknown values.
Andrew Bartlett
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
2010-06-15 10:51:34 +10:00
Andrew Bartlett
6a2f7fe04c
s4:dsdb Use the schema from our local provision to decode the schema
...
This works on the assumption that the schema partition can only
contain schema objects.
We may need to pass down some kind of 'relax' to the DRS -> LDB
conversion code, so that it allows incomplete conversions, so that we
don't fail if a new attribute is present, and we can't decode it.
This would then be resolved the second time we do the conversion.
Andrew Bartlett
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
2010-06-15 10:51:34 +10:00
Andrew Bartlett
ecf782da87
s4:torture Rework NET-API-BECOMEDC test to use libnet_vampire callbacks.
...
The libnet_vampire code was derived from this code in the first place,
but has continued to evolve, while this code has often bitrotted.
This avoids the needless duplication of the callbacks, while keeping
the toture wrapper.
Andrew Bartlett
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
2010-06-15 10:51:34 +10:00
Andrew Bartlett
c313590547
s4:libnet Steal ldb and lp_ctx from python result into correct structures.
...
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
2010-06-15 10:51:34 +10:00
Andrew Bartlett
1104b41f1e
s4:libnet Make the libnet_vampire default callbacks non-static
...
These are intended to be called from the NET-API-BECOMEDC torture test
to avoid duplication of code.
Andrew Bartlett
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
2010-06-15 10:51:34 +10:00
Zachary Loafman
2977c659ea
s4 torture: RAW-WRITE should check lockread_supported
...
Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-14 17:13:44 -07:00
Nadezhda Ivanova
5ad12f70c5
s4:Descriptor tests clean-up.
...
A bit of refactoring and modified the tests to use encrypted connection so that they pass against Windows unconditionally.
2010-06-14 15:12:00 +03:00
Andrew Kroeger
352fb5c7e4
s4:provision: Make gc._msdcs DNS entries A/AAAA records
...
When adding an additional DC as a GC server, the new DC attempts to register its
own gc._msdcs records. If the existing gc._msdcs record is a CNAME, BIND fails
the update with the message "attempt to add non-CNAME alongside CNAME ignored",
and the new DC is not registered as a GC server.
The A & AAAA record types for gc._msdcs have been verified against the DNS
server of a W2K8 DC.
2010-06-14 12:14:46 +02:00
Matthias Dieter Wallnöfer
1137e8e95e
s4:SAMR server - cosmetic fix
2010-06-14 11:41:32 +02:00
Matthias Dieter Wallnöfer
f0ab520f6e
s4:SAMR server - on alias search operations do never use the domain DN as base dn
...
Aliases (especially in the "builtin" domain) are often domain-independant.
2010-06-14 11:37:11 +02:00
Jelmer Vernooij
d319c83f1f
librpc: Install the right headers.
2010-06-13 19:55:53 +02:00
Jelmer Vernooij
08c972504a
Support system talloc/tevent headers.
2010-06-13 19:39:20 +02:00
Jelmer Vernooij
c3550c9c28
librpc: Fix netlogon.h file to install - not the torture one but the one
...
generated by pidl.
2010-06-13 19:26:48 +02:00
Jelmer Vernooij
f52a0d31f0
param/share: Use static prototypes.
2010-06-13 19:26:48 +02:00
Matthias Dieter Wallnöfer
4b6ce8efc0
s4:fix allocated control OIDs for "password_hash" LDB module
...
The password hash module controls overlapped others. Sorry, but the
"schema_samba4.ldif" hasn't been kept up-to-date.
2010-06-13 18:35:19 +02:00
Jelmer Vernooij
7b7213f1ee
s4-provision: Use logger in provision backends.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
51058213cb
s4-test: Use smb.conf path set in environment rather than using
...
command-line options.
This is the first step towards supporting custom test runners.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
46037a8160
Remove unused version options for subunitrun.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
74ed48aa1c
Friendlier message.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
d9d0d54475
upgradeprovision: Use logging infrastructure.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
3552ad3ab1
upgrade: Properly cancel/commit transactions in a couple more places.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
956a256faa
s4-python: Start using standard python logging infrastructure rather
...
than simple messaging callbacks.
2010-06-13 18:19:03 +02:00
Matthias Dieter Wallnöfer
731b4469cb
s4:dcesrv_samr_GetGroupsForUser - return error code if a SID wasn't found
...
This shouldn't happen since SIDs are mandatory for security objects
2010-06-12 17:50:52 +02:00