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
Tim Potter
24def691ef
Check types of dictionary elements in to_struct()
...
(This used to be commit 793f1042f153bd6ca3f75bebf719d47744ffecde)
2002-05-27 06:33:33 +00:00
Tim Potter
f2cbcec5a4
Convert open_pipe_creds() to use new cli_full_connection() interface.
...
Initialise global_myname in py_samba_init() function.
(This used to be commit e5dcd3c7ccf0060d86a484b8307f747805b20c5f)
2002-05-27 06:32:11 +00:00
Tim Potter
bf7ca61cb4
Honour return value of to_struct() when converting to Samba structures.
...
(This used to be commit 1ef99e76632f6f6b866de491db8722c94f75a8c2)
2002-05-27 06:29:58 +00:00
Tim Potter
3ec6d94f95
Fixed compiler warning.
...
(This used to be commit 736eb3c7485c0e65a463f14f27ada55a1a3fd453)
2002-05-27 06:28:45 +00:00
Tim Potter
b403e16e09
Fixed dodgy arguments to PyArg_ParseTupleAndKeywords()
...
(This used to be commit 45562b86039ec1b2f6d1cf3e9a5aa57cf87a796a)
2002-05-27 06:28:18 +00:00
Tim Potter
82e4fb6fbb
Some rearrangement of header files.
...
(This used to be commit 0b2bd0a2290315056789f6aa1421678583086fc6)
2002-05-27 06:23:30 +00:00
Tim Potter
6a663f5a2a
Compile fix for enum trust dom wrapper.
...
(This used to be commit 63e2c7c5fe6eca86222a7a76d81ce1ee93ebde22)
2002-05-23 22:53:59 +00:00
Tim Potter
4f46de7972
A graphical tdb browser using the gnome-python bindings.
...
(This used to be commit 08dcfff2a22fd35a3e5cdca8ed137a7e5891fe53)
2002-05-23 05:10:51 +00:00
Tim Potter
c6d53c2798
Another change to the GPL "abandon hope all who enter here" warning.
...
(This used to be commit 1d75b548de8b667673cf136306388546eb3bd98d)
2002-05-23 02:36:53 +00:00
Tim Potter
8955286b32
Got gdb and gpl confused. (-:
...
(This used to be commit 08356ec38a5be239b6ab53ee75f3735c29b677a7)
2002-05-22 23:31:44 +00:00
Tim Potter
dc86e2b710
Added a reminder about programs using the tdb bindings having to be
...
licensed under the GPL.
(This used to be commit aa3ec7618fe39ddc75755098433572b271197af4)
2002-05-22 00:43:04 +00:00
Tim Potter
8a35fba95b
A tdb module based on some tips from Mike Noriega. This version supports
...
locking and tdb traversal using python callbacks.
(This used to be commit f3530fd6180bb78a58a3f41ac1389c9f0ba7b183)
2002-05-21 07:43:35 +00:00
Tim Potter
641d6dc79e
Remove level and name fields from dictionary copy in py_to_FORM()
...
(This used to be commit ac15442579848f145dbdce6d51207321c4150c25)
2002-05-20 08:09:19 +00:00
Tim Potter
03a8391787
py_to_DRIVER_INFO_3: remove level key on copy of dictionary before calling
...
to_struct().
(This used to be commit 274679d8ce33aaf664ffaaa6834d506f7b196fc6)
2002-05-20 08:07:49 +00:00
Tim Potter
be92d4ac55
Decode info level 3 for getprinterdriver.
...
Error checking for undecoded info levels.
(This used to be commit 841b6cf63c1f22dcb8fa07796a44e20555fe5b59)
2002-05-20 08:05:27 +00:00
Tim Potter
1aa06209a1
When converting from a dictionary to a Samba structure, check for any
...
additional keys that may have been added and return False if so.
(This used to be commit 96ccb2beb1d45f8122ff03fc2f7727bf065adbf6)
2002-05-20 08:04:02 +00:00
Tim Potter
d62adde88a
Set level key in driver info structures.
...
(This used to be commit 0caf7610dcf698d2c649e42f0630de4337cfcea2)
2002-05-20 02:55:35 +00:00
Tim Potter
4f783edcf3
Use get_level_value() utility fn.
...
Cleaned up some local variable naming.
(This used to be commit d4c7a85c2b5c45f1cc3273230d80a1d5923cd848)
2002-05-17 02:39:07 +00:00
Tim Potter
296583a5e1
Add level field when converting FORM_1 to dict.
...
More error checking when converting from dict to FORM_1.
(This used to be commit 608b9ab29dca820d29a40a2c5df86c1ff7e751a9)
2002-05-17 02:34:49 +00:00
Tim Potter
281ded3f7f
addform(), setform():
...
- call get_level_value() utility function
- removed unused keyword args
- clean up handling of name arg to cli call
deleteform():
- removed unused keyword args
(This used to be commit c9c2aac9035a11e3fe2d320504097b98a426dd63)
2002-05-17 02:32:02 +00:00
Tim Potter
191a446078
Call get_level_value() utility function.
...
(This used to be commit 2566dad274e0bced9e55cbc3c126c00e70373fbe)
2002-05-17 02:28:26 +00:00
Tim Potter
1ab45841cc
Added a utility function to extract the info key from a dictionary.
...
(This used to be commit 4cafbcb205af11c478a2d9047554315915933e5d)
2002-05-17 02:25:37 +00:00
Tim Potter
119716f162
to_struct() now returns a boolean which is false if not all the elements of
...
the structure were present in the dictionary.
(This used to be commit b26d9d793914b66050c374ec2c0e94fa37c7e0e4)
2002-05-17 02:24:06 +00:00
Tim Potter
535af3c3fe
Return enumerated forms as a hash of hashes instead of a list of hashes.
...
(This used to be commit 2f86f01b88ccaaeee97588f339ebaeae5c4c06e9)
2002-05-16 07:32:55 +00:00
Tim Potter
16f78e46bb
Removed unused variable.
...
(This used to be commit 8d2f77ce956711f2afbadbeee50d82fbec9047dc)
2002-05-16 05:45:01 +00:00
Tim Potter
c2f5c02e28
Renamed 'printer_name' field in python printer info to 'name' to be
...
more consistent.
(This used to be commit f8c198b74899d1be1725d0647c5f0cd7db870340)
2002-05-16 05:25:53 +00:00
Tim Potter
9ad364acdb
Fix memory leaks and return values in error returns for enumprinters().
...
Return enumerated printers as a hash of hashes instead of a list of hashes.
(This used to be commit 1d0fd34d42e286fe7a41ca2d122f6bd7dc958b0a)
2002-05-16 05:24:06 +00:00
Tim Potter
66115cf64b
Fix memory leaks and return values in error returns for enumports().
...
Return enumerated ports as a hash of hashes instead of a list of hashes.
(This used to be commit c469ada3d3b12b6a6e243d004faaae5f96cd3d96)
2002-05-16 05:19:30 +00:00
Tim Potter
0227141bd1
Set exception object when enumjobs returns non-zero NT status.
...
(This used to be commit b1818eb37572f4d30efef998d926ac111e78cb48)
2002-05-16 05:17:43 +00:00
Tim Potter
ce89909493
Fix return value for enumprinterdrivers(), getprinterdriverdir().
...
Set info level key in getprinterdriverdir() return info.
(This used to be commit cb4bfd39eb83efddb29b3a3bc70c2a8713f80ef2)
2002-05-16 05:16:06 +00:00
Tim Potter
70da1dec97
Shorten some debug messages.
...
(This used to be commit 179c68bd0db7c2631fcf052a746acacedf3c47ac)
2002-05-16 05:13:50 +00:00
Tim Potter
286d3a80fd
More cleanups.
...
- removed dodgy fprintf() error handling
- return an error string from open_pipe_creds() so the appropriate
exception can be raised by the caller
- reformatting
(This used to be commit d35cad359df3bd53e6bb49f6655d4c7b9993abb0)
2002-05-16 04:00:31 +00:00
Tim Potter
ce03ce2e56
Refactored open_pipe_creds() function to remove unused parameter.
...
(This used to be commit 36ed06cb5078429445f3bbb0f69baa2e0f8356a4)
2002-05-16 02:24:22 +00:00