Ok. here is a script that I put together that seems to do what I want it to do. I just echo the email address so I can see which one it is currently working on.
Code:
#!/bin/bash
while IFS=';' read EMAIL GNAME SNAME DNAME;
do
echo "$EMAIL"
/opt/zimbra/bin/zmprov ma "$EMAIL" givenname "$GNAME"
/opt/zimbra/bin/zmprov ma "$EMAIL" sn "$SNAME"
/opt/zimbra/bin/zmprov ma "$EMAIL" displayname "$DNAME"
done </opt/user.txt
exit I then create a user.txt file with the format of email address;First Name;Last Name;Complete Name for each person per line. I haven't tested it on more than two users at a time as I am waiting the compile a complete after working with our HR department.
One more question, what attributes can I change? I haven't been able to find anything on what I can change in the GAL. Can I change Phone number, address and etc.?
Thanks.
dj