1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-24 15:17:06 +03:00

85 Commits

Author SHA1 Message Date
Tim Potter
3da89aa8e4 Added commands for startpageprinter, endpageprinter, setjob and getjob. -
Tim Potter
02c63de9e5 Added setjob() command. -
Tim Potter
39f58333fa Changed some error returns to return a werror tuple (status code and text
message) instead of just the status code.
-
Tim Potter
07d11f5e09 Remove unused variable.
#ifdef out code for new (uncommitted) version of make_sec_desc()
-
Tim Potter
bc9dd9b458 Added enumjobs command. -
Tim Potter
7da054d814 rpcstr_pull() src_len fix. -
Tim Potter
775549b70e Allow lookup_sids() and lookup_names() to take either a list of strings or
just a single string.
-
Tim Potter
5071fd8fe0 Removed unused arg to deleteform. -
Tim Potter
5f9f320213 Re-order args for enumprinterdrivers function. -
Tim Potter
68b9525614 Some examples using the spoolss python module. -
Tim Potter
0f464fc791 Got setprinter level 3 working!
Replaced some DEBUG's with PyErr_SetString() calls.
-
Tim Potter
99dee7b101 make proto -
Tim Potter
d125f9f7df Implemented py_to_PRINTER_INFO_3() helper function. -
Tim Potter
f3f4f0d397 Implemented routines to convert from a Python dictionary to a SEC_DESC
structure.

Cleaned up debugging stuff.
-
Tim Potter
c02a7a71d6 Return exception text if getprinter level not [0..3] -
Tim Potter
38d2b1794a Started working on setprinter code. -
Tim Potter
a721843197 make proto -
Tim Potter
f2155aa3f4 Stubs for connect, domain, user, group and alias policy objects.
Wrote samr connect fn.
-
Tim Potter
70bd1a0f94 Skeleton for SAMR module. -
Tim Potter
4bf6a9830a Rename new_policy_hnd_object() to new_spoolss_policy_hnd_object() -
Tim Potter
45cb1fed49 Explicitly return a list in py_ntstatus_tuple() and py_werror_typle(). Not
sure whether these should really be tuples or lists.

In open_pipe_creds() raise PyExc_RuntimeError exceptions if the pipe
connect function returns an error.
-
Tim Potter
4114fe5996 Call PyErr_SetString instead of fprintf to stderr.
Don't clean up talloc and cli_state on close printer.  They will be
destroyed in the handle dealloc function.
-
Tim Potter
39546dd241 Shutdown cli_state in the dealloc function. This happens automatically
when a handle object falls out of scope.
-
Tim Potter
3a11ce31ca Added enumerate trusted domains. -
Tim Potter
d586289197 New file to hold common prototypes. -
Tim Potter
8e0457f8aa Moved security descriptor routines into their own file. -
Tim Potter
f006bcf8e5 Moved function prototypes to py_common_proto.h -
Tim Potter
2d2c925014 Added copyright.
Added lookup_names() and lookup_sids() functions.
-
Tim Potter
703e0a6ce2 Made a comment clearer. -
Tim Potter
5dbd716b99 Generate proto for lsa.
Updated patch.
-
Tim Potter
5c44397803 Starting work on lsa module. -
Tim Potter
7f2c814237 More open_pipe_creds() refactoring. -
Tim Potter
14e4d889a2 Moved open_pipe_creds() function to common file. -
Tim Potter
094a51edb9 Implemented a setup_logging() function that takes two keywords:
interactive and logfilename.  These can be used to send Samba DEBUG()
output to stdout or to a logfile which makes automated testing much
funkier.

Also added get_debuglevel() and set_debuglevel() functions.

Make open_pipe_creds() accept None as a anonymous credential.
-
Tim Potter
6c7b5e15c2 Implemented a setup_logging() function that takes two keywords:
interactive and logfilename.  These can be used to send Samba DEBUG()
output to stdout or to a logfile which makes automated testing much
funkier.

Also added get_debuglevel() and set_debuglevel() functions.
-
Tim Potter
f8673bd499 Added a whole bunch more permission constants. -
Tim Potter
908b70f3e2 Added WERR_INVALID_FORM_NAME constant. -
Tim Potter
ecba275cf7 Fixed setform and addform functions. -
Tim Potter
5ef5e805d5 Added constants for form types and WERROR values. -
Tim Potter
50f331ff33 New version of patch. -
Tim Potter
0448c12a56 make proto -
Tim Potter
f9f1d80f6e Added new files for drivers, forms and ports conversion routines. -
Tim Potter
847e310921 Fixed dodgy looking prototypes for py_to_* functions. -
Tim Potter
e0a209bf29 Removed unused label. -
Tim Potter
ed0a6480f7 Converted drivers, forms and ports functions to use new conversion routines
and exception throwing.
-
Tim Potter
d1e2356f13 Added py_spoolss_printers_conv.c to spoolss extension. -
Tim Potter
c8278b0a92 make proto -
Tim Potter
07d79f4aa8 New routines to convert between structures and python dictionaries. We now
hide to_struct() and from_struct() from the caller so we can add custom
fields nicely.
-
Tim Potter
abe39ebcc1 Throw a spoolss.werror exception when the rpc client routines return
errors.

Move to new system of converting between structures and python
dictionaries.  Lots of stuff moved to py_spoolss_printers_conv.c

Setprinter level 2 kind of works now.
-
Tim Potter
bbf905e29e Don't include py_spoolss_conv.h by default. We want to hide these
functions from method functions.
-