You would add a new objectclass to the objects that were created when
you imported the passwd file.
For example, if your account objects were created with the following
objectclasses:
objectClass: top
objectClass: account
objectClass: posixAccount
objectClass: shadowAccount
...then they will have no mail attribute.
So, you could add:
objectClass: inetOrgPerson
for each, and then you can also populate "mail" for each.
You can make these changes with ldapmodify, or the console, or whatever
you prefer. You could also tweak the migrate_passwd.pl script and
re-import everything, if you want.
There are other ways you could store email addresses in your directory,
but the above example is probably what you're trying to do.
Esquivel, Vicente wrote:
Ok I am a total newbie to the Directory so bear with me. Do you accomplish this by going to the configuration tab then selecting schema?
Vince
-----Original Message-----
From: fedora-directory-users-bounces@xxxxxxxxxx
[mailto:fedora-directory-users-bounces@xxxxxxxxxx] On Behalf
Of George Holbert
Sent: Friday, April 07, 2006 3:22 PM
To: General discussion list for the Fedora Directory server project.
Subject: Re: Existing User Accounts
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@xxxxxxxxxx
[mailto:fedora-directory-users-bounces@xxxxxxxxxx] 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: 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users
--
Fedora-directory-users mailing list
Fedora-directory-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users
--
Fedora-directory-users mailing list
Fedora-directory-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users
--
Fedora-directory-users mailing list
Fedora-directory-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users
--
Fedora-directory-users mailing list
Fedora-directory-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users