RE: AW: entry in /etc/passwdFrom: Andrew Hatfield (email@example.com)
- Previous message: Aaron Sierra: "RE: entry in /etc/passwd"
- Maybe in reply to: firstname.lastname@example.org: "AW: entry in /etc/passwd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 7 May 2002 09:36:45 +1000 From: "Andrew Hatfield" <email@example.com> To: <firstname.lastname@example.org>, <email@example.com>
> If you want to do me - and tons of other people, I guess, a
> favour, write a
> script that'll initialize an LDAP server (easy enough to
> install) and set it
> up so that it handles user authentications. I looked at
> freshmeat and other
> sources and found nothing. If someone can point me to an
> easy-to-setup LDAP
> thingy, I'll switch the developer network over on the same day.
In the OpenLDAP source and distribution packages (at least RedHat's),
there are migration tools to do just this.
Look in /usr/share/openldap/migration for example.
You can import /etc/passwd, /etc/group, /etc/shadow, /etc/hosts,
/etc/rpc, /etc/protocols, /etc/services, /etc/netgroups, /etc/fstab,
/etc/networks for example.
There are a number of perl and bash scripts. Its all pretty easy once
you understand the basic format. You can do either an online import, or
an offline. Both are supported by the migration scripts, so take your
I would review how the user accounts are created and make sure they fit
your account policy before migrating though - as I personally don't like
the way it creates the DN record, but thats just me.
RedHat Certified Engineer
Head - Internet Security Division