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

191 Commits

Author SHA1 Message Date
Tim Potter
35d9e886fb Remove todo comment.
(This used to be commit 95831c8266119284264f7f42b08fb4d8e21e9deb)
2002-09-09 01:09:23 +00:00
Tim Potter
bffdffcbb1 Check no extra fields are present when parsing credentials.
(This used to be commit fff081d3440373071d8859b7a7d71cf6489126a4)
2002-09-09 01:06:20 +00:00
Tim Potter
e7561581ff Update patch.
(This used to be commit 31feae9e8f0c9831284cfa85f9b771113549ed2f)
2002-09-08 23:57:40 +00:00
Tim Potter
c9101c3b01 Initial version of printerdata_ex browsing.
(This used to be commit c201a61a52ffbaf1b1b70e25e0ef2b29a89f921c)
2002-09-06 07:44:21 +00:00
Tim Potter
a2327b8485 Move printerdata dictionary object into it's own file.
(This used to be commit c211d2deca1019d3ef9bd08f5a01e76ede2d0191)
2002-09-06 07:34:57 +00:00
Tim Potter
e411dc9687 Decode list of dependent files in printer driver info3 and info6.
It's a null terminated list of null terminated unicode strings.  What
a mess!
(This used to be commit aae48211ff4f22e0c2e2fe57c370f465df4332bc)
2002-09-06 07:01:40 +00:00
Tim Potter
22b75d5c81 level keys are inserted by conv routines.
(This used to be commit b5068bb9fe28cfdd7a00dbc50196eb60e3a46af1)
2002-09-06 06:59:40 +00:00
Tim Potter
b2e4d8e5f9 Convert to new REGISTRY_VALUE cli_spoolss routines.
(This used to be commit 100aa8c893464d65f1b2225dab9dc5b58bbcff91)
2002-09-03 05:00:17 +00:00
Tim Potter
45664627c7 Fixed enumjobs command to use new JOB_INFO_CTR structure.
(This used to be commit 9db5be03617740e705bce51784fdb80784779acb)
2002-09-03 04:58:36 +00:00
Tim Potter
62d6c7f8f8 Display printerdata values in hex.
(This used to be commit cdd64e0860bf05b115e0d107f6cb2b9e1f6d0e9b)
2002-09-03 01:56:05 +00:00
Tim Potter
2e93f20c1b Added utility function to convert python strings to hex dump + ascii.
(This used to be commit 7a6b6a8b4871065e3178223a7da5fafd8792b0bc)
2002-09-03 01:55:21 +00:00
Tim Potter
53495225a5 A printerdata browser I whipped up in about 5 minutes. (-:
Usage: gprinterdata //win2kdc1/fooprinter
(This used to be commit a3e52367c961070ce80ac3d4bba763ad9ec1007c)
2002-09-03 01:48:24 +00:00
Tim Potter
8e56ded996 Rewrote to use gtkdictbrowser.
(This used to be commit 6f78c4181449a995b9d5b2955981a20e4fdcc829)
2002-09-03 01:32:05 +00:00
Tim Potter
86d9d827ce Ignore *.pyc files.
(This used to be commit 519d1589a9358d8c2de01bd23159e3d552554131)
2002-09-03 01:30:26 +00:00
Tim Potter
2a18e89da7 Implement deleteprinterdataex
(This used to be commit a89fe79e222b36eda123ccdbca96badb7714776e)
2002-09-03 01:10:21 +00:00
Tim Potter
611f9c899d Return dictionary of printerdata in enumprinterdataex.
(This used to be commit 348b6778d8b9e42f27da51652c7198cc42048059)
2002-09-03 00:40:06 +00:00
Tim Potter
1f914af0ec Add a 'key' field to printer data dictionary.
Implemented getprinterdataex, setprinterdataex and enumprinterdataex
(doesn't quite work yet).
(This used to be commit fb0f4f7bfe81923adfe71549973da2be57f0e71f)
2002-09-02 07:47:42 +00:00
Tim Potter
7ee13d88a1 make proto
(This used to be commit 88a97d2174eee884de52e848d30bc2c459bf28bb)
2002-09-02 07:44:48 +00:00
Tim Potter
fc8c6e7cf0 Added methods for getprinterdataex, setprinterdataex and enumprinterdataex.
(This used to be commit ac84b220aa2910abec309f2dc048adb84f609786)
2002-09-02 07:44:00 +00:00
Tim Potter
d75fc27fa1 Fix transposed args in open_pipe_creds() function.
(This used to be commit 63e59b0b737a1cd4ccc588b27e86be8262296052)
2002-09-02 07:42:39 +00:00
Tim Potter
d63a6aba6c Forgot to check in some of the libsmb stuff.
(This used to be commit 0a2f6049c0b49810abf1c3e909d712f53c7fc8c1)
2002-08-30 02:43:51 +00:00
Tim Potter
677bae21d1 Abstract out the functionality of gtdbtool into a dictionary browser
class.  This should provide a nice framework for browsing any kind of
data presented as a python dictionary:

 - windows registry
 - printer data
 - tdb files
(This used to be commit 8af86f68354f7c803bb66886560b358d6e48681d)
2002-08-30 01:35:56 +00:00
Tim Potter
7488f61d3c Implemented enum_domain_groups function.
(This used to be commit 9e36824d47f7d1aac14bb5aeded8da54962c90a8)
2002-08-27 01:49:51 +00:00
Tim Potter
b1037bffcf New arguments to cli_spoolss_enum_printers()
(This used to be commit 55f891016c005c1552f1c1d95dd067bbf9de8869)
2002-08-27 00:41:06 +00:00
Tim Potter
16b454f6c7 Added README written by Jelmer - thanks!
(This used to be commit f639eb3817b9edf421dc103394428d607857a0bb)
2002-08-21 23:28:41 +00:00
Tim Potter
269c713edf Compile fix for new cli_lsa_enum_trust_dom() argument list.
(This used to be commit 2f46bdeb4fa1d32fe948af5d7fa80480ff2d2c86)
2002-08-06 01:07:07 +00:00
Tim Potter
598d62bd53 Added connect, session_request, session_setup and tconx methods.
(This used to be commit 76eacaa28546d65b9ddb7ff356f0bd2aaf2f86d8)
2002-08-02 05:35:09 +00:00
Tim Potter
81a4862ae7 Broke out unpacking of a username/password stored in a Python
dictionary into a separate function.
(This used to be commit 10889241d5f5813f499501a45edccc4acd3e9f74)
2002-08-02 05:28:54 +00:00
Tim Potter
0872bc4486 Skeleton for a libsmb python wrapper.
(This used to be commit 36cc488c4d99198d346103b0e44776a7de145428)
2002-07-29 03:50:35 +00:00
Tim Potter
db789e9467 Updated patch.
(This used to be commit b7bd0bf95380f5fae385bfd353999f40f72e3d06)
2002-07-29 03:07:49 +00:00
Tim Potter
0c8e0571b7 Print out a friendly message on error instead of a python exception when
calling tdb.open()

Override Python's SIGINT handler so we can quit from the command line
by hitting Ctrl-C.
(This used to be commit 2adcd0eb4362a20824d1f34b63c0f405a7803872)
2002-07-26 01:01:27 +00:00
Tim Potter
46deff915e Regenerated.
(This used to be commit 7ead9602ce8c30a57cb83d56fb76228945a7599f)
2002-07-11 23:18:41 +00:00
Tim Potter
246ec5ad07 Another compile fix.
(This used to be commit ef5c9698b06c5df99ec07ee781cc54d2e348ba8a)
2002-07-11 23:08:51 +00:00
Tim Potter
cad934c8e9 Compile fix for flags field to cli_full_connection()
(This used to be commit 802f30a1b34888823c1fc80121b3917cb6825119)
2002-07-11 22:19:31 +00:00
Tim Potter
6905730c3e Renamed policy handle field in object containers to avoid cut&paste bugs.
(This used to be commit 93309c0ad4cd66680f94d7a46028b4d392d1cc06)
2002-06-20 00:56:27 +00:00
Tim Potter
b21b66c544 Added samr_open_domain() call.
(This used to be commit 97f70f2cfff72d6040c72d34a569f5c889cbff2e)
2002-06-20 00:54:43 +00:00
Tim Potter
d35c5f39a5 Compile fix for new arguments to cli_full_connection()
(This used to be commit 0d05c8ce54c3fa859abb8bd2ac13cacaed63e95c)
2002-06-20 00:51:07 +00:00
Tim Potter
3adb868e04 Fix long list scrolling bug.
Added some padding around the filter entry to make it look nicer.

When resizing the window the scrolling list should get bigger/smaller
not the filter entry widget.
(This used to be commit f504be133cd9659163a609eb11a09a36e56166ee)
2002-06-04 01:41:44 +00:00
Tim Potter
d80f078647 Separate error handling for cli_full_connection() and cli_nt_session_open()
(This used to be commit 6f269de03e91b823a30a2a12e41f25f1fa050870)
2002-05-28 03:15:09 +00:00
Tim Potter
6aaaa165b7 Raise a ValueError if server name isn't given in UNC format.
(This used to be commit 77be88668d9669a0aaa331c4bbb0faad978f0990)
2002-05-28 03:14:28 +00:00
Tim Potter
6aad72916a Raise a ValueError if server names aren't given in UNC format.
(This used to be commit f5a1a3190dc0d4ecdf55b870633a83ee125b816e)
2002-05-28 02:33:11 +00:00
Tim Potter
e99a265bad Allow None to be used as a valid credential for functions that take a
credential as a parameter.
(This used to be commit 166aee6cc2abb5f6e91ebf3d4ec37454034b8dcd)
2002-05-28 02:09:54 +00:00
Tim Potter
d21f10d3e6 Allow None to be used as a valid credential in open_policy.
Added {get,set}_debuglevel() and setup_logging() functions.
(This used to be commit b6e860546a622e6da238faf56d7c1567c6cf63a5)
2002-05-28 02:08:39 +00:00
Tim Potter
d26bcfaf95 Use a fixed size font for displaying tdb values.
Added a (regexp, function) pair to register display functions for keys
matching regular expressions.

Expand the size of the value scrolling window.

Added hex dump function and some regexps to display DRIVERS, SECDESC and
PRINTERS keys in hex instead of ascii.
(This used to be commit 7d10dc5f7bd12e25ea3e64b380a029c89929156f)
2002-05-27 07:47:58 +00:00
Tim Potter
0f1de232c2 More automatically generated prototype madness.
(This used to be commit 8e1a15a625b72711bcfab77403e6a6b91e434756)
2002-05-27 06:39:10 +00:00
Tim Potter
fdf42114cd Use new version of open_pipe_creds() function.
Don't attempt to free client state returned by cli_full_connection()

Fix memory leaks on error.

Allow setprinter level 1 - doesn't work though.

Extended interface to enumprinters().  The name value passed in the RPC
request can be different from the server name in which case lots of weird
and wonderful information is returned.  Defaults to the server name.
(This used to be commit c75bbda1021838074ff0f2e54edd68c69acccee0)
2002-05-27 06:38:36 +00:00
Tim Potter
de4e9824bd Use new version of open_pipe_creds() function.
(This used to be commit e4aff324c28bfc08e73b627a5c7941109a3c2c2f)
2002-05-27 06:36:30 +00:00
Tim Potter
c2f0e1638e Use new version of open_pipe_creds() function.
Server argument to enumprinterdrivers() must be in UNC format.
(This used to be commit 3b011eb65a45a2b919e0b759f426581100ac17fd)
2002-05-27 06:36:06 +00:00
Tim Potter
2fe386d9b9 Use new version of open_pipe_creds() function.
Fix memory leaks on error.
(This used to be commit b44e82667252c0ff4477d77487ff92b3af8ad418)
2002-05-27 06:35:30 +00:00
Tim Potter
343751ca95 Use new version of open_pipe_creds() function.
A compile fix for enumerating trusted domains.
(This used to be commit fc75c3ccc3bc45ab72db85d46dbedbbdb0e2dff7)
2002-05-27 06:34:13 +00:00