LDAP Services, Scripts how to handle users
I've got the following problem:
1. I need to bind to bind the FreeNAS 8 System to a Debian LDAP Server which is already running in the network
2. The FreeNAS should be used for Users to access their homeshares with this scenario:
A Users has been added, changed or deleted on the LDAP Server; I a defined time Intervall the FreeNAS 8 Server should check the directores existend on the RAID Array (homeshares) username = directory name ... If the user to the directory name exists, everything is ok, if not, delete the folder ...; Then the system should readout the LDAP Database and create a folder with the needed permissiones and shares for every new user existent in the LDAP Database.
All in All if something happens with the user, the server should recognize that and delete or create the shares and make them available to the user, a kind of Autoprovisioning.
But how to do so ?
3. The Server should sync nightly to a Server on the Internet, syncing the complete content of the Mainsharefolder ... How to do best ?
Thanks ind advance for your Answers and Input