I'm glad to hear that :-)
Yes, check the line, around line 22, which says:
I'm only reading "mail" field, but you can read whatever attribute you have, it's just an ldap query
You will also need to change the "$ZMPROV createAccount" line so it can use the attributes you're reading.
Gracias por tu post :-)