This approach is to introduce LDAP as the authentication system for CloudStack.
When seeing into the implementations of LDAP within an organization there are basically 2 approaches in which it is used
To get a generic implementation for handling both the cases in Cloudstack
In case Cloudstack is given access to create users into cloudstack
When a user is created in the Cloudstack, there are 2 cases in this context
If the user already exists in the LDAP provided then the user roles are defined in cloudstack and it acts as a registration process for cloudstack
Secondly, if the user is not present in LDAP then ldap plugin takes the info and converts it into the required format based on LDAP and creates a user into the LDAP user base and creates the required roles in cloudstack.
In case Cloudstack is not given access to create users in LDAP
In this case cloudstack does only user registration.
When a user is created in CloudStack the user existence is verified from LDAP and if the user exists then the user is registered to cloudstack.
If the user is not registered then an email is sent to the configured LDAP authority for user creation.