pSSOd is a collection of scripts that you can use to synchronize an Active Directory database (including passwords) with virtually everything, be it a sql database, an openldap server, a text file, or a samba passdb file.
pSSOd is composed of several perl scripts:
perlsync.pl: fetches the user and groups from AD (excluding passwords, since you just can't).perlssod.pl: provides a server for the Password Synchronization module from the role Microsoft Identity Management for UNIX, so you can get plain text passwords when they change.
For now, you can find more information at: http://zewaren.net/site/?q=node/92.
Copy the perl files where you desire and run/start them as you wish.
perlsync.pl can be called periodically using cron if you run it on an UNIX platform.
You will need Perl and the following modules:
Net::LDAPDigest::SHA1Crypt::ECBCrypt::DESMIME::Base64Log::Log4perlData::Dumper(if you first want to dump the data)DBIand the relevant drivers (if you want to store the information into a SQL database)Apache::HtpasswdandApache::Htgroup(if you want to store the information into htpasswd and htgroup files)
Install the following packages using aptitude or dpkg:
libnet-ldap-perllibnet-server-perllibdigest-sha1-perllibcrypt-ecb-perllibcrypt-des-perlliblog-log4perl-perllibdbi-perland the relevant drivers (libdbd-mysql-perl,libdbd-pg-perl,libdbd-sqlite3-perl, etc.) (if you want to store the information into a SQL database)libapache-htpasswd-perl(if you want to store the information into htpasswd and htgroup files)
Install the following modules using cpan:
Apache::Htgroup(if you want to store the information into htpasswd and htgroup files)
Install the following ports:
net/p5-perl-ldapnet/p5-Net-Serversecurity/p5-Digest-SHA1security/p5-Crypt-ECBsecurity/p5-Crypt-DESdevel/p5-Log-Log4perldatabases/p5-DBIand the relevant drivers (databases/p5-DBD-mysql,databases/p5-DBD-Pg,databases/p5-DBD-SQLite, etc.) (if you want to store the information into a SQL database)security/p5-Apache-Htpasswdandwww/p5-Apache-Htgroup(if you want to store the information into htpasswd and htgroup files)
Thank Marcos Carraro for the list:
- yum install perl-LDAP
- yum install perl-Digest-SHA1.x86_64
- yum install perl-Crypt-ECB
- yum install perl-Crypt-DES
- yum install perl-MIME-Base64
- yum install perl-Log-Log4perl
- yum install perl-Data-Dumper
pSSOd was written in September 2012 by: ZeWaren / Erwan Martin <[email protected]>.
It is licensed under the MIT License.