Jelmer Vernooij [Sat, 20 Dec 2008 18:54:13 +0000 (19:54 +0100)]
Stop using SWIG for ldb Python bindings.
Jelmer Vernooij [Sat, 20 Dec 2008 18:23:30 +0000 (19:23 +0100)]
Fix standalone compilation of events library.
Jelmer Vernooij [Sat, 20 Dec 2008 17:06:31 +0000 (18:06 +0100)]
Add missing files for standalone build.
Andrew Bartlett [Sat, 20 Dec 2008 05:43:48 +0000 (16:43 +1100)]
Corrections to Microsoft's schema and the OpenLDAP mapping file
Andrew Bartlett [Sat, 20 Dec 2008 04:11:40 +0000 (15:11 +1100)]
Treat DN+STring as a binary string for now
This matches the way we work with DN+Binary. We need this for the
OpenLDAP backend.
Andrew Bartlett
Andrew Bartlett [Sat, 20 Dec 2008 01:05:48 +0000 (12:05 +1100)]
Don't trust sscanf not to run off the end of the string
The memory allocations here are wasteful, but they do nicely ensure we
cannot walk off the end of the DATA_BLOB that might be a string, or
might be binary and might not be NULL terminated.
Andrew Bartlett
Andrew Bartlett [Fri, 19 Dec 2008 04:24:36 +0000 (15:24 +1100)]
Now store the GUID and SID from a DN over DRSUAPI into ldb.
Until the extended DN work was compleated, there was no way to store
the additional metadata.
Andrew Bartlett
Andrew Bartlett [Fri, 19 Dec 2008 04:23:58 +0000 (15:23 +1100)]
Fix compiler warning when parsing a SID in a data blob
Jeremy Allison [Sat, 20 Dec 2008 02:01:26 +0000 (18:01 -0800)]
Add torture test for bug #5986 - streams rename, so we don't regress.
Jeremy.
Jelmer Vernooij [Fri, 19 Dec 2008 22:55:45 +0000 (23:55 +0100)]
Merge branch 'pyregistry' of git://git.samba.org/jelmer/samba
Conflicts:
source4/lib/ldb/ldb_wrap.c
Jelmer Vernooij [Fri, 19 Dec 2008 22:51:23 +0000 (23:51 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Volker Lendecke [Fri, 19 Dec 2008 22:49:14 +0000 (23:49 +0100)]
Extend the chain1 test with write&x
Jelmer Vernooij [Fri, 19 Dec 2008 22:48:30 +0000 (23:48 +0100)]
Reprocess LDB SWIG file.
Volker Lendecke [Fri, 19 Dec 2008 22:41:19 +0000 (23:41 +0100)]
Add a torture test simulating Windows write behaviour
Jeremy, enjoy :-)
Volker Lendecke [Fri, 19 Dec 2008 22:33:55 +0000 (23:33 +0100)]
Make smbclient "put" use cli_push
This should fill the TCP socket even beyond the smbclient io_bufsize, very much
like smbclient "get" should do it since 3.2
Jelmer Vernooij [Fri, 19 Dec 2008 22:33:43 +0000 (23:33 +0100)]
Depend on specific version of LDB, as the API seems to unstable
to predict that newer versions (even minor versions) are going to be be
backwards compatible :-(
Volker Lendecke [Fri, 19 Dec 2008 21:58:34 +0000 (22:58 +0100)]
Add async cli_write_andx and cli_pull
Jeremy Allison [Fri, 19 Dec 2008 21:59:12 +0000 (13:59 -0800)]
Fix bug #5986 - Editing a stream is broken (rename problems).
Jeremy.
Jelmer Vernooij [Fri, 19 Dec 2008 21:03:11 +0000 (22:03 +0100)]
Specify explicit path to tevent.h, compilation breaks without it for me.
Jelmer Vernooij [Fri, 19 Dec 2008 20:47:45 +0000 (21:47 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Fri, 19 Dec 2008 20:47:31 +0000 (21:47 +0100)]
Avoid use of parentheses in Python import statements, as it's not supported by Python2.3.
Volker Lendecke [Fri, 19 Dec 2008 17:15:30 +0000 (18:15 +0100)]
Fix setting smb_len for huge write&x calls
Volker Lendecke [Fri, 19 Dec 2008 17:12:44 +0000 (18:12 +0100)]
Add the cli_wct_ofs routine to calculate the offset for write&x
Volker Lendecke [Fri, 19 Dec 2008 17:07:44 +0000 (18:07 +0100)]
Remove the direct inbuf reference from construct_reply_common()
Volker Lendecke [Fri, 19 Dec 2008 16:50:34 +0000 (17:50 +0100)]
Add a doxygen comment line I forgot to merge
Volker Lendecke [Fri, 19 Dec 2008 16:44:32 +0000 (17:44 +0100)]
Convert cli_request->outbuf to uint8_t
Jelmer Vernooij [Fri, 19 Dec 2008 16:08:35 +0000 (16:08 +0000)]
Fix more tests.
Volker Lendecke [Fri, 19 Dec 2008 15:11:14 +0000 (16:11 +0100)]
For large smbwrite&x, we need more than 64k bcc
Volker Lendecke [Fri, 19 Dec 2008 15:10:08 +0000 (16:10 +0100)]
Add some comments
If it takes more than 10 seconds to understand the code you've written yourself
less than a year ago, it's time for comments or refactoring. I couldn't find a
way to refactor that cleanly, so add comments :-)
Simo Sorce [Fri, 19 Dec 2008 14:58:28 +0000 (09:58 -0500)]
s4:cosmetic: Remove trailing tabs and spaces
Matthias Dieter Wallnöfer [Fri, 19 Dec 2008 14:54:20 +0000 (09:54 -0500)]
Small cosmetic LDB patch regarding return values.
It changes some "return 0" in "return LDB_SUCCESS"
Volker Lendecke [Fri, 19 Dec 2008 13:28:29 +0000 (14:28 +0100)]
Fix the padding calculation in smb_splice_chain for "bytes_padding!=0"
Volker Lendecke [Fri, 19 Dec 2008 13:27:20 +0000 (14:27 +0100)]
Pass "bytes_alignment" up through cli_request_send
This parameter makes smb_spice_chain add padding before the bytes field
Jelmer Vernooij [Fri, 19 Dec 2008 13:41:44 +0000 (13:41 +0000)]
Port over more functionality to new SWIGless Python module.
Björn Jacke [Fri, 19 Dec 2008 11:12:59 +0000 (12:12 +0100)]
correct the description of the "ldap timeout" parameter
Volker Lendecke [Fri, 28 Nov 2008 18:53:59 +0000 (19:53 +0100)]
Fix a "ignoring function call result" warning
Volker Lendecke [Mon, 15 Dec 2008 11:06:00 +0000 (12:06 +0100)]
Prefer network writes over reads
If we really want to keep the pipe busy, we need to write everything we have as
early as possible, giving the kernel the chance to get rid of the buffers
quickly :-)
Volker Lendecke [Sun, 14 Dec 2008 12:18:22 +0000 (13:18 +0100)]
Move some bytes from data to text, make use of the ARRAY_SIZE macro
Probably pointless, but it doesn't add complexity and it is fun to see bss and
data shrink :-)
Volker Lendecke [Sat, 13 Dec 2008 12:46:28 +0000 (13:46 +0100)]
Factor out cli_write_max_bufsize
Volker Lendecke [Sun, 14 Dec 2008 13:45:41 +0000 (14:45 +0100)]
Remove two write-only variables
If someone wants those stats, please don't use globals :-)
Jelmer Vernooij [Fri, 19 Dec 2008 12:03:17 +0000 (12:03 +0000)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into pyregistry
Volker Lendecke [Fri, 19 Dec 2008 09:50:52 +0000 (10:50 +0100)]
Make cli_negprot async
Volker Lendecke [Thu, 11 Sep 2008 16:57:49 +0000 (18:57 +0200)]
Make cli_negprot return NTSTATUS instead of bool
Volker Lendecke [Thu, 11 Sep 2008 05:31:34 +0000 (07:31 +0200)]
cli_negprot_send -> cli_negprot_sendsync
Jelmer Vernooij [Fri, 19 Dec 2008 01:24:00 +0000 (01:24 +0000)]
Remove swig support from standalone ldb build.
Jelmer Vernooij [Fri, 19 Dec 2008 01:22:07 +0000 (01:22 +0000)]
Initial work using manual Python bindings for LDB, rather than SWIG-generated ones.
Andrew Bartlett [Fri, 19 Dec 2008 00:01:25 +0000 (11:01 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel
Sreepathi Pai [Thu, 18 Dec 2008 23:35:52 +0000 (10:35 +1100)]
Fix errors in MS-AD_Schema_Attributes_v20080618.txt
- Remove spurious line breaks
- Add missing attributeId from docs
- Remove incorrect multiple values of systemFlags
- Fix duplicate attributeId
- Fix schemaIdGuid syntax
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Stefan (metze) Metzmacher [Thu, 18 Dec 2008 23:34:47 +0000 (10:34 +1100)]
Here's the prefixMap from w2k8.
We need to move 1.3.6.1.4.1.7165.4.1 and 1.3.6.1.4.1.7165.4.2 to the
end...(if we still need them, which we should avoid)
metze
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Jeremy Allison [Thu, 18 Dec 2008 23:40:05 +0000 (15:40 -0800)]
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Jeremy Allison [Thu, 18 Dec 2008 23:38:28 +0000 (15:38 -0800)]
Comment out the parent inheritance code (this is incorrect) as was
done for POSIX ACLs.
Jeremy.
Tim Prouty [Thu, 18 Dec 2008 23:01:07 +0000 (15:01 -0800)]
s4: Fix include path to work with tevent
Andrew Bartlett [Thu, 18 Dec 2008 22:47:59 +0000 (09:47 +1100)]
Move aggregate schema stub to it's own file
This should make it easier to import just the schema entries from the
WSPP docs.
Andrew Bartlett
Jeremy Allison [Thu, 18 Dec 2008 21:27:42 +0000 (13:27 -0800)]
Fix bug #5980 - Race condition when granting level2 oplocks can cause break notify to be missed.
Jeremy.
Andrew Bartlett [Thu, 18 Dec 2008 21:18:57 +0000 (08:18 +1100)]
Fix failures setting a random password
The test in extract_pw_from_buffer was incorrect: It tested if the
first byte of the new password was 0 (a 1/256 chance for the random
passwords), not if the password was allocated.
Andrew Bartlett
Jelmer Vernooij [Thu, 18 Dec 2008 20:43:05 +0000 (20:43 +0000)]
Cope with slight changes in tdb API.
Jelmer Vernooij [Thu, 18 Dec 2008 20:42:50 +0000 (20:42 +0000)]
Make sure to not close tdb database more than once.
Jelmer Vernooij [Thu, 18 Dec 2008 19:49:53 +0000 (19:49 +0000)]
Remove swig use from tdb standalone build.
Jelmer Vernooij [Thu, 18 Dec 2008 19:41:02 +0000 (19:41 +0000)]
Implement missing functions in pytdb.
Jelmer Vernooij [Thu, 18 Dec 2008 18:57:21 +0000 (18:57 +0000)]
Add simple manually written replacement for the tdb module.
Jelmer Vernooij [Thu, 18 Dec 2008 16:51:59 +0000 (16:51 +0000)]
Fix Python event tests after rename to tevent.
Jelmer Vernooij [Thu, 18 Dec 2008 16:50:54 +0000 (16:50 +0000)]
Fix samba3sam test after removal of dom_sid IDL file.
Jelmer Vernooij [Thu, 18 Dec 2008 16:49:33 +0000 (16:49 +0000)]
Use plain Python C API for registry module, rather than SWIG.
Jelmer Vernooij [Thu, 18 Dec 2008 15:32:58 +0000 (15:32 +0000)]
Add convenience macro for raising exceptions for NTSTATUS / WERROR.
Jelmer Vernooij [Thu, 18 Dec 2008 14:54:57 +0000 (14:54 +0000)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into pyregistry
Stefan Metzmacher [Wed, 17 Dec 2008 22:13:44 +0000 (23:13 +0100)]
s4:lib/socket: socket_connect_send() and socket_connect_ev() should only wrok with addresses
metze
Stefan Metzmacher [Wed, 17 Dec 2008 23:09:17 +0000 (00:09 +0100)]
s4:librpc/rpc: remove we should not redo the name resolving for secondary tcp connections
metze
Stefan Metzmacher [Wed, 17 Dec 2008 22:12:10 +0000 (23:12 +0100)]
s4:libcli/wrepl: we don't need to resolve names
metze
Stefan Metzmacher [Wed, 17 Dec 2008 15:55:44 +0000 (16:55 +0100)]
s4:libcli/replace: add some RESOLVE_NAME_FLAG* flags
metze
Stefan Metzmacher [Thu, 18 Dec 2008 00:02:25 +0000 (01:02 +0100)]
s4:selftest: we pass raw.delete.delete21
metze
Stefan Metzmacher [Thu, 18 Dec 2008 00:00:47 +0000 (01:00 +0100)]
s4:ntvfs_generic: pass RAW-OPEN again
This is the samba4 version of commit
9391dad85d08bb0939f4db1472c6cf063ebea892
metze
Stefan Metzmacher [Thu, 18 Dec 2008 07:54:59 +0000 (08:54 +0100)]
RAW-CHKPATH: not every server behaves like samba3...
metze
Stefan Metzmacher [Thu, 18 Dec 2008 06:49:41 +0000 (07:49 +0100)]
BASE-LOCK: fix LOCK5
We need to close all 3 file handle to make the unlink work.
metze
Andrew Bartlett [Thu, 18 Dec 2008 06:17:56 +0000 (17:17 +1100)]
Handle different failure modes when we wipe the db in provision
We didn't handle the mode where we can't load the main sam.ldb due to
the modules being 'wrong', and when we did remove the file, we didn't
wipe the partitions.
Andrew Bartlett [Thu, 18 Dec 2008 03:31:52 +0000 (14:31 +1100)]
Parse options (and open the database) before starting transactions
Andrew Bartlett [Thu, 18 Dec 2008 03:30:11 +0000 (14:30 +1100)]
Print error strings when transactions fail in ldb tools
Andrew Bartlett [Thu, 18 Dec 2008 03:12:19 +0000 (14:12 +1100)]
Rename ldb index pointer wrapper function
This also asserts that it is used only for index records.
Andrew Bartlett
Aravind Srinivasan [Wed, 17 Dec 2008 20:02:19 +0000 (12:02 -0800)]
s3: Add statvfs implementation to the onefs vfs module
Jeremy Allison [Thu, 18 Dec 2008 01:30:18 +0000 (17:30 -0800)]
Samba3 smbd now passes test BATCH23 (with the fix for bug #5979), only BATCH22 left to fix.
Jeremy.
Jeremy Allison [Thu, 18 Dec 2008 01:24:54 +0000 (17:24 -0800)]
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Jeremy Allison [Thu, 18 Dec 2008 01:23:13 +0000 (17:23 -0800)]
Fix bug #5979 - Level 2 oplocks being granted improperly,
Jeremy.
Michael Adam [Wed, 17 Dec 2008 21:27:39 +0000 (22:27 +0100)]
packaging(RHEL-CTDB): fix typo in [u]mount.cifs installation
Michael
(cherry picked from commit
835108bcf84a5f47f46d237c7a93c572348125a1)
Signed-off-by: Michael Adam <obnox@samba.org>
Michael Adam [Wed, 17 Dec 2008 17:56:34 +0000 (18:56 +0100)]
packaging(RHEL-CTDB): fix build of [u]mount.cifs
mount.cifs is now built by make everything.
And it needs extra objects anyways (mtab.o),
which is why the build of mount.cifs failed.
Michael
(cherry picked from commit
96c811cf222be5463a6705feae73d6215685c5f1)
Signed-off-by: Michael Adam <obnox@samba.org>
Michael Adam [Wed, 17 Dec 2008 15:59:24 +0000 (16:59 +0100)]
packaging(RHEL-CTDB): Fix accidential linebreak
Michael
(cherry picked from commit
5cd8ff8a2aba6b1d6821d4ebb986449b03d40542)
Signed-off-by: Michael Adam <obnox@samba.org>
Günther Deschner [Wed, 19 Nov 2008 13:37:47 +0000 (14:37 +0100)]
s3-ntsvcs: remove last traces of hand-marshalled NTSVCS.
Guenther
Günther Deschner [Wed, 19 Nov 2008 13:35:09 +0000 (14:35 +0100)]
s3-ntsvcs: remove old _PNP_GetDeviceList.
Guenther
Günther Deschner [Wed, 19 Nov 2008 13:33:36 +0000 (14:33 +0100)]
s3-ntsvcs: use pidl for _PNP_GetDeviceList.
Guenther
Günther Deschner [Wed, 17 Dec 2008 22:51:30 +0000 (23:51 +0100)]
s4: smbtorture, fix the build of netlogon test after idl change.
Guenther
Günther Deschner [Fri, 12 Dec 2008 23:55:04 +0000 (00:55 +0100)]
s3: refactor _netr_LogonControl{2,2Ex} server side.
Guenther
Günther Deschner [Fri, 12 Dec 2008 23:51:47 +0000 (00:51 +0100)]
s4: fix smbtorture build after idl change.
Guenther
Günther Deschner [Fri, 12 Dec 2008 23:51:18 +0000 (00:51 +0100)]
s3: re-run make samba3-idl.
Guenther
Günther Deschner [Tue, 16 Dec 2008 20:45:52 +0000 (21:45 +0100)]
netlogon: remove netr_BinaryString (duplicate of lsa_BinaryString).
Guenther
Günther Deschner [Sat, 13 Dec 2008 00:13:01 +0000 (01:13 +0100)]
netlogon: fill in remaining levels in netr_CONTROL_DATA_INFORMATION.
Guenther
Günther Deschner [Fri, 12 Dec 2008 21:55:33 +0000 (22:55 +0100)]
netlogon: fix IDL for netr_LogonControl2Ex.
Guenther
Günther Deschner [Fri, 12 Dec 2008 21:53:51 +0000 (22:53 +0100)]
netlogon: add netr_NETLOGON_INFO_4.
Guenther
Günther Deschner [Fri, 12 Dec 2008 21:53:21 +0000 (22:53 +0100)]
netlogon: add all documented netlogon control codes.
Guenther
Stefan Metzmacher [Wed, 17 Dec 2008 16:25:40 +0000 (17:25 +0100)]
s4:libcli/resolve: specify the port for the resulting socket_addresses
metze
Stefan Metzmacher [Sat, 13 Dec 2008 19:50:36 +0000 (20:50 +0100)]
s4:libcli/resolve: optionally return the name that belongs to the returned address
E.g. this helps for DNS CNAME and SRV results.
metze
Stefan Metzmacher [Sat, 13 Dec 2008 10:03:52 +0000 (11:03 +0100)]
s4:libcli/resolve: pass down flags to the resolver backends
metze
Stefan Metzmacher [Sat, 13 Dec 2008 09:57:44 +0000 (10:57 +0100)]
s4:libcli/resolve: remove all backend specific sync functions
metze