Kelvin
This rpm at
http://nx.dyndns.info/nx-sme-adduser-1.0.2-0.noarch.rpm
looks interesting. I have not tried it.
Looks like part of the procedure has already been done, just a matter of easily getting the existing users (for transfer) into the csv file, but perhaps that's where the lat dump function comes in.
Regs
Ray
The doco says:
Automatically adds new users on a SME server from a CSV input file
Invocation: csv-adduser file.csv [delete]
With the delete option the script delets all user accounts found in the CSV file.
There is no further confirmation needed. Use carefully!
Format of the CSV-File:
----------------------
Each field must be quoted by double quotes. Fields must be seprarated by commas.
Spaces around the commas ar not allowed.
1. Line (Header):
"user","groups","password","City","FirstName","Phone","Street","Company","Dept","LastName"
The columns "FirstName", "LastName" are mandatory, all other are optional.
Is the "user" column not provided, the script generates a username, using the following rule:
First character of the firstname appended with up to 7 characters of the lastname
Example: Joe Sixpack --> jsixpack, Mary Foo --> mfoo
Is the "passowrd" column not given, the script generates it and write a list of all
passwords to /home/e-smith/files/users/admin/home/defaultpassword.csv and to
/home/e-smith/files/users/admin/home/defaultpassword.rtf for printing using a
word-processor program.
2. Datalines:
Each dataline contains the user data for the account to add. Empty fields "" are allowed.
The column count of the datalines must match the count of the header line.
In all columns german umlauts were converted (ä->ae, ß->ss etc.)
Groups must be created manually in the server-manager, before running the script!