This pack consists of Microsoft Active Directory LDAP actions. Based on python-ldap lib.
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
st2 pack config ldap
Copy the example configuration in ldap.yaml.example
to /opt/stackstorm/configs/ldap.yaml
and edit as required.
ldap_address
- IP Address or FQDN of your LDAP server (e.g.example.ad.local
)ldap_domain
- Domainname (e.g.example.ad.local
)ldap_admin_username
- Admin User with CRUD rightsldap_admin_password
- Admin User secretldap_base_dn
- OU where a user is created and searchedldap_group_dn
- Group to which a user gets assignedmail_sender_address
- Sender mail addressmail_text
- Mail content text as jinja syntax with username and password variablemail_subject
- Mail Subjectmail_server
- FQDN or IP of the SMTP mail server
You can also use dynamic values from the datastore. See the docs for more info.
Adds a LDAP user to the active directory.
Input:
mail
- requiredpassword
- optional- if not set a random password will be generated
expires_in
- optional- default: never
expires_in_dimension
- optional- has to be used if expires_in is set
username
- optional
Deletes a LDAP user from the active directory.
Input:
username
- required- sAMAccountName is required
- Regex values are allowed
only_expired_users
- optional- boolean: deletes only expired users if set to true
- default: false
get_user
- Action which retrieves details for a particular user.create_user
- Action which creates a new LDAP user.delete_user
- Action which deletes a particular user.enable_user
- Action which enables a particular user.disable_user
- Action which disables a particular user.generate_password
- Action which creates a XKCD like password.set_user_password
- Action which sets the password for a particular user.set_user_group
- Action which adds a given user to the group defined in theldap_group_dn
config.send_mail
- Action to send a mail with a given jinja template as content
orquesta_add_user
- only useful in combination with Slackorquesta_delete_user
- only useful in combination with Slack
None
notify_on_user_deletion
- Makes a notification to your ChatOps-Bot if user deletion workflow is executedremove_expired_users_daily
- Cronjob which removes all expired users
None