1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00
samba-mirror/source/python
0001-01-01 00:00:00 +00:00
..
examples/spoolss Some examples using the spoolss python module. 0001-01-01 00:00:00 +00:00
samba Initial version of printerdata_ex browsing. 0001-01-01 00:00:00 +00:00
.cvsignore Ignore *.pyc files. 0001-01-01 00:00:00 +00:00
gprinterdata Initial version of printerdata_ex browsing. 0001-01-01 00:00:00 +00:00
gtdbtool Rewrote to use gtkdictbrowser. 0001-01-01 00:00:00 +00:00
gtkdictbrowser.py Added utility function to convert python strings to hex dump + ascii. 0001-01-01 00:00:00 +00:00
mkpatch Script to generate patch to Makefile.in and configure.in 0001-01-01 00:00:00 +00:00
printerdata.py Initial version of printerdata_ex browsing. 0001-01-01 00:00:00 +00:00
py_common_proto.h Broke out unpacking of a username/password stored in a Python 0001-01-01 00:00:00 +00:00
py_common.c Fix transposed args in open_pipe_creds() function. 0001-01-01 00:00:00 +00:00
py_common.h Refactored open_pipe_creds() function to remove unused parameter. 0001-01-01 00:00:00 +00:00
py_conv.c Check types of dictionary elements in to_struct() 0001-01-01 00:00:00 +00:00
py_conv.h to_struct() now returns a boolean which is false if not all the elements of 0001-01-01 00:00:00 +00:00
py_lsa_proto.h make proto 0001-01-01 00:00:00 +00:00
py_lsa.c Compile fix for new cli_lsa_enum_trust_dom() argument list. 0001-01-01 00:00:00 +00:00
py_lsa.h Some rearrangement of header files. 0001-01-01 00:00:00 +00:00
py_ntsec.c More automatically generated prototype madness. 0001-01-01 00:00:00 +00:00
py_samba.c Forgot to check in some of the libsmb stuff. 0001-01-01 00:00:00 +00:00
py_samr_conv.c Implemented enum_domain_groups function. 0001-01-01 00:00:00 +00:00
py_samr.c Implemented enum_domain_groups function. 0001-01-01 00:00:00 +00:00
py_samr.h Renamed policy handle field in object containers to avoid cut&paste bugs. 0001-01-01 00:00:00 +00:00
py_smb.c Added connect, session_request, session_setup and tconx methods. 0001-01-01 00:00:00 +00:00
py_smb.h Skeleton for a libsmb python wrapper. 0001-01-01 00:00:00 +00:00
py_spoolss_drivers_conv.c Decode list of dependent files in printer driver info3 and info6. 0001-01-01 00:00:00 +00:00
py_spoolss_drivers.c level keys are inserted by conv routines. 0001-01-01 00:00:00 +00:00
py_spoolss_forms_conv.c Fixed compiler warning. 0001-01-01 00:00:00 +00:00
py_spoolss_forms.c Fixed dodgy arguments to PyArg_ParseTupleAndKeywords() 0001-01-01 00:00:00 +00:00
py_spoolss_jobs_conv.c Honour return value of to_struct() when converting to Samba structures. 0001-01-01 00:00:00 +00:00
py_spoolss_jobs.c Fixed enumjobs command to use new JOB_INFO_CTR structure. 0001-01-01 00:00:00 +00:00
py_spoolss_ports_conv.c Converted drivers, forms and ports functions to use new conversion routines 0001-01-01 00:00:00 +00:00
py_spoolss_ports.c Raise a ValueError if server names aren't given in UNC format. 0001-01-01 00:00:00 +00:00
py_spoolss_printerdata.c Convert to new REGISTRY_VALUE cli_spoolss routines. 0001-01-01 00:00:00 +00:00
py_spoolss_printers_conv.c Honour return value of to_struct() when converting to Samba structures. 0001-01-01 00:00:00 +00:00
py_spoolss_printers.c New arguments to cli_spoolss_enum_printers() 0001-01-01 00:00:00 +00:00
py_spoolss_proto.h make proto 0001-01-01 00:00:00 +00:00
py_spoolss.c Added methods for getprinterdataex, setprinterdataex and enumprinterdataex. 0001-01-01 00:00:00 +00:00
py_spoolss.h Some rearrangement of header files. 0001-01-01 00:00:00 +00:00
py_tdb.c Another change to the GPL "abandon hope all who enter here" warning. 0001-01-01 00:00:00 +00:00
py_tdb.h Some rearrangement of header files. 0001-01-01 00:00:00 +00:00
py_winbind.c More automatically generated prototype madness. 0001-01-01 00:00:00 +00:00
py_winreg.c General cleanup of compiler warnings etc. 0001-01-01 00:00:00 +00:00
py_winreg.h Some rearrangement of header files. 0001-01-01 00:00:00 +00:00
README Added README written by Jelmer - thanks! 0001-01-01 00:00:00 +00:00
samba-head.patch Forgot to check in some of the libsmb stuff. 0001-01-01 00:00:00 +00:00
setup.py.in Forgot to check in some of the libsmb stuff. 0001-01-01 00:00:00 +00:00

Quick Install Guide
--
Lines prepended with a $ indicate shell commands.

1. Requirements

In order to be able to compile samba-python you need to have
python and the python-dev packages installed.

2. Checking out the CVS HEAD branch of Samba and Samba-Python

In your shell, type:

$ cvs -d :pserver:cvs@pserver.samba.org:/cvsroot login

When asked for a password, type 'cvs'.

Now, type:

$ cvs -d :pserver:cvs@pserver.samba.org:/cvsroot co samba

This might probably take a while. When everything is downloaded,
check out the samba-python tree:

$ cvs -d :pserver:cvs@pserver.samba.org:/cvsroot co samba-python

Now that you have both cvs modules, move the directory 'samba-python' to 
inside the samba source tree, using: 

$ mv samba-python samba/source/python

Now, go to the samba/source directory and apply the samba-head.patch patch:

$ cd samba/source && patch -p0 < location/to/samba-python/samba-head.patch

You can now configure samba as usual and create the python extension:

$ autoconf
$ ./configure 
$ make python_ext

Now, you can install the modules:

$ cp build/lib.*/*.so /usr/lib/python2.1/lib-dynload/

(the directory /usr/lib/python2.1 may vary, depending on your installation)

Samba-python should work now!