1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

92 Commits

Author SHA1 Message Date
Tim Potter
520b40e423 General cleanup of compiler warnings etc.
(This used to be commit 18aeadc591b69bbbd874b7285ecaed50ff587e68)
2002-05-14 02:37:47 +00:00
Tim Potter
4662d9b896 Added entry for winreg extension.
Added extra source file for printerdata routines.
(This used to be commit 34a0293a04cecf20c05a2d09d1ecda64538ca529)
2002-05-13 07:30:41 +00:00
Tim Potter
b2606aaa80 Updated patch.
(This used to be commit 0851f473b7705a3d95dc2727cd7986295d2733ff)
2002-05-13 07:29:38 +00:00
Tim Potter
27c0ce7d11 Removed irritating CR at end of file.
(This used to be commit 2811ac99a1fcc2be02f89a418fe00c99c2bba81c)
2002-05-13 07:28:16 +00:00
Tim Potter
62f63f96e1 Added getprinterdata and setprinterdata functions.
(This used to be commit 325361e9e6e2b2f852cc8607ad93108b80bcef06)
2002-05-13 07:27:20 +00:00
Tim Potter
5ead26e30b Registry module. Only contains REG_xxx constants used by the spoolss
printerdata routines at the moment.
(This used to be commit f2b9447bbdfe025b24a73d1c44885bcadb3f826f)
2002-05-13 06:04:07 +00:00
Tim Potter
950004e125 Added startdocprinter and enddocprinter.
(This used to be commit 954107a9d314c8d87f65f741804ca3f9ca94432e)
2002-05-13 01:55:04 +00:00
Tim Potter
5e723ce3c0 Added commands for startpageprinter, endpageprinter, setjob and getjob.
(This used to be commit 3da89aa8e45d08444bfcddb145264bfcd6f6d768)
2002-05-08 05:50:12 +00:00
Tim Potter
1359433ad8 Added setjob() command.
(This used to be commit 02c63de9e58f9806e58d3862391e05e9b9cdb8fc)
2002-05-08 04:26:22 +00:00
Tim Potter
8e917f27f2 Changed some error returns to return a werror tuple (status code and text
message) instead of just the status code.
(This used to be commit 39f58333fa84dc05cac8d13cabb1f203c5cf2c62)
2002-05-08 04:22:17 +00:00
Tim Potter
646183a78d Remove unused variable.
#ifdef out code for new (uncommitted) version of make_sec_desc()
(This used to be commit 07d11f5e0938c0e4f895391f6c8e2501069a0ef7)
2002-05-08 04:19:52 +00:00
Tim Potter
cd929ae6ce Added enumjobs command.
(This used to be commit bc9dd9b45866d269f576a640286a578da921c3fb)
2002-05-07 07:06:10 +00:00
Tim Potter
2b34442922 rpcstr_pull() src_len fix.
(This used to be commit 7da054d814d16deeea954e2559fdeb97dc323bbb)
2002-05-07 07:00:14 +00:00
Tim Potter
202341dbce Allow lookup_sids() and lookup_names() to take either a list of strings or
just a single string.
(This used to be commit 775549b70e1d2770619c2fe1ed39418a8788dbfe)
2002-05-06 04:53:44 +00:00
Tim Potter
0a01e23e2b Removed unused arg to deleteform.
(This used to be commit 5071fd8fe0ad219f813b490a78c01bb249a3cad6)
2002-05-06 04:52:45 +00:00
Tim Potter
fe816061c1 Re-order args for enumprinterdrivers function.
(This used to be commit 5f9f32021300d47dcc068192428ee48b8aa246ea)
2002-05-03 06:21:59 +00:00
Tim Potter
aa69c1ee80 Some examples using the spoolss python module.
(This used to be commit 68b952561429e1d08a974e633bb9c2870c819c69)
2002-05-02 05:23:38 +00:00
Tim Potter
e8e866867e Got setprinter level 3 working!
Replaced some DEBUG's with PyErr_SetString() calls.
(This used to be commit 0f464fc79118161a97f45f428e4da1069a0be23d)
2002-05-01 04:25:46 +00:00
Tim Potter
451b5feeb7 make proto
(This used to be commit 99dee7b1018f9abc5374bcf877fea1a5cbde6cae)
2002-05-01 04:24:01 +00:00
Tim Potter
77922d18a8 Implemented py_to_PRINTER_INFO_3() helper function.
(This used to be commit d125f9f7dff357bf9eeffc430b5876080f3debeb)
2002-05-01 04:22:20 +00:00
Tim Potter
f530f9c25d Implemented routines to convert from a Python dictionary to a SEC_DESC
structure.

Cleaned up debugging stuff.
(This used to be commit f3f4f0d3978f90c589894234bbcc63728940a246)
2002-05-01 04:19:22 +00:00
Tim Potter
5c261ce93d Return exception text if getprinter level not [0..3]
(This used to be commit c02a7a71d6ddae711c84094e410d1117efc031f0)
2002-04-20 07:17:36 +00:00
Tim Potter
b0fbd72b41 Started working on setprinter code.
(This used to be commit 38d2b1794a0942ac4c2787f06bc5e546508c2515)
2002-04-18 03:35:05 +00:00
Tim Potter
eaf7e2b374 make proto
(This used to be commit a721843197d39c0edc6c464214123be3300d0b91)
2002-04-18 03:24:02 +00:00
Tim Potter
37e4471dea Stubs for connect, domain, user, group and alias policy objects.
Wrote samr connect fn.
(This used to be commit f2155aa3f4608b14777092002c39358b816dbea5)
2002-04-15 23:33:09 +00:00
Tim Potter
b84cce809b Skeleton for SAMR module.
(This used to be commit 70bd1a0f94412236bf6603f16947336cb75c6415)
2002-04-15 07:29:47 +00:00
Tim Potter
9aabbc564f Rename new_policy_hnd_object() to new_spoolss_policy_hnd_object()
(This used to be commit 4bf6a9830acde47994975dffd578454ebb75e45a)
2002-04-14 23:42:54 +00:00
Tim Potter
0c01601d31 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.
(This used to be commit 45cb1fed490d1fdafc5b63f2f5a33dfe5b334972)
2002-04-14 23:39:02 +00:00
Tim Potter
f6da697708 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.
(This used to be commit 4114fe5996f84dfd14855ffdf666e065446607b4)
2002-04-14 23:36:01 +00:00
Tim Potter
3540c42bf4 Shutdown cli_state in the dealloc function. This happens automatically
when a handle object falls out of scope.
(This used to be commit 39546dd241b36d5e7b8e239525a13b91e4e9db80)
2002-04-14 23:33:31 +00:00
Tim Potter
8d680f8796 Added enumerate trusted domains.
(This used to be commit 3a11ce31ca3eed23f3bf82c46b2ebd2423be737d)
2002-04-14 12:26:09 +00:00
Tim Potter
06f1577930 New file to hold common prototypes.
(This used to be commit d5862891979678c4defb3e33791edca1f1f8c3e4)
2002-04-14 09:04:45 +00:00
Tim Potter
562393fc85 Moved security descriptor routines into their own file.
(This used to be commit 8e0457f8aa7b5ecababcdec4dfbc328d11513192)
2002-04-14 09:04:12 +00:00
Tim Potter
cc8dce0deb Moved function prototypes to py_common_proto.h
(This used to be commit f006bcf8e50e44b955678356039a6d6a7e16ab20)
2002-04-14 09:03:05 +00:00
Tim Potter
f143cb6144 Added copyright.
Added lookup_names() and lookup_sids() functions.
(This used to be commit 2d2c925014374605b29e052729e959c0fd690586)
2002-04-14 09:00:13 +00:00
Tim Potter
db32b9ceb7 Made a comment clearer.
(This used to be commit 703e0a6ce2d283349f64cba72b36c1bef6a0d806)
2002-04-14 04:55:18 +00:00
Tim Potter
d837a511e8 Generate proto for lsa.
Updated patch.
(This used to be commit 5dbd716b99c522eac89d9216eb4293084958b966)
2002-04-14 01:01:39 +00:00
Tim Potter
a160d7bbb1 Starting work on lsa module.
(This used to be commit 5c44397803622400390b13f1998b49f5da83d2a1)
2002-04-14 01:00:49 +00:00
Tim Potter
54bda76922 More open_pipe_creds() refactoring.
(This used to be commit 7f2c814237f1df7008c9a91b7cf3b1de01e6ed87)
2002-04-14 00:59:50 +00:00
Tim Potter
8d994f432d Moved open_pipe_creds() function to common file.
(This used to be commit 14e4d889a236dd9c2ba6db68b3133e44195b8a47)
2002-04-14 00:58:16 +00:00
Tim Potter
60fd2ec8cc 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.
(This used to be commit 094a51edb9369f5c493bddfdc98347431bea3c2d)
2002-04-11 05:05:08 +00:00
Tim Potter
d0e6af62d6 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.
(This used to be commit 6c7b5e15c22119623ee959267d2755e21193bc4b)
2002-04-11 05:04:05 +00:00
Tim Potter
81ca81e85b Added a whole bunch more permission constants.
(This used to be commit f8673bd499c7c3993a5860d2ebe9ae2403105316)
2002-04-11 01:35:53 +00:00
Tim Potter
416165a52c Added WERR_INVALID_FORM_NAME constant.
(This used to be commit 908b70f3e23846d0b438a68e45e076e65016e95e)
2002-04-09 05:11:34 +00:00
Tim Potter
07a65b3f07 Fixed setform and addform functions.
(This used to be commit ecba275cf75be3152c917329ba16d77bf4490259)
2002-04-09 04:23:52 +00:00
Tim Potter
cc29c33fbe Added constants for form types and WERROR values.
(This used to be commit 5ef5e805d5f51f6fc4cfcfea7f17adc8d1f6f6eb)
2002-04-09 04:22:27 +00:00
Tim Potter
af7d3db053 New version of patch.
(This used to be commit 50f331ff33413842590f960d2ab1b11cdbece358)
2002-04-05 05:56:44 +00:00
Tim Potter
bf64a572ef make proto
(This used to be commit 0448c12a56fe508b72be4ce43d2c4d1eb16c5943)
2002-04-05 05:55:44 +00:00
Tim Potter
133f5216b3 Added new files for drivers, forms and ports conversion routines.
(This used to be commit f9f1d80f6e8c34a24602a83eb7d1fb2c892b662f)
2002-04-05 05:55:23 +00:00
Tim Potter
2aa9e1c22e Fixed dodgy looking prototypes for py_to_* functions.
(This used to be commit 847e310921802f5793f6cd170e6baf939151be89)
2002-04-05 05:52:20 +00:00