HOME
PROJECTS
SETIATHOME
BOFH
XBLAST
LINKS
MIRRORS
____________


Synchronization between Samba and NIS through HTTPS+PHP




There's a comprehensive tgz with the work we have made for the classroom name Bernasconi of the Politecnico di Milano.
The archive is not up to date but contains all the programs we originally made to have syncronization between samba and nis working.
We patched the yppasswd program (berpasswd) and made a setuid smbpasswd wrapper (bersmbpasswd).
The check for password correctness is made by a php script (changepass.php3).

The whole program is a mess and is ugly but it works :P


Berpasswd:
This is a patched yppasswd the take username a password from environment variables (really ugly).
Bersmbpasswd:
This is a setuid wrapper for smbpasswd that gets username and passwords from environment variables and launch smbpasswd as root to change the users password.
changepass.php3:
This is the php script that is called through a post by index.html, provides password checking and launch the setuid programs (berpasswd, bersmbpasswd) to change the password on the server.


A more organic and clean project is planned, any suggestions will be greatly appreciated.

DOWNLOAD:

bernasconi.tgz

AUTHORS:
Simo Sorce, Luca Villa


Samba Home

Simo Sorce simo.sorce@tiscalinet.it
Updated: 2001/05/02 03:08:17
http://web.tiscalinet.it/idraweb/samba-sync.html
Preprocessed by WPP Graphics by GIMP Written with vi
IdraNet Main Page