[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: migration scripts
Dont know if there are scripts out there...
But the procedure is very simple....
Just create an Ldif file taking every attribute you want to put in the
Ldap.
as Example:
from /etc/passwd:
glozano:x:1000:100:,,,:/home/glozano:/bin/bash
from /etc/shadow
glozano:thecryptpass:11970:0:99999:7:::
So the ldif file should be:
dn:uid=glozano,dc=noldata,dc=com
objectClass:....
objectClass:....
objectClass:.....
ObjectClass:posixAccount
uid:glozano
uidNumber:10000
gidNumber:100
userPassword: {crypt}thecryptpass
homeDirectory:/home/glozano
userShell:/bin/bash
etc....
Just use awk or something like that to generate the ldif file...
after that... ldapadd -f file.ldif
On Tue, 2002-12-31 at 10:29, Gopi Mandava wrote:
> Hi,
>
> Where can I find the migration scripts to migrate the passwd and shadow
> files to Ldap? I can't find the migration scripts anywhere. I installed
> OpenLdap 2.1.10 on RedHat 7.3. The RedHat documentation says to run the
> scripts in /usr/shared/openldap/migration to export the files in /etc. I
> searched faqomatic, Openldap site and the redhat site. Can't find these
> scripts.
>
> I'm trying to setup OpenLDAP as PAM through OpenLDAP.
>
> Thanks,
> Gopi
>
> -----------
> Gopi Mandava (703) 267-1735 x307
> CoManage Inc.
>
> "I thought of that while riding my bike."
> Albert Einstein, on the theory of Relativity
>
--
_________________ __________________
Gustavo A. Lozano Noldata Corporation
glozano@noldata.com Calle 46 No. 40-19
CTO Bogota D.C. Colombia
Noldata Corporation http://noldata.com
I know not with what weapons World War III will be fought,
but World War IV will be fought with sticks and stones.
Albert Einstein
This Message has been scanned for Virus Content using RAV Antivirus.
Get your copy of RAV Antivirus at Noldata, send mail to
sales@noldata.com http://noldata.com