summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-11-19PC Oota Edits.John H Terpstra1-4/+3
2009-11-19s3: Avoid races to change the machine password in winbindVolker Lendecke1-0/+18
The machine password handler has code to deal with every node in the cluster trying to change the machine password at the same time. However, it is not very nice to the DC if everyone tries this simultaneously. This adds a random 0-255 second offset to our timed event. When this fires a bit later than strictly calculated, someone else might have stepped in and have already changed it. The timed event handler will handle this gracefully, it won't even try to do it again.
2009-11-19s3: Protect against flooding the DC with pwchange requestsVolker Lendecke1-14/+24
When there is a temporary problem changing passwords we flooded the DC with pwchange requests. This gives the DC a 60-second break to recover.
2009-11-19s3: Re-check the timeout in machine_password_change_handler()Volker Lendecke1-0/+6
Someone else might have come in between and changed the password since we created that timed request
2009-11-19s3: Add some debugs to the winbind machine pwchange machineryVolker Lendecke1-0/+16
2009-11-19s3: Factor timeval_string out of current_timestring()Volker Lendecke2-12/+14
2009-11-19s3: Do not kill the whole smb session if a machine pwchange failedVolker Lendecke1-1/+1
2009-11-19s3:pdb_ldap: fix a comment typoMichael Adam1-1/+1
Michael
2009-11-19s3: shortcut uid_to_sid when "ldapsam:trusted = yes"Michael Adam1-0/+75
The normal uid_to_sid behaviour is to call sys_getpwuid() to get the name for the given uid and then call the getsampwnam passdb method for the resulting name. In the ldapsam:trusted case we can reduce the uid_to_sid operation to one simple search for the uidNumber attribute and only get the sambaSID attribute from the correspoinding LDAP object. This reduces the number of ldap roundtrips for this operation. Michael
2009-11-19s3-build: really fix build of winbind_krb5_locator.Günther Deschner1-1/+1
Guenther
2009-11-19s3-build: make sure to remove libds and client object files on make clean.Günther Deschner1-1/+3
Guenther
2009-11-19s4:ldbcli - Added encoder/decoder for relax control.Endi S. Dewata1-2/+20
2009-11-18s3: Replace some create_synthetic_smb_fname() callsVolker Lendecke7-115/+63
In very hot codepaths like the statcache copy_smb_filename and the subsequent recursive talloc_free is noticable in the CPU load.
2009-11-18s3: Do not talloc in readdirVolker Lendecke12-141/+198
This is a hot codepath (called from the stat cache)
2009-11-18s3:load_interfaces(): use function gfree_interfaces() that we have.Michael Adam1-9/+1
To reduce code duplication. Michael
2009-11-18Added control copying for message types other than ldb_search.Nadezhda Ivanova1-1/+4
When ildap created a new message to forward, it only copied controls for ldb_search requests. This caused controls for add and modify to be lost in transition and tests for them could not be implemented.
2009-11-18s3/docs: Add "max protocol = smb2" to man smb.conf.Karolin Seeger1-0/+5
Karolin
2009-11-18README.coding: Update rules about code blocks and braces.Kai Blin1-15/+31
2009-11-18selftest: Subunit/Filter.pm only allow expected failures without errorsStefan Metzmacher1-2/+24
metze
2009-11-18s4:selftest: mark samba4.smb2.lock.*.VALID-REQUEST as known failureStefan Metzmacher1-0/+1
metze
2009-11-18SMB2-LOCK: make use of torture_assert_*()Stefan Metzmacher1-12/+6
This is needed in order to mark tests as known failures. metze
2009-11-18s4:ntvfs_generic: check for valid SMB2_LOCK flagsStefan Metzmacher1-0/+8
metze
2009-11-18s4:selftest: fix logic for --option=torture:progress=noStefan Metzmacher1-1/+1
metze
2009-11-18s4:torture/test_gentest.sh: make use of the PREFIX argumentStefan Metzmacher1-5/+6
We should not use hardcode pathes! metze
2009-11-18selftest: ignore empty lines in knownfailuresStefan Metzmacher1-0/+1
metze
2009-11-18selftest/output/plain.pm: report the testuite name on errorStefan Metzmacher1-1/+5
metze
2009-11-18s4:selftest: for now skip the BASE-DELAY-WRITE test completelyStefan Metzmacher1-0/+1
This test randomly fails depending on the timing (the tests are too strict with the values introduced in commit 0fca2b078ceb314e429e24e3318b50451ccf423b) and local filesystem features (timestamp resolution). metze
2009-11-18s4:selftest: avoid running the slow BASE-DELAY-WRITE test on the cifs proxy ↵Stefan Metzmacher1-0/+1
share It's enough to run it on the posix share. metze
2009-11-18s4:selftest: add "rpc.netlogon.*.GetDomainInfo"Stefan Metzmacher1-0/+1
We need to expand the test to work against w2k8 and w2k8r2... metze
2009-11-18fixed the buildAndrew Tridgell1-0/+4
whoever pushed 15d93a5d8e21893e1cca5c989dbf97010aae1622, please check that what you push compiles and passes tests. In this case it didn't compile.
2009-11-17s4/torture: Port SMBv1 Change Notify tests to SMBv2Aravind Srinivasan4-42/+1839
* Ported all tests from raw/notify.c to smb2/notify.c * Parameterized the max_buffer_size so it can be set on a per-target basis. * Fixed CHECK macros to use torture_result * Created a SMB2-NOTIFY test suite
2009-11-17s4/libcli: add a FILE_NOTIFY_CHANGE_ALL macroAravind Srinivasan1-0/+8
This macro encompasses all possible file notifications that can be raised.
2009-11-17s4/torture: add a new ulong parameteric torture optionAravind Srinivasan1-0/+8
2009-11-17torture/smb2: make SMB2 BRL tests pass against W2K8R2Steven Danneman3-100/+111
The BRL tests previously based their results off several bugs in the W2K8 byte range lock code. I've fixed up the tests to pass against Win7 which has fixed these bugs, and assume that the Win7 behavior is the default. I have inverted the test behavior for >63-bit lock requests. The tests previously expected NT_STATUS_OK as their default in this case. I've changed that default to expect STATUS_INVALID_LOCK_RANGE. This may requires some changing of make test to compensate. I've also removed a few test scenarios from VALID-REQUEST in preparation of replacing them with separate tests ported from RAW-LOCK.
2009-11-17Start removing SMB_STRUCT_STAT variables except forJeremy Allison1-15/+13
the directory enumeration code (which needs it). Jeremy.
2009-11-17Remove "store create time" code, cause create time to be storedJeremy Allison15-180/+238
in the "user.DOSATTRIB" EA. From the docs: In Samba 3.5.0 and above the "user.DOSATTRIB" extended attribute has been extended to store the create time for a file as well as the DOS attributes. This is done in a backwards compatible way so files created by Samba 3.5.0 and above can still have the DOS attribute read from this extended attribute by earlier versions of Samba, but they will not be able to read the create time stored there. Storing the create time separately from the normal filesystem meta-data allows Samba to faithfully reproduce NTFS semantics on top of a POSIX filesystem. Passes make test but will need more testing. Jeremy.
2009-11-17s4:WINREG RPC server - remove a "talloc_free"Matthias Dieter Wallnöfer1-2/+0
I assume that this "talloc_free" isn't necessary since the DCERPC server frees the handle itself (we got always warnings about this).
2009-11-17s4:provision_users.ldif - Descriptions generally begin with a majuscleMatthias Dieter Wallnöfer1-2/+2
2009-11-17s4:SAMLDB DSDB module - Add "\n"s on debug messagesMatthias Dieter Wallnöfer1-2/+2
2009-11-17s4:SAMLDB DSDB module - Remove "\n" in LDB error messagesMatthias Dieter Wallnöfer1-25/+31
abartlet suggested me to not use anymore "\n"s in those kind of outputs. Plus, enhance a search filter to consider also "builtinDomain" objects which are basically domain objects too.
2009-11-17Fixed incorrect SID for RAS Servers.Nadezhda Ivanova4-1/+4
2009-11-17s3: Fix the build on SolarisVolker Lendecke2-7/+7
2009-11-17s4:dsdb/schema: let schema_supclasses() return the correct pointerStefan Metzmacher1-2/+2
str_list_unique() changes the pointer via talloc_realloc(). metze
2009-11-17librpc: rerun "make idl"Stefan Metzmacher4-9/+9
metze
2009-11-17netlogon.idl: fix ndr_pull_netr_DatabaseRedo()Stefan Metzmacher1-2/+9
We can't use subcontext_size() here, as change_log_entry_size is encoded after the subcontext. metze
2009-11-17s4:selftest: use "dc:local" instead of a hardcoded config fileStefan Metzmacher1-3/+3
If a tests needs access to the dc's config, it should run as "dc:local", then it can also access unix named pipes... If we pass a hardcoded config file the test fails if you use a selftest_prefix. metze
2009-11-17s4:selftest: allways start with $(ST_RM)Stefan Metzmacher1-2/+2
metze
2009-11-17s4:selftest: place summary file into selftest-prefixStefan Metzmacher1-1/+2
metze
2009-11-17selftest: make sure we don't buffer any outputStefan Metzmacher3-0/+9
metze
2009-11-17selftest: Fix unexpected failure handline in Subunit/Filter.pmStefan Metzmacher1-2/+8
We should only mark the testsuite as expected failure, if there were more than 1 expected failure, but 0 unexpected failures. Before we ignored unexpected failures if there was an expected failure within a testsuite. metze