PySamba
PySamba is a Python extension module which provides a basic wrapper around the pam_smb authentication library. It currently has very limited functionality, but should be easily extensible. It is a derivative of the smbvalid module, with the following improvments:
- Does not require modification of the Python build files
- Does not require rebuilding all of Python
- Supports pam_smb 2.0
- Supports Python 2.3
- Includes standard distutils setup script for building independently
Downloading
You can download the current tarball here.
The CVS archive is here.
Installing
The tarball includes a Python distutils setup.py script which will build the necessary pam_smb 2.0 dependency (included with the distribution). To install, simply run:
# python setup.py build # python setup.py install
The script installs a single module, smbvalid in site-packages.
Using
The smbvalid module exposes a single function, check. check takes 5 parameters: username, password, pdc, bdc, and domain. See the included README file for more information.
