summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
...
* s4:upgrade.py - the import of WINS databases don't seem to work alwaysMatthias Dieter Wallnöfer2009-11-271-1/+1
| | | | Disable it for now until the cause has been found
* s4:samba3.py - ignore comments in "smb.conf" filesMatthias Dieter Wallnöfer2009-11-271-1/+1
|
* s4:samba3.py - don't read those informations out from the TDBMatthias Dieter Wallnöfer2009-11-271-3/+4
| | | | At the moment those three calls are broken
* s4:samba3.py - support the TDB version 3Matthias Dieter Wallnöfer2009-11-271-1/+1
|
* s4:provision - Fix up the provision of "standalone" and "member" modeMatthias Dieter Wallnöfer2009-11-272-10/+12
| | | | | | | Both modes weren't possible anymore since 1.) the secrets entry wasn't created, 2.) a lookup in winbindd was done using "lp_workgroup()" rather than "lp_sam_name()" (since on the mentioned two configurations we use the netbios name as domainname - and not the workgroup).
* s4:provision.py - cosmetic output correctionMatthias Dieter Wallnöfer2009-11-271-1/+1
|
* s4:setup/provision - make the interactive mode work againMatthias Dieter Wallnöfer2009-11-271-13/+3
|
* s4:upgrade script - rename it to "upgrade_from_s3" and do some reworkMatthias Dieter Wallnöfer2009-11-271-17/+20
| | | | | | - Give a better name to the script - Move it to the location where also "upgradeprovision" resides - Fix up trailing whitespaces and tabs
* s4-install: old systems don't have sed -iAndrew Tridgell2009-11-271-1/+4
| | | | | surprisingly, this failure came from SLES8. I didn't realise that the -i option was so new!
* s4-selftest: s4 passes all the SMB2-LOCK tests nowAndrew Tridgell2009-11-271-2/+0
|
* s4-torture: fixed error code for s4 in SMB2-LOCK testAndrew Tridgell2009-11-271-1/+8
| | | | | | | s4 returns NETWORK_NAME_DELETED if you attempt to use an invalid tree connection for a lock. This test (correctly I think) happens before we validate the file handle. That implies that when you pass both a closed handle and a invalid tree you should get NT_STATUS_NETWORK_NAME_DELETED.
* s4-ntvfs: win7 does not check for the NONE smb2 lock flag on unlockAndrew Tridgell2009-11-271-1/+2
|
* s4-selftest: s4 passes this test nowAndrew Tridgell2009-11-271-1/+0
|
* s4-torture: mark s4 as doing valid lock range tests on SMBAndrew Tridgell2009-11-271-1/+2
|
* s4-ntvfs: move valid lock range test from smb2 layer to generic codeAndrew Tridgell2009-11-272-6/+19
| | | | win7 also fails invalid lock ranges on SMB
* s4:smb_server/smb2: don't reset highest_smb2_seqnum on SMB2 CancelStefan Metzmacher2009-11-271-2/+4
| | | | metze
* s4-torture: fixed expected error codes for s4 in SMB2-LOCKAndrew Tridgell2009-11-272-3/+24
| | | | | | | | I think the error/success codes returned by windows for these tests are quite bogus. The ones s4 gives are much more reasonable. The locking ones returning NT_STATUS_SUCCESS could lead to data loss, as an application thinks it has a file locked correctly when it fact it doesn't, so it could do an unsafe modify.
* s4-drstest: don't use getenv("LDB_URL") in test suitesAndrew Tridgell2009-11-271-18/+7
| | | | | | | I was stumped for a while as to why the drs test suite was failing for me. It turned out that it looked for LDB_URL in the environment, and used it if set. I had it set in my terminal, and it was happily munching on my sam.ldb while testing. Quite a cute bug really :-)
* s4-pvfs: fixed access check failure in SFILEINFO testAndrew Tridgell2009-11-271-8/+5
| | | | matching windows behaviour is not always the right thing to do!
* s4-ldb: improve detection of whether the server has a GC portAndrew Tridgell2009-11-271-5/+9
| | | | | | We were trying to open $SERVER:3268 regardless, which could result in creating a file called "localdc1:3268", which led to subsequent test failures
* s4-ldb: better to test for valid arguments in ldb library than commandlineAndrew Tridgell2009-11-272-9/+10
| | | | | | | | | We were testing for valid DNs in ldbrename in the command line tool. This hid a bug in the ldb library where we caught a bad DN in the objectclass module rather than in the main ldb code. It is better to do validation of the DNs passed on the command line in the library code, as this gives us more consistent error handling between the programming APIs for ldb and the command line.
* s4-smb2: SMB2 uses NT_STATUS_CANCELLED for cancelled locksAndrew Tridgell2009-11-271-1/+5
|
* s4-smb2: sequence numbers are not checked in SMB2_OP_CANCELAndrew Tridgell2009-11-271-1/+2
|
* torture: fixed SMB2-LOCK valgrind errorAndrew Tridgell2009-11-271-1/+2
|
* s4-smb2: check for invalid SMB2 lock rangesAndrew Tridgell2009-11-271-0/+6
|
* s4-smb2: check for an invalid lock flags combinationAndrew Tridgell2009-11-271-0/+3
| | | | UNLOCK with FAIL_IMMEDIATELY is not allowed
* s4-install: fixed install path for python scriptsAndrew Tridgell2009-11-272-11/+34
| | | | | | when we install python scripts we need to fix the internal path used to find modules. We also need to install the scripts in the right place. Most of them should go in $SBINDIR not share/setup/
* s4:upgradeprovision Rework update_machine_account_password() tranactionsAndrew Bartlett2009-11-271-4/+6
| | | | | | This balances the transaction_begin() and transactin_prepare_commit() calls Andrew Bartlett
* s4:dsdb Don't segfault with ldb_transaction_prepare_commit() without begin()Andrew Bartlett2009-11-271-0/+4
| | | | | | | | It is up to other modules to complain if ldb_transaction_prepare_commit() is called before ldb_transaction_begin_transaction() Andrew Bartlett
* s4:upgradeprovision add 'exit $failed' to blackbox testAndrew Bartlett2009-11-271-0/+2
|
* s4:upgradeprovision Use mkdtemp to create unique tempoary directory namesAndrew Bartlett2009-11-271-2/+3
|
* s4:selftest Add tests for upgradeprovisionAndrew Bartlett2009-11-272-0/+27
|
* s4:upgradeprovision Rework script, and reset machine account pwAndrew Bartlett2009-11-271-27/+58
| | | | | | | | | | The rework corrects some duplication and errors in the original script, found when preparing an automated test of the script. The code to reset the machine account password avoids issues with AES keys and salting, which may not otherwise be solved by the upgrade. Andrew Bartlett
* s4:ldb Provide bindings for ldb_transaction_prepare_commit()Andrew Bartlett2009-11-271-0/+9
|
* s4:provision Make setting the domain SID in the self join optionalAndrew Bartlett2009-11-271-3/+4
|
* s4: Improve updateprovisionMatthieu Patou2009-11-271-33/+52
| | | | | | | | | * Define a simple upgrade process mode (module storage change, file name change, copy of new file) * Move the schema, configuration and current object upgrade into full upgrade mode * Added the --full switch to select the full upgrade mode, and made simple upgrade mode the default * Make updateprovision works without any switch (update the provision in the default location) * Cleanup the messages * Create the reference provision in a subdirectory of the updated provision
* s4: Rename the scriptMatthieu Patou2009-11-271-45/+45
|
* librpc: rerun "make idl"Stefan Metzmacher2009-11-261-1/+1
| | | | metze
* s4:ldap.py - add a test for the enhanced operational attributes checkMatthias Dieter Wallnöfer2009-11-261-0/+11
| | | | (Deny creation of entries with operational attributes specified)
* s4:objectclass LDB module - Prevent write operations on constructed attributesMatthias Dieter Wallnöfer2009-11-261-6/+19
|
* s4:operational LDB module - Don't do the write checks hereMatthias Dieter Wallnöfer2009-11-261-16/+0
| | | | Let this perform the schema in the "objectclass" module.
* s4-smbtorture: refactor RPC-SAMR-LARGE-DC test a little more.Günther Deschner2009-11-261-25/+26
| | | | Guenther
* s4-smbtorture: add torture_samr_context to carry some RPC-SAMR-X specifics.Günther Deschner2009-11-261-84/+111
| | | | Guenther
* s4/torture: port SMBv1 RAW-LOCK tests to SMBv2Steven Danneman2009-11-251-20/+2012
| | | | | | | | | | | | | | | | | | | | | | | | RAW-LOCK ported as: RAW-LOCK-LOCK, RAW-LOCK-LOCKX -> SMB2-LOCK-LOCK RAW-PIDHIGH -> removed, no longer relevant RAW-ASYNC -> SMB2-LOCK-ASYNC, SMB2-LOCK-CANCEL, SMB2-LOCK-CANCEL-TDIS, SMB2-LOCK-CANCEL-LOGOFF RAW-ERRORCODE -> SMB2-LOCK-ERRORCODE RAW-CHANGETYPE -> removed, no longer relevant RAW-ZEROBYTELOCKS -> SMB2-LOCK->ZEROBYTELENGTH RAW-UNLOCK -> SMB2-LOCK-UNLOCK RAW-MULTIPLE_UNLOCK -> SMB2-LOCK-MULTIPLE-UNLOCK RAW-STACKING -> SMB2-LOCK-STACKING BASE-LOCK ported as: BASE-LOCK-LOCK1 -> SMB2-LOCK-ERRORCODE, timeout is no longer relevant BASE-LOCK-LOCK2 -> SMB2-LOCK-CONTEND, SMB2-LOCK-LOCK, SMB2-LOCK-CONTEXT BASE-LOCK-LOCK3 -> SMB2-LOCK-RANGE BASE-LOCK-LOCK4 -> SMB2-LOCK-OVERLAP BASE-LOCK-LOCK5 -> SMB2-LOCK-STACKING BASE-LOCK-LOCK6 -> SMB2-LOCK-CANCEL, change_locktype no longer relevant BASE-LOCK-LOCK7 -> SMB2-LOCK-RW-SHARED, SMB2-LOCK-RW-EXCLUSIVE
* s4/libcli: rename previously reserved field in SMB2 LOCK structSteven Danneman2009-11-256-18/+18
| | | | | The lock.in.reserved field has been renamed lock_sequence in the SMB 2.1 dialect. See MS-SMB 2.2.26.
* s4/libcli: Initialize client PID for SMB2 connectionsSteven Danneman2009-11-253-0/+6
| | | | Set the SMB pid to the Unix pid of the client process.
* s4 torture: Change RAW-OPLOCK to use the documented version of ↵Tim Prouty2009-11-251-4/+4
| | | | | | | | | | | SET_END_OF_FILE_INFO The passtrhough version of SET_END_OF_FILE_INFO is tested in RAW-SFILEINFO-END-OF-FILE. Additionally, the first opener is changed to use SHARE_WRITE for the share mode since SET_END_OF_FILE_INFO actually writes data to the file via truncating/extending.
* s4 torture: Allow onefs to be checked like samba3 and samba4Tim Prouty2009-11-251-0/+1
| | | | | This is needed for the new RAW-SFILEINFO-END-OF-FILE test to differentiate what appears to be a windows bug.
* s4 torture: Add two new setfileinfo testsTim Prouty2009-11-251-0/+191
| | | | | | | | | These tests expose a potential bug in winXP, win7, and likely others. There is also a bug in samba where share modes aren't being enforced where they should. For more details see: http://lists.samba.org/archive/cifs-protocol/2009-November/001130.html
* s4 torture: Split up the torture suite setup for RAW-SFILEINFOTim Prouty2009-11-254-12/+23
| | | | | | | A side effect of this change is that RAW-SFILEINFO now runs the whole suite instead of just the first test. I changed the name of the first test to RAW-SFILEINFO-BASE and changed all of the selftest scripts that call it.