Esquivel, Vicente
2006-Apr-07 20:16 UTC
RE: [Fedora-directory-users] Existing User Accounts
Thanks for the reply. I ran the scripts and was able to get all of the users imported into the Directory server. The only question is how do I get their email address into the Directory of the passwd and shadow file information? Thanks Vince> -----Original Message----- > From: fedora-directory-users-bounces@redhat.com > [mailto:fedora-directory-users-bounces@redhat.com] On Behalf > Of Oscar A. Valdez > Sent: Thursday, April 06, 2006 10:38 AM > To: General discussion list for the Fedora Directory server project. > Subject: Re: [Fedora-directory-users] Existing User Accounts > > El jue, 06-04-2006 a las 09:49 -0500, Esquivel, Vicente escribió: > > I have the Directory server up and running. My question is > how to get > > the user accounts from one of my servers into the > directory? I do not > > have an existing ldap or nis server, we are using local systems > > account creation and authentication. I did a search through the > > archives but wasn''t able to come up with anything. Any > insight would > > be very helpful and appreciated. > > Try the Migration Tools from PADL software (they are also the > creators of the nss_ldap and pam_ldap modules): > > http://www.padl.com/OSS/MigrationTools.html > > You first have to edit migrate_base.pl for your > organization''s naming context. The scripts migrate_passwd.pl, > migrate_group.pl, migrate_aliases.pl, etc., will do what > their names suggest. They output in ldif format to standard > output, so you can tweak the results before importing into > your DS server. > > After importing my existing users, I wrote my own script for > new user creation that generates the ldif stuff. > > -- > Oscar A. Valdez > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >
The usual attribute for email addresses is "mail". You may need to add another objectclass (like inetOrgPerson) to your objects in order for the mail attribute to be available. Esquivel, Vicente wrote:> Thanks for the reply. > > I ran the scripts and was able to get all of the users imported into the Directory server. The only question is how do I get their email address into the Directory of the passwd and shadow file information? > > Thanks > Vince > > >> -----Original Message----- >> From: fedora-directory-users-bounces@redhat.com >> [mailto:fedora-directory-users-bounces@redhat.com] On Behalf >> Of Oscar A. Valdez >> Sent: Thursday, April 06, 2006 10:38 AM >> To: General discussion list for the Fedora Directory server project. >> Subject: Re: [Fedora-directory-users] Existing User Accounts >> >> El jue, 06-04-2006 a las 09:49 -0500, Esquivel, Vicente escribió: >> >>> I have the Directory server up and running. My question is >>> >> how to get >> >>> the user accounts from one of my servers into the >>> >> directory? I do not >> >>> have an existing ldap or nis server, we are using local systems >>> account creation and authentication. I did a search through the >>> archives but wasn''t able to come up with anything. Any >>> >> insight would >> >>> be very helpful and appreciated. >>> >> Try the Migration Tools from PADL software (they are also the >> creators of the nss_ldap and pam_ldap modules): >> >> http://www.padl.com/OSS/MigrationTools.html >> >> You first have to edit migrate_base.pl for your >> organization''s naming context. The scripts migrate_passwd.pl, >> migrate_group.pl, migrate_aliases.pl, etc., will do what >> their names suggest. They output in ldif format to standard >> output, so you can tweak the results before importing into >> your DS server. >> >> After importing my existing users, I wrote my own script for >> new user creation that generates the ldif stuff. >> >> -- >> Oscar A. Valdez >> >> -- >> Fedora-directory-users mailing list >> Fedora-directory-users@redhat.com >> https://www.redhat.com/mailman/listinfo/fedora-directory-users >> >> > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users > >
El vie, 07-04-2006 a las 15:16 -0500, Esquivel, Vicente escribió:> I ran the scripts and was able to get all of the users imported into the Directory server. The only question is how do I get their email address into the Directory of the passwd and shadow file information?If you have the inetOrgPerson objectclass, the "mail" field should be available. You can add email addresses via an ldif file and the ldapmodify command: dn: uid=ovaldez,ou=People,dc=duraflex,dc=com,dc=sv changetype: add mail: mymail@mydomain.com A bash script could help you reading uid''s and gecos fields off the passwd file and into the ldif file. -- Oscar A. Valdez