Matthias Dieter Wallnöfer
17d6506c9e
s4:torture/samr - Add status code on "ValidatePassword" test output
2009-11-06 15:19:39 +01:00
Matthias Dieter Wallnöfer
9f481664fb
s4:torture/samr - Activate "ValidatePassword" test per default
2009-11-06 15:19:39 +01:00
Matthias Dieter Wallnöfer
6afee5f130
s4:dcesrv_samr_ValidatePassword - I forgot to create an out buffer
2009-11-06 15:19:39 +01:00
Kamen Mazdrashki
0f531e3a2a
s4/drs: Refactor to be more SAMBA.Coding style compliant
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:50 +01:00
Kamen Mazdrashki
c236bb537f
s4/drs: Remove unused structures and functions
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:50 +01:00
Kamen Mazdrashki
db82023af2
s4/drs: remove unused num_prefixes and prefixes from dsdb_schema
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:49 +01:00
Kamen Mazdrashki
2fa4c4dcee
s4/drs(tort): _torture_drs_pfm_compare_same() should not fail tctx by itself
...
The responsibility for failing torture_context sould be for the
caller.
This gives better control in for test case driver function.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:49 +01:00
Kamen Mazdrashki
ef959b42ca
s4/drs(tort): Test case for dsdb_create_prefix_mapping() implemented
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:49 +01:00
Kamen Mazdrashki
b9dd44ee39
s4/drs: dsdb_create_prefix_mapping() refactored
...
TODO: this function may be refactored further.
Actually we don't need to look up for the OID supplied,
but just call sdb_schema_pfm_make_attid() - it will
search for the OID anyway and add it if necessary
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:48 +01:00
Kamen Mazdrashki
9405377a70
s4/drs: prefixMap lookup by full_OID implementation
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:48 +01:00
Kamen Mazdrashki
009361e1ff
s4/drs(tort): refactor - SCHEMA_INFO_DEFAULT defined on file scope
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:47 +01:00
Kamen Mazdrashki
1aae751a68
s4/drs: dsdb_write_prefixes_from_schema_to_ldb() refactored
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:47 +01:00
Kamen Mazdrashki
82539b7d66
s4/drs: dsdb_read_prefixes_from_ldb() refactored
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:46 +01:00
Kamen Mazdrashki
b50df3bd7f
s4/drs(tort): prefixMap read/write in LDB test case
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:46 +01:00
Kamen Mazdrashki
6a32200667
s4/drs(tort): Create temporary LDB for testing purposes
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:46 +01:00
Kamen Mazdrashki
9da33436e4
s4/drs: refactor dsdb_load_oid_mappings_ldb() to use _dsdb_prefixmap_from_ldb_val()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:45 +01:00
Kamen Mazdrashki
5381d8d157
s4/drs: Load prefixMap from ldb_val moved in separate function
...
It is to be used later in several places when we need such conversion.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:45 +01:00
Kamen Mazdrashki
20622de49f
s4/drs(tort): prefixMap to/from ldb_val serialization test case
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:44 +01:00
Kamen Mazdrashki
fc05386c0d
s4/drs: dsdb_schema_pfm_from_drsuapi_pfm() to accept partial drsuapi_prefixMap
...
"partial drsuapi_prefixMap" is a prefix map without last entry
being special - i.e. map that does not contains schema_info entry.
Test for dsdb_schema_pfm_from_drsuapi_pfm() were also extended to
cover both 'full' and 'partial' map conversion.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:44 +01:00
Kamen Mazdrashki
ba4d87f817
s4/drs: dsdb_map_int2oid() replaced by dsdb_schema_pfm_oid_from_attid()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:43 +01:00
Kamen Mazdrashki
01302b8202
s4/drs: dsdb_map_oid2int() replaced by dsdb_schema_pfm_make_attid()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:43 +01:00
Kamen Mazdrashki
ddab9d1fe7
s4/drs: dsdb_verify_oid_mappings_drsuapi() replaced by dsdb_schema_pfm_contains_drsuapi_pfm()
...
dsdb_schema_pfm_contains_drsuapi_pfm() is part of reimplemented
prefixMap interface.
This name was choosen to clearly show, that this a week verification
in case we want to determine if remote schema is changed.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:42 +01:00
Kamen Mazdrashki
28b6eb9494
s4/drs: dsdb_get_oid_mappings_drsuapi() to use new prefixMap interface
...
dsdb_get_oid_mappings_drsuapi() just need to call
dsdb_drsuapi_pfm_from_schema_pfm() to get filled-in DRSUAPI
prefixMap.
Perhaps it won't be bad to rename this function to have
more expressive name in the future
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:42 +01:00
Kamen Mazdrashki
a83385303b
s4/drs: dsdb_load_oid_mappings_drsuapi() -> dsdb_load_prefixmap_from_drsuapi()
...
Also, dsdb_load_oid_mappings_drsuapi() was reimplemented to use
dsdb_schema_pfm_from_drsuapi_pfm() function to load
drsuapi_prefixMap into schema->prefixmap
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:41 +01:00
Kamen Mazdrashki
3729272f0a
s4/drs: dsdb_schema uses dsdb_schema_prefixmap definition
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:41 +01:00
Kamen Mazdrashki
3abe0ad7de
s4: DRS-RPC tests added to RPC group of tests
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:41 +01:00
Kamen Mazdrashki
7a51b3adc2
s4: Add DRS-UNIT test suite to LOCAL group of tests to be executed
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:40 +01:00
Kamen Mazdrashki
b54ec122b2
s4/drs: Move schema_prefixMap allocation in separate function
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:40 +01:00
Kamen Mazdrashki
6210237b5a
s4/drs: schema_prefixMap to/from drsuapi_prefixMap conversion implementation
...
Along with this, dsdb_schema_pfm_contains_drsuapi_pfm()
function is implemented to replace previous implementation
for dsdb_verify_oid_mappings_drsuapi().
Name of the function clearly implies how week this verification is,
as currently it is used to indicate "Schema modified on remote"
condition.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:39 +01:00
Kamen Mazdrashki
5446123190
s4/drs(tort): test for schema_prefixMap to/from drsuapi_prefixMap conversion
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:39 +01:00
Kamen Mazdrashki
3d91c8ef5a
s4/drs(tort): implement prefixMap comparison function
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:38 +01:00
Kamen Mazdrashki
3fe4310df7
s4/drs: Implement binary-oid-lookup into prefixMap
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:38 +01:00
Kamen Mazdrashki
f4475368f0
s4/drs: Move making of partial-binary-oid to a separate function
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:37 +01:00
Kamen Mazdrashki
39ab7b8ebd
s4/drs: Fix memory leek in prefixMap
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:37 +01:00
Kamen Mazdrashki
716eb62b5d
s4/ldb: Fix double allocation for "ldb_url"
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:36 +01:00
Stefan Metzmacher
be06d5ccb4
s4:torture/drs: move intern/ => unit/
...
metze
2009-11-06 14:05:36 +01:00
Jeremy Allison
c2df97f57c
Fix up some of the timing constants for DELAYWRITE. Add some extra tests up test_delayed_write_update6
...
to investigate what happens to a sticky write handle after a second handle close.
Jeremy.
2009-11-05 15:37:26 -08:00
Zahari Zahariev
5fb9d06607
Python tests for the acl module.
...
Signed-off-by: Nadezhda Ivanova <nadezhda.ivanova@postpath.com>
Author: Zahari Zahariev <zahari.zahariev@postpath.com>
2009-11-05 17:40:54 +02:00
Nadezhda Ivanova
1fc47e1228
Version 1.0 of the directory service acls module.
...
At this point, support for checks on LDAP add, delete, rename and modify.
Old kludge_acl is still there to handle the searches.
This module is synchronous as the async version was impossible to debug,
will be converted to async after some user testing.
2009-11-05 17:34:12 +02:00
Matthias Dieter Wallnöfer
1685ee3ee7
s4:torture/rpc/samr - Add a comment for "ValidatePassword" test
2009-11-05 12:43:03 +01:00
Matthias Dieter Wallnöfer
3372e2a0cc
s4:dcesrv_samr - Implement "dcesrv_samr_ValidatePassword" using my new check password call
...
This implements a very basic method for password validation using my new
"samdb_check_password" call.
2009-11-05 12:43:03 +01:00
Matthias Dieter Wallnöfer
85f61e5342
s4:dsdb/common/util - Add a new utility function "samdb_check_password"
...
This function performs basic password checks and will be used by the
"samrValidatePassword" call and the "password_hash" module.
2009-11-05 12:43:02 +01:00
Matthias Dieter Wallnöfer
3a6bde799d
s4:samdb_set_password/samdb_set_password_sid - Better comments and cosmetics
2009-11-05 12:43:02 +01:00
Matthias Dieter Wallnöfer
49397a8b3e
s4:samdb python bindings - add a wrapper for "dsdb_make_schema_global"
2009-11-05 11:56:22 +01:00
Matthias Dieter Wallnöfer
992d35d38a
s4:samdb python bindings - make the python wrap connect more like the C one
...
Add call for setting the create permissions.
2009-11-05 11:56:22 +01:00
Matthias Dieter Wallnöfer
b2e91d4119
s4:samdb python bindings - Reorder some function bodies to match the order in "ldb_wrap_connect"
2009-11-05 11:56:22 +01:00
Stefan Metzmacher
a10b522a0a
s4:kdc: remove unused struct kpasswd_socket
...
metze
2009-11-05 09:55:11 +01:00
Nadezhda Ivanova
b8ecf39d9f
Added security descriptor for the domain NC to provisioning.
...
Necessary for correct descriptor inheritance. Based on the default state
of a single DC. Will be modified later when we support multiple DCs.
2009-11-04 15:58:54 +02:00
Endi S. Dewata
c9571f7277
s4:provisioning - Fixed minor bugs in provisioning tool and partition module.
2009-11-04 14:58:25 +11:00
Günther Deschner
a8de4f091e
s4-smbtorture: skip three info levels while testing s3 with RPC-LSA.
...
These are only supported by s3 when running pdb_ads atm.
Guenther
2009-11-03 22:18:09 +01:00