Python

From SambaWiki
Revision as of 01:07, 12 February 2008 by JelmerVernooij (talk | contribs) (add some details about the Python support)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

We're currently using our own Python binary (``smbpython``) which is linked against the Python libraries and includes built-in bindings for several Samba libraries. It also sets up the path Python uses to find Python modules automatically when you are running it from inside of the Samba source directory.

Using the system-provided Python should also be possible in the future, but will require the following changes when doing so:

* We need to set sys.path somehow so python can find our modules when running inside of the source tree
* We need to build .so version of the Samba Python modules

The latter requires some changes to the build system, so it may be useful to wait until we've switched to an alternative build system.

Available modules

* ldb
* tdb
* registry
* param (loadparm)
* credentials
* ...