summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
...
* s4/schema: don't crash if we don't have subClassOfAndrew Tridgell2009-09-101-2/+7
|
* s4: Use SASL authentication against Fedora DS.Endi Sukma Dewata2009-09-106-23/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. During instance creation the provisioning script will import the SASL mapping for samba-admin. It's done here due to missing config schema preventing adding the mapping via ldapi. 2. After that it will use ldif2db to import the cn=samba-admin user as the target of SASL mapping. 3. Then it will start FDS and continue to do provisioning using the Directory Manager with simple bind. 4. The SASL credentials will be stored in secrets.ldb, so when Samba server runs later it will use the SASL credentials. 5. After the provisioning is done (just before stopping the slapd) it will use the DM over direct ldapi to delete the default SASL mappings included automatically by FDS, leaving just the new samba-admin mapping. 6. Also before stopping slapd it will use the DM over direct ldapi to set the ACL on the root entries of the user, configuration, and schema partitions. The ACL will give samba-admin the full access to these partitions. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4/torture: add new SMB oplock testsAravind Srinivasan2009-09-091-2/+397
| | | | | * test if oplocks are granted when requesting delete-on-close * test how oplocks are broken by byte-range-lock requests
* s4/torture: convert printf to torture_comment()Aravind Srinivasan2009-09-091-6/+9
| | | | Allows "make test" and other harnesses to print cleaner output.
* s4/drs: when we don't find an attribute use zero valuesAndrew Tridgell2009-09-101-19/+10
| | | | thanks to metze for pointing this out
* s4/vampire: fixed i/j index mixup in vampire codeAndrew Tridgell2009-09-101-3/+3
|
* s4:drs match the meta_data and attributes arrayAndrew Tridgell2009-09-091-16/+46
| | | | | These two arrays need to be in sync, as they are walked in sync by the client
* s4/drs: broke out the core of the getncchanges codeAndrew Tridgell2009-09-091-81/+96
| | | | It is easier to understand without the heavy nesting
* s4:drs level_out is a pointerAndrew Tridgell2009-09-091-1/+1
| | | | DsAddEntry now seems to work for simple tests
* s4:drs split addentry and getncchanges into separate filesAndrew Tridgell2009-09-097-292/+375
| | | | | These will get quite complex eventually, I think we are better separating them so the code is a bit easier to follow
* Added "admin_session" method.Nadezhda Ivanova2009-09-094-1/+223
| | | | | | The purpose of admin_session is to be able to execute parts of provisioning as the user Administrator in order to have the correct group and owner in the security descriptors. To be used for provisioning and tests only.
* s4/repl: implement DsReplicaSyncAndrew Tridgell2009-09-093-5/+68
| | | | | | | | | | | This patch implements DsReplicaSync by passing the call via irpc to the repl server task. The repl server then triggers an immediate replication of the specified partition. This means we no longer need to set a small value for dreplsrv:periodic_interval to force frequent DRS replication. We can now wait for the DC to send us a ReplicaSync msg for any partition that changes, and we immediately sync that partition.
* s4/repl: added refresh of repsToAndrew Tridgell2009-09-091-1/+87
| | | | | | | | | I've found that w2k3 deletes the repsTo records we carefully created in the vampire join if we don't refresh them frequently. After about 30mins all 3 repsTo records are gone. This patch adds automatic refresh of the repsTo by calling DSReplicaUpdateRefs every time we do a sync cycle with the server
* s4: fixed format of repsTo in samdbAndrew Tridgell2009-09-091-52/+70
| | | | | | | Metze pointed out what the windows tool ldp.exe will examine repsTo attributes on remote DCs, so we do in fact need to use the same format that windows uses. This patch changes the server side implementation of UpdateRefs to use the windows format
* s4: allow repl:RODC=true/false to set ourselves as a RODCAndrew Tridgell2009-09-091-2/+6
| | | | | I think this is what windows DCs use to see that we are read-only, but I am not sure. Needs more testing.
* Mark test_security_descriptor_add_neg as known failing (for now).Jelmer Vernooij2009-09-082-1/+2
|
* Basic tests for nTSceurityDescriptor both SDDL and BASE64 formatZahari Zahariev2009-09-081-2/+194
| | | | | | | | These are updated second eddition unittests using ldb.add_ldif() and ldb.modify_ldif(). Unittests are found to work when using the right local domain SID. Negative test separated. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4/torture/smb2: removed SMB2-FIND testSteven Danneman2009-09-083-222/+0
| | | | | This test has been wholly replaced by the SMB2-DIR-ONE test found in dir.c.
* s4/torture/smb2: Fix several small bugs and style issues in SMB2 dir testsSteven Danneman2009-09-081-136/+152
| | | | | | | | * removed all uses of printf, replaced with torture_comment * replaced custom CHECK macros with new torture_assert_*_todo() helpers * switched string dir name generation to generate_unique_strs() helper, to avoid non-deterministic test behavior where generate_rand_str() would cause file colissions in the same directory.
* ntlmssp: add some void decode calls (useful for ndrdump).Günther Deschner2009-09-081-1/+7
| | | | Guenther
* s4:repl_meta_data: remove unused codeStefan Metzmacher2009-09-081-11/+0
| | | | metze
* s3:drsuapi: add a simple DsRemoveDSServer() implementationStefan Metzmacher2009-09-081-1/+42
| | | | metze
* s4:drsuapi: add an incomplete DsAddEntry implementationStefan Metzmacher2009-09-082-10/+194
| | | | metze
* schannel: add NL_AUTH_MESSAGE and both NL_AUTH_SIGNATURE structs.Günther Deschner2009-09-081-1/+1
| | | | | | | These actually belong netlogon but we for now want to keep netlogon as a security providor separate. Guenther
* Return a correct value for Supported Encryption TypeMatthieu Patou2009-09-081-1/+6
| | | | | | Vista and upper version use this value to check wether they should ask the DC to change the msDS-SupportedEncryptionTypes attribute or not. Declare the different value as a bitmap in Netlogon idl
* tort: RPC-CRACKNAMES test case refactoredKamen Mazdrashki2009-09-082-1/+18
|
* tort: DsCrackNames - propagate torture context to all tests.Kamen Mazdrashki2009-09-082-208/+166
|
* tort: Helper function to get DC info for testingKamen Mazdrashki2009-09-081-0/+53
|
* tort: Implement 'setup' and 'teardown' for DRSUAPI test cases.Kamen Mazdrashki2009-09-082-0/+44
|
* s4/ldb: support NDR printing for 2 more replication typesAndrew Tridgell2009-09-082-0/+40
| | | | | print replUpToDateVector and replPropertyMetaData using NDR format if --show-binary is given.
* s4/ldb: allow prefixMap to be shown as NDRAndrew Tridgell2009-09-081-0/+8
|
* s4/ldb: allow printing ntSecurityDescriptor in fullAndrew Tridgell2009-09-081-33/+39
| | | | | print security descriptors in NDR format if --show-binary is given. This is easier to read than sddl format.
* s4/ldb: added ldif handler for repsFrom/repsToAndrew Tridgell2009-09-082-2/+57
| | | | | In normal usage this makes no difference, but if you add --show-binary then you can see the NDR printed out in the usual ndr_print_*() format
* s4/ldb: expose the ldb flags with ldb_get_flags()Andrew Tridgell2009-09-082-0/+11
|
* s4/ldb: don't line wrap ldif when --show-binary is usedAndrew Tridgell2009-09-081-4/+9
|
* s4/ldb: added --show-binary command line optionAndrew Tridgell2009-09-086-4/+20
| | | | | | | This add --show-binary to ldbsearch. When this flag is set, binary blobs will be shown as-is, instead of base64 encoded. This is useful for some XML encoded attributes, and will also be used as part of some NDR print formatting for attributes like repsTo.
* s4:setpassword script - Passwords set by this script are set by the ↵Matthias Dieter Wallnöfer2009-09-081-1/+1
| | | | administrator not the user
* s4:provision - Cosmetic: Indent the parameters betterMatthias Dieter Wallnöfer2009-09-081-36/+60
|
* s4:templates - Remove the latest relics (in "dcesrv_lsa_CreateSecret")Matthias Dieter Wallnöfer2009-09-072-114/+0
|
* s4:wmic - Output enhancementsDmitry Karasik2009-09-071-58/+105
| | | | | | | Outputs shouldn't clash with metadata characters (|,()), special characters should be escaped, "NULL" values should be reported as "(null)" string. For the full explaination look at bug #6076.
* s4: fixed updaterefs options bitmapAndrew Tridgell2009-09-081-1/+1
|
* s4: implemented server side of DSUpdateRefs callAndrew Tridgell2009-09-085-11/+340
| | | | | This call is made by DCs to tell us we should notify them of directory changes
* s4/ldb: fixed spellingAndrew Tridgell2009-09-081-2/+2
|
* s4: 'index' is a libc functionAndrew Tridgell2009-09-081-2/+2
|
* s4: fixed a unsigned printf warningsAndrew Tridgell2009-09-081-3/+3
|
* s4: removed an unused variableAndrew Tridgell2009-09-081-2/+0
|
* s4: fixed some shadowed variable warningsAndrew Tridgell2009-09-083-9/+9
|
* Fill the meta data vector in the responce struct.Anatoliy Atanasov2009-09-081-4/+32
|
* s4:selftest Fix 'make testenv-gdb' and 'make valgrindtest' etcAndrew Bartlett2009-09-081-28/+22
| | | | | | | | | | The problem here was that tridge's changes to ensure that test results were always propogated didn't merge well with the addition of extra environment variables for the 'make valgrindtest' and similar environments. By splitting out the macro further, we keep the build farm reporting accurate, but allow these other test modes to work. Andrew Bartlett
* s4:pwsettings: Correct off by factor of 10 for ticks.Andrew Kroeger2009-09-071-4/+4
| | | | | | The tick conversion math was off by a factor of 10 due to the incorrect usage of the "e" notation. The expression "XeY" means "X * (10^Y)", so the correct expression is 1e7 to get the correct adjustment for ticks.