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

154 Commits

Author SHA1 Message Date
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.
-
Tim Potter
cb243e2766 Added functions to return Python tuples (error code, error string)
corresponding to NT and DOS errors.
-
Tim Potter
e84cc7ea84 Start to make argument ordering consistent. -
Tim Potter
f05c3c6fc5 Docstring updates. -
Tim Potter
ba5364b306 Use Py_InitModule3() instead of Py_InitModule4() when we only want to set
the docstring for the module.

Doc updates.
-
Tim Potter
1e48f872a4 Aborted experiment to avoid namespace pollution and prototype hell and
moved to 'make proto' based solution.
-
Tim Potter
26a7333347 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.
-
Tim Potter
a66e04711a Updated version. -
Tim Potter
54f2aa437a Script to generate patch to Makefile.in and configure.in
Run like:

python/mkpatch
-
Tim Potter
992cbfe98b Converted to #include *.c format. -
Tim Potter
9eb3eb8513 Broke out stuff into other files. -
Tim Potter
723bfa1a85 Moved pyconv definitions across.
Fixed misc compile problems.
-
Tim Potter
22990c3dda Fixed bug in guards. -
Tim Potter
0f179ebf7e Converted to #include *.c format to avoid namespace pollution and
header file madness.
-
Tim Potter
eb8cd68bc9 Moved general printer related calls here. -
Tim Potter
d4b8000e1f Moved printer driver related calls here. -
Tim Potter
1e894487f5 Moved conv functions to separate file.
Converted remaining functions to methods.
-
Tim Potter
2c935bc1ea #include "py_conv.h" -
Tim Potter
eff595d068 Added ports and conversion routines. -
Tim Potter
34cc49d929 Regenerated patch. -
Tim Potter
5dc7e350ec Port related functions. -
Tim Potter
6c8a2ad167 Samba structure <-> Python dictionary helper functions. -
Tim Potter
7c4bcc48aa Moved form related functions as methods in the policy handle object. -
Tim Potter
ff52627566 Append $(srcdir) to include directories. -
Tim Potter
1926828c5d Pass $(srcdir) to setup.py -
Tim Potter
9afd17f154 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.
-
Tim Potter
4d31151977 Added enumerate trusted domains and check secret.
Added configuration dictionary to retrieve smb.conf parameters.
-
Tim Potter
b1b7ae8bcf Actually use flags passed in PYTHON_CFLAGS variable.
Use py_common.c in winbind extension module for correct initialisation.

Some reformatting.
-
Tim Potter
ba0624d0c3 Added enum domain users and enum domain groups. -
Tim Potter
8e4bb2f8a0 Pass $(CFLAGS) and $(CPPFLAGS) to python compile instead of $(FLAGS) -
Tim Potter
5e955b5fcc Added name_to_sid and sid_to_name functions. -
Tim Potter
19dd8ba826 Remove nsswitch from include directories. -