My response may be too late to be of any help but here is the information you were looking for. If it is too late to help you maybe it will help someone else in the future.
The command to add a user is:
omaddu -n "First Last/mailnode" -p <password> --class [limited| full]
So if you have a file with names and passwords you could script something.
Assuming your mailnode is "mail"
If your file is of the format:
John Doe secret
Julio Iglesias password
Mickey Mouse d1sn3y
You would use something like
Code: Select all
# cat /tmp/list | awk '{ print "omaddu -n \"" $1, $2 "/mail\" -p "$3 }' > /tmp/makeusers.sh
That would make a lot of omaddu commands in the file /tmp/makusers.sh
# cat /tmp/makeusers.sh
omaddu -n "John Doe/mail" -p secret
omaddu -n "Julio Iglesias/mail" -p password
omaddu -n "Mickey Mouse/mail" -p d1sn3y
Then all you need to do is
Code: Select all
sh /tmp/makeusers.sh
You might need to add to that awk command, if you want to include "--class limited" or similar in the omaddu commands.