TryAnythingOnce
Technical User
- Feb 2, 2002
- 7
This is in response to thread11-1189473, which is already closed, but this may help others as well.
To bulk import users in to any email system. The best way is to use an LDAP import. When we set up our Netscape system, I created 1 user and got it set up the way we wanted it to look as a template. Then exported it, merged it with userid, first name, last name and email address to create the import file we needed then imported it and all users were setup with default setting. FYI the password field will be in attributes as well, if you leave that the same all accounts will have the same password.
The specific commands are ldif2db and db2ldif.
ldif2db - imports an ldif file into the database
db2ldif - exports the database to an ldif file
Once you have the ldif file you can create your bulk list and import it back into the database. Be careful to only modify the users portion of the ldif file, and not any of the system information.
Also you can use the ldapmodify command to input changes. This is used to add, delete, modify or rename entries in the LDAP. Do a search for this term and you'll find all kinds of examples and the different options you can perform with this command.
Here's an example of one:
dn: uid=Mmouse,ou=People, o=pmic.com
changetype: modify
add: mailalternateaddress
mailalternateaddress: mortimer.mouse@disney
Again, this can be repeated and "bulk-ified" as well.
To bulk import users in to any email system. The best way is to use an LDAP import. When we set up our Netscape system, I created 1 user and got it set up the way we wanted it to look as a template. Then exported it, merged it with userid, first name, last name and email address to create the import file we needed then imported it and all users were setup with default setting. FYI the password field will be in attributes as well, if you leave that the same all accounts will have the same password.
The specific commands are ldif2db and db2ldif.
ldif2db - imports an ldif file into the database
db2ldif - exports the database to an ldif file
Once you have the ldif file you can create your bulk list and import it back into the database. Be careful to only modify the users portion of the ldif file, and not any of the system information.
Also you can use the ldapmodify command to input changes. This is used to add, delete, modify or rename entries in the LDAP. Do a search for this term and you'll find all kinds of examples and the different options you can perform with this command.
Here's an example of one:
dn: uid=Mmouse,ou=People, o=pmic.com
changetype: modify
add: mailalternateaddress
mailalternateaddress: mortimer.mouse@disney
Again, this can be repeated and "bulk-ified" as well.