Tim Potter
5e723ce3c0
Added commands for startpageprinter, endpageprinter, setjob and getjob.
...
(This used to be commit 3da89aa8e4
)
2002-05-08 05:50:12 +00:00
Tim Potter
1359433ad8
Added setjob() command.
...
(This used to be commit 02c63de9e5
)
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 39f58333fa
)
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 07d11f5e09
)
2002-05-08 04:19:52 +00:00
Tim Potter
cd929ae6ce
Added enumjobs command.
...
(This used to be commit bc9dd9b458
)
2002-05-07 07:06:10 +00:00
Tim Potter
2b34442922
rpcstr_pull() src_len fix.
...
(This used to be commit 7da054d814
)
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 775549b70e
)
2002-05-06 04:53:44 +00:00
Tim Potter
0a01e23e2b
Removed unused arg to deleteform.
...
(This used to be commit 5071fd8fe0
)
2002-05-06 04:52:45 +00:00
Tim Potter
fe816061c1
Re-order args for enumprinterdrivers function.
...
(This used to be commit 5f9f320213
)
2002-05-03 06:21:59 +00:00
Tim Potter
aa69c1ee80
Some examples using the spoolss python module.
...
(This used to be commit 68b9525614
)
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 0f464fc791
)
2002-05-01 04:25:46 +00:00
Tim Potter
451b5feeb7
make proto
...
(This used to be commit 99dee7b101
)
2002-05-01 04:24:01 +00:00
Tim Potter
77922d18a8
Implemented py_to_PRINTER_INFO_3() helper function.
...
(This used to be commit d125f9f7df
)
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 f3f4f0d397
)
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 c02a7a71d6
)
2002-04-20 07:17:36 +00:00
Tim Potter
b0fbd72b41
Started working on setprinter code.
...
(This used to be commit 38d2b1794a
)
2002-04-18 03:35:05 +00:00
Tim Potter
eaf7e2b374
make proto
...
(This used to be commit a721843197
)
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 f2155aa3f4
)
2002-04-15 23:33:09 +00:00
Tim Potter
b84cce809b
Skeleton for SAMR module.
...
(This used to be commit 70bd1a0f94
)
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 4bf6a9830a
)
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 45cb1fed49
)
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 4114fe5996
)
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 39546dd241
)
2002-04-14 23:33:31 +00:00
Tim Potter
8d680f8796
Added enumerate trusted domains.
...
(This used to be commit 3a11ce31ca
)
2002-04-14 12:26:09 +00:00
Tim Potter
06f1577930
New file to hold common prototypes.
...
(This used to be commit d586289197
)
2002-04-14 09:04:45 +00:00
Tim Potter
562393fc85
Moved security descriptor routines into their own file.
...
(This used to be commit 8e0457f8aa
)
2002-04-14 09:04:12 +00:00
Tim Potter
cc8dce0deb
Moved function prototypes to py_common_proto.h
...
(This used to be commit f006bcf8e5
)
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 2d2c925014
)
2002-04-14 09:00:13 +00:00
Tim Potter
db32b9ceb7
Made a comment clearer.
...
(This used to be commit 703e0a6ce2
)
2002-04-14 04:55:18 +00:00
Tim Potter
d837a511e8
Generate proto for lsa.
...
Updated patch.
(This used to be commit 5dbd716b99
)
2002-04-14 01:01:39 +00:00
Tim Potter
a160d7bbb1
Starting work on lsa module.
...
(This used to be commit 5c44397803
)
2002-04-14 01:00:49 +00:00
Tim Potter
54bda76922
More open_pipe_creds() refactoring.
...
(This used to be commit 7f2c814237
)
2002-04-14 00:59:50 +00:00
Tim Potter
8d994f432d
Moved open_pipe_creds() function to common file.
...
(This used to be commit 14e4d889a2
)
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 094a51edb9
)
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 6c7b5e15c2
)
2002-04-11 05:04:05 +00:00
Tim Potter
81ca81e85b
Added a whole bunch more permission constants.
...
(This used to be commit f8673bd499
)
2002-04-11 01:35:53 +00:00
Tim Potter
416165a52c
Added WERR_INVALID_FORM_NAME constant.
...
(This used to be commit 908b70f3e2
)
2002-04-09 05:11:34 +00:00
Tim Potter
07a65b3f07
Fixed setform and addform functions.
...
(This used to be commit ecba275cf7
)
2002-04-09 04:23:52 +00:00
Tim Potter
cc29c33fbe
Added constants for form types and WERROR values.
...
(This used to be commit 5ef5e805d5
)
2002-04-09 04:22:27 +00:00
Tim Potter
af7d3db053
New version of patch.
...
(This used to be commit 50f331ff33
)
2002-04-05 05:56:44 +00:00
Tim Potter
bf64a572ef
make proto
...
(This used to be commit 0448c12a56
)
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 f9f1d80f6e
)
2002-04-05 05:55:23 +00:00
Tim Potter
2aa9e1c22e
Fixed dodgy looking prototypes for py_to_* functions.
...
(This used to be commit 847e310921
)
2002-04-05 05:52:20 +00:00
Tim Potter
af96550f17
Removed unused label.
...
(This used to be commit e0a209bf29
)
2002-04-05 05:49:33 +00:00
Tim Potter
f9b571811d
Converted drivers, forms and ports functions to use new conversion routines
...
and exception throwing.
(This used to be commit ed0a6480f7
)
2002-04-05 05:48:01 +00:00
Tim Potter
77ab3b8850
Added py_spoolss_printers_conv.c to spoolss extension.
...
(This used to be commit d1e2356f13
)
2002-04-05 04:57:06 +00:00
Tim Potter
80e8fee64d
make proto
...
(This used to be commit c8278b0a92
)
2002-04-05 04:55:26 +00:00
Tim Potter
14c9883541
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.
(This used to be commit 07d79f4aa8
)
2002-04-05 04:54:48 +00:00
Tim Potter
8735af51e2
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.
(This used to be commit abe39ebcc1
)
2002-04-05 04:53:20 +00:00
Tim Potter
a05b7f721e
Don't include py_spoolss_conv.h by default. We want to hide these
...
functions from method functions.
(This used to be commit bbf905e29e
)
2002-04-05 04:49:39 +00:00
Tim Potter
f243d4e7c8
Added functions to return Python tuples (error code, error string)
...
corresponding to NT and DOS errors.
(This used to be commit cb243e2766
)
2002-04-05 04:47:43 +00:00
Tim Potter
c15c667afb
Start to make argument ordering consistent.
...
(This used to be commit e84cc7ea84
)
2002-04-03 04:47:44 +00:00
Tim Potter
5414561d40
Docstring updates.
...
(This used to be commit f05c3c6fc5
)
2002-04-03 04:40:35 +00:00
Tim Potter
baee819582
Use Py_InitModule3() instead of Py_InitModule4() when we only want to set
...
the docstring for the module.
Doc updates.
(This used to be commit ba5364b306
)
2002-04-03 04:38:59 +00:00
Tim Potter
230e36ccde
Aborted experiment to avoid namespace pollution and prototype hell and
...
moved to 'make proto' based solution.
(This used to be commit 1e48f872a4
)
2002-03-28 04:14:43 +00:00
Tim Potter
b1d54184c8
Use winbind separator in sid_to_name() function.
...
Implemented auth() and auth_crap() functions.
Expanded docstrings for exported functions, with examples. Now 'pydoc
winbind' returns a nice looking manual page!
Wrote module docstring.
(This used to be commit 26a7333347
)
2002-03-28 03:22:41 +00:00
Tim Potter
149291d3cf
Updated version.
...
(This used to be commit a66e04711a
)
2002-03-28 00:08:47 +00:00
Tim Potter
8d02bb0894
Script to generate patch to Makefile.in and configure.in
...
Run like:
python/mkpatch
(This used to be commit 54f2aa437a
)
2002-03-28 00:04:45 +00:00
Tim Potter
2624a47cb4
Converted to #include *.c format.
...
(This used to be commit 992cbfe98b
)
2002-03-27 05:36:13 +00:00
Tim Potter
6deca76e4c
Broke out stuff into other files.
...
(This used to be commit 9eb3eb8513
)
2002-03-27 05:33:19 +00:00
Tim Potter
b66111f9ba
Moved pyconv definitions across.
...
Fixed misc compile problems.
(This used to be commit 723bfa1a85
)
2002-03-27 05:28:42 +00:00
Tim Potter
b2df666ca9
Fixed bug in guards.
...
(This used to be commit 22990c3dda
)
2002-03-27 05:27:08 +00:00
Tim Potter
4d05c91c79
Converted to #include *.c format to avoid namespace pollution and
...
header file madness.
(This used to be commit 0f179ebf7e
)
2002-03-27 05:25:57 +00:00
Tim Potter
e9ad51af1d
Moved general printer related calls here.
...
(This used to be commit eb8cd68bc9
)
2002-03-27 05:25:13 +00:00
Tim Potter
d035eda397
Moved printer driver related calls here.
...
(This used to be commit d4b8000e1f
)
2002-03-27 05:23:42 +00:00
Tim Potter
7e686ace08
Moved conv functions to separate file.
...
Converted remaining functions to methods.
(This used to be commit 1e894487f5
)
2002-03-26 11:12:16 +00:00
Tim Potter
64172f5863
#include "py_conv.h"
...
(This used to be commit 2c935bc1ea
)
2002-03-26 11:09:35 +00:00
Tim Potter
1e926afe0f
Added ports and conversion routines.
...
(This used to be commit eff595d068
)
2002-03-26 11:09:07 +00:00
Tim Potter
b9c0eb8bdd
Regenerated patch.
...
(This used to be commit 34cc49d929
)
2002-03-26 11:08:25 +00:00
Tim Potter
04ab61a56c
Port related functions.
...
(This used to be commit 5dc7e350ec
)
2002-03-26 11:08:09 +00:00
Tim Potter
577637b0f9
Samba structure <-> Python dictionary helper functions.
...
(This used to be commit 6c8a2ad167
)
2002-03-26 11:07:45 +00:00
Tim Potter
7cf6b169a3
Moved form related functions as methods in the policy handle object.
...
(This used to be commit 7c4bcc48aa
)
2002-03-26 06:25:47 +00:00
Tim Potter
b39e0d6b43
Append $(srcdir) to include directories.
...
(This used to be commit ff52627566
)
2002-03-26 06:23:28 +00:00
Tim Potter
258b72c96d
Pass $(srcdir) to setup.py
...
(This used to be commit 1926828c5d
)
2002-03-26 06:22:21 +00:00
Tim Potter
8391260e13
Renamed internal methods so as not to clash with symbols within Samba.
...
Set up and use winbind separator in config object.
Implemented:
- uid to sid
- gid to sid
- sid to uid
- sid to gid
Added RID constants.
(This used to be commit 9afd17f154
)
2002-03-26 06:20:51 +00:00
Tim Potter
64f18308b7
Added enumerate trusted domains and check secret.
...
Added configuration dictionary to retrieve smb.conf parameters.
(This used to be commit 4d31151977
)
2002-03-22 00:10:53 +00:00
Tim Potter
a17b5158f1
Actually use flags passed in PYTHON_CFLAGS variable.
...
Use py_common.c in winbind extension module for correct initialisation.
Some reformatting.
(This used to be commit b1b7ae8bcf
)
2002-03-20 06:29:23 +00:00
Tim Potter
747e020a07
Added enum domain users and enum domain groups.
...
(This used to be commit ba0624d0c3
)
2002-03-20 06:27:41 +00:00
Tim Potter
7106ed0d25
Pass $(CFLAGS) and $(CPPFLAGS) to python compile instead of $(FLAGS)
...
(This used to be commit 8e4bb2f8a0
)
2002-03-20 04:58:38 +00:00
Tim Potter
04b555952c
Added name_to_sid and sid_to_name functions.
...
(This used to be commit 5e955b5fcc
)
2002-03-20 04:53:44 +00:00
Tim Potter
9cd6e74e8b
Remove nsswitch from include directories.
...
(This used to be commit 19dd8ba826
)
2002-03-20 04:51:40 +00:00
Tim Potter
e9f2a38ff1
Ignore autogenerated setup.py
...
(This used to be commit b06fc0cc84
)
2002-03-20 03:32:44 +00:00
Tim Potter
d07cc9d8a1
Initial version.
...
(This used to be commit d35770d06f
)
2002-03-20 03:29:03 +00:00
Tim Potter
4ee3eb8987
Patch to configure.in and Makefile.in for Python extensions.
...
(This used to be commit 4d172b712f
)
2002-03-19 23:36:06 +00:00
Tim Potter
e97b158dcc
setup.py for samba python wrappers
...
(This used to be commit 85650ee3bc
)
2002-03-19 22:55:21 +00:00