Jelmer Vernooij
94ed43390c
Fix all pyldb tests except for modules.
2008-12-20 22:21:39 +01:00
Jelmer Vernooij
5688f9b13e
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-12-20 21:21:19 +01:00
Jelmer Vernooij
ec80992ef5
Fix tevent python module build as part of samba 4.
2008-12-20 21:19:48 +01:00
Jelmer Vernooij
9b16a5ac16
Merge branch 'master' of ssh://git.samba.org/data/git/samba into tevent-standalone
2008-12-20 20:33:02 +01:00
Jelmer Vernooij
28f80dbb7c
Stop using SWIG for ldb Python bindings.
2008-12-20 19:54:13 +01:00
Jelmer Vernooij
1f4bd4b82c
Fix standalone compilation of events library.
2008-12-20 19:23:30 +01:00
Jelmer Vernooij
383e7c4d16
Add missing files for standalone build.
2008-12-20 18:06:31 +01:00
Andrew Bartlett
f210fbe68b
Corrections to Microsoft's schema and the OpenLDAP mapping file
2008-12-20 16:43:48 +11:00
Andrew Bartlett
012a6524f7
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
2008-12-20 15:11:40 +11:00
Andrew Bartlett
18c095e5d8
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
2008-12-20 14:44:39 +11:00
Andrew Bartlett
6488afaafe
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
2008-12-20 14:44:39 +11:00
Andrew Bartlett
dd5a4681e8
Fix compiler warning when parsing a SID in a data blob
2008-12-20 14:44:39 +11:00
Jeremy Allison
fcadf47a15
Add torture test for bug #5986 - streams rename, so we don't regress.
...
Jeremy.
2008-12-19 18:01:26 -08:00
Jelmer Vernooij
759a3bcc88
Merge branch 'pyregistry' of git://git.samba.org/jelmer/samba
...
Conflicts:
source4/lib/ldb/ldb_wrap.c
2008-12-19 23:55:45 +01:00
Jelmer Vernooij
9617a3945b
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-12-19 23:51:23 +01:00
Volker Lendecke
d26a34c22f
Extend the chain1 test with write&x
2008-12-19 23:49:43 +01:00
Jelmer Vernooij
0898b96d26
Reprocess LDB SWIG file.
2008-12-19 23:48:30 +01:00
Volker Lendecke
9915045a45
Add a torture test simulating Windows write behaviour
...
Jeremy, enjoy :-)
2008-12-19 23:44:41 +01:00
Volker Lendecke
32a7ecf5ce
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
2008-12-19 23:33:55 +01:00
Jelmer Vernooij
89043bda3e
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 :-(
2008-12-19 23:33:43 +01:00
Volker Lendecke
9f31468bd3
Add async cli_write_andx and cli_pull
2008-12-19 23:16:25 +01:00
Jeremy Allison
6eda98dd13
Fix bug #5986 - Editing a stream is broken (rename problems).
...
Jeremy.
2008-12-19 13:59:12 -08:00
Jelmer Vernooij
071a71e27f
Specify explicit path to tevent.h, compilation breaks without it for me.
2008-12-19 22:03:11 +01:00
Jelmer Vernooij
5076c64d43
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-12-19 21:47:45 +01:00
Jelmer Vernooij
6998ef4fe0
Avoid use of parentheses in Python import statements, as it's not supported by Python2.3.
2008-12-19 21:47:31 +01:00
Volker Lendecke
ae1d6020f0
Fix setting smb_len for huge write&x calls
2008-12-19 18:15:30 +01:00
Volker Lendecke
fa5f11279b
Add the cli_wct_ofs routine to calculate the offset for write&x
2008-12-19 18:12:44 +01:00
Volker Lendecke
ae0c6cff25
Remove the direct inbuf reference from construct_reply_common()
2008-12-19 18:08:47 +01:00
Volker Lendecke
13eefa7c43
Add a doxygen comment line I forgot to merge
2008-12-19 17:50:34 +01:00
Volker Lendecke
1f04d07db0
Convert cli_request->outbuf to uint8_t
2008-12-19 17:47:30 +01:00
Jelmer Vernooij
04bef7fe2a
Fix more tests.
2008-12-19 16:08:35 +00:00
Volker Lendecke
398ef0fb85
For large smbwrite&x, we need more than 64k bcc
2008-12-19 16:13:27 +01:00
Volker Lendecke
98c4055bcb
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 :-)
2008-12-19 16:13:26 +01:00
Simo Sorce
af049ae83c
s4:cosmetic: Remove trailing tabs and spaces
2008-12-19 09:58:28 -05:00
Matthias Dieter Wallnöfer
dde0964d72
Small cosmetic LDB patch regarding return values.
...
It changes some "return 0" in "return LDB_SUCCESS"
2008-12-19 09:54:20 -05:00
Volker Lendecke
45ad3df140
Fix the padding calculation in smb_splice_chain for "bytes_padding!=0"
2008-12-19 14:53:29 +01:00
Volker Lendecke
4abdd3981e
Pass "bytes_alignment" up through cli_request_send
...
This parameter makes smb_spice_chain add padding before the bytes field
2008-12-19 14:53:29 +01:00
Jelmer Vernooij
7f4e4df58d
Port over more functionality to new SWIGless Python module.
2008-12-19 13:41:44 +00:00
Björn Jacke
1aff97bc48
correct the description of the "ldap timeout" parameter
2008-12-19 14:23:11 +01:00
Volker Lendecke
2504d78c82
Fix a "ignoring function call result" warning
2008-12-19 13:57:32 +01:00
Volker Lendecke
2fe7d5936a
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 :-)
2008-12-19 13:46:52 +01:00
Volker Lendecke
3c6d070595
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 :-)
2008-12-19 13:38:54 +01:00
Volker Lendecke
42e407b300
Factor out cli_write_max_bufsize
2008-12-19 13:34:26 +01:00
Volker Lendecke
7c3497ef5e
Remove two write-only variables
...
If someone wants those stats, please don't use globals :-)
2008-12-19 13:18:57 +01:00
Jelmer Vernooij
263036a798
Merge branch 'master' of ssh://git.samba.org/data/git/samba into pyregistry
2008-12-19 12:03:17 +00:00
Volker Lendecke
f87da49830
Make cli_negprot async
2008-12-19 10:50:52 +01:00
Volker Lendecke
bb8ca0fdbf
Make cli_negprot return NTSTATUS instead of bool
2008-12-19 10:28:30 +01:00
Volker Lendecke
96a3d7be31
cli_negprot_send -> cli_negprot_sendsync
2008-12-19 10:28:20 +01:00
Jelmer Vernooij
e0672ae29b
Remove swig support from standalone ldb build.
2008-12-19 01:24:00 +00:00
Jelmer Vernooij
a57b1aa0f1
Initial work using manual Python bindings for LDB, rather than SWIG-generated ones.
2008-12-19 01:22:07 +00:00