1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00
Commit Graph

259 Commits

Author SHA1 Message Date
acecee6f2b Moved function to parse a list of unicode strings into util file.
It's now used in parsing printer driver structures and the response
from the enumprinterkey rpc.
-
dd73568f97 pytdbpack_unpack: Clean up, and correct the handling of '$'. -
2a492c4854 Add another test case for repeated-unpack ('$') -
248067931a pytdbpack_pack_data: Allow first argument to be any kind of Number,
not just an Integer.  Coerce appropriately.
-
db67c5f7e5 pytdbpack_pack_data: If the first argument to a 'B' code is not an
Integer, raise an error rather than just returning Null, which breaks
the interpreter.
-
49a0ba46e6 pytdbpack_pack_data: Oops, since B is separately encoded as buffer and
length we need separate counters traversing the format and value
sequences to pack them.
-
db2c393dd4 Update test cases. -
d72b144e03 pytdbpack_unpack: Handle unpacking Buffers into (LEN, DATA): form list
by appending, rather than preallocating.
-
7827536c15 Add more test cases that now work. -
2085595565 pytdbpack_pack_data: Allow 'd' and 'w' formats to take either Integer
or Long arguments.
-
2593e15883 Make sure uint32 unpacking is unsigned, and generates a Python long so
that it can represent all the unsigned values
-
a9c2817c79 Re-add some tests which do work with both implementations -
6be885da2c Comment out test cases where the old and new parser are different. -
30525aee33 pytdbpack_calc_reqd_len: Correct calculation of packed length of
string types
-
20d88a7d1e Change to representing buffers ('B') as (LEN, STRING) in Python,
rather than as just a string.  Makes the code more messy, but needed
for compatibility with existing PSA Python code which seems to be too
knotty to separate out.
-
631945a03a test_pack_extra: Add additional cases.
test_pack_failures: Remove cases for which old code is too lax.
-
12c3bb99a5 test_pack_extra: Better way of testing packing with extra values. -
0c1cfe5598 pytdbpack_calc_reqd_len: It's no longer an error to supply more data
values than are consumed.
-
21e4186642 Doc -
b0143e77d6 test_pack_extra: The old code does not complain when there are too
many data values for the format.  Test that the new code behaves the
same way.
-
04cad599f4 test_pack_failures: The old code does not complain when there are too
many data values for the format, so we don't test that here.

test_large: New test case for packing/unpack a thousand values.
-
1b681bd524 pytdbpack_calc_reqd_len: Make exception be thrown correctly when a
non-string is used with a string format code.  (It was being generated
but not thrown.)

Also call checked versions of some functions rather than FAST_*
versions.
-
5ade138bb8 test_pack_failures: The old and new code is not exactly the same about
error detection, so now we don't care what exact error is returned as
long as we get something.
-
ed0e4a670d test_pack: Coercing a dictionary to a sequence as it is packed is not
compatible with the old code, and so it is removed from the test case.
-
6945e89e2d Fix boog in argument list for nt_create_andx. -
3a7f8a568e Added close and unlink functions. -
06caeed588 Fixed bug in session setup kwlist.
Added some basic error handling.  Just throw a RuntimeError exception
on error.
-
44dd7746ed Test both new samba.tdbpack and oldtdbutil pack/unpack routines.
This makes the test suite fail because at the moment they are in fact
not behaving the same way.
-
2dc4373727 Import old pure Python version of tdbpack/unpack, so that we can do
compatibility testing against the shiny new C version.

This version is slightly modified to not call codepage conversion
routines, and renamed tdbutil->oldtdbutil.
-
e27d3d20e3 The libsmb module uses py_ntsec.o -
3fd568ef5c Fixed up tconx function. Implemented nt_create_andx, query_secdesc
and set_secdesc functions.
-
b740c7e505 Whoops - this should be in py_smb.c -
6139ab3cbc Give better error messages for TypeError, which will arise if e.g. you
try to pack an Int using a string tdbpack format.
-
a4790ba42c More cleanups of validation functions. -
7f45bad319 Zero some more return values. -
121db5b682 level should be a uint32 in enum_ports function. -
672c07e243 Stricter validation in python->C conversion functions. -
35413be0ac Fixed DRIVER_INFO_3 conversion function to check for dependent_files
key.
-
b7ef2e8b41 Added stubs for query/set security descriptors on files. Not even close to
working yet.
-
a9f632ed5d Add extra parm to cli_full_connection call. Tim, you should probably look at this. -
86c884c3a1 make proto -
3a0a30beda open_pipe_creds() now takes a pipe index instead of a pipe name. -
cfb0c12eb6 Fix for new arguments of cli_nt_session_open() -
7ce782c20c The security descriptor in a PRINTER_INFO_2 could be NULL. (Bong?) -
105ff7c540 Remove hardcoded -I stuff. Hooray! -
3ce8f8c50c Bong! The devmode could be NULL. Don't crash if this is the case. -
c7845b3c43 Fixed bug in keyword args for enumprinterdataex -
154c59c8f9 Moving to subdirectory. -
739ea89eb3 Implement printerdata_ex as Python dictionary. Read only at the moment. -
3c6975c711 Display the repr() of non-string dictionary values. -