pasture projects

You are here -> Ldap2Unix
MainPage :: LoGin :: You are ec2-18-221-165-246.us-east-2.compute.amazonaws.com


ldap2unix



Last version : 0.1 02/ 2005



DESCRIPTION


Ldap2Unix is a very simple LDAP to paswd/shadow/group synchroniser.

If you need to authenticate LDAP users to access applications on a UNIX host, then you have two solutions :
1) configure the operating system and/or every local application to lookup the LDAP directory,
2) synchronise local flat-files-directory (/etc/passwd , shadow , group files) with the LDAP directory.

The second solution has no impact on local application's configuration. It allows a simple and clean rollback if needed. This is the goal of Ldap2Unix.

The ldap2unix.pl script may be launched by a schedulled job (cron). It will synchronise local accounts with LDAP accounts.



USAGE


ldap2unix.pl -vhlpbasgd [option]

Options :

-v : prints current version
-h : prints help
-l : ldap server (default: 127.0.0.1)
-p : ldap bind port (default: 389)
-b : base DN (default: dc=darkstar,dc=net)
-a : ldap admin CN (default: cn=admin)
-s : admin pw (default: secret)
-g : group name prefix for ldap users (default: ldapusers)
-d : turn on debug output



Example :

To synchronise :

  • from the LDAP server IP : 192.168.1.100
  • with base dn : dc=darkstar,dc=net
  • using admin account dn : cn=admin,dc=darkstar,dc=net
  • login with secret : skywalker

Command line should be :


ldap2unix.pl \
-l 192.168.1.100 \
-b dc=darkstar,dc=net \
-a cn=admin \
-s skywalker




DOWNLOAD


Location :

Ldap2Unix can be downloaded HERE.

Ldap2Unix needs the following perl modules (included in install tarball) :


Install :

Just unpack and run "make" in the "ldap2unix" directory
("make uninstall" to uninstall ;))



CONTACT


Jean-Philippe Guillemin - jpgu~AT~users.sourceforge.net


LICENSE



Copyright Jean-Philippe Guillemin.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Please take a look at http://www.gnu.org/copyleft/gpl.html