Loading .gitignore −1 Changes for .gitignore: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -2,4 +2,3 @@ ~* *.swp *.swo files/ldap_password README.rst +4 −6 Changes for README.rst: 4 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -13,12 +13,10 @@ Role Variables :: organization: '{{ ansible_domain }}' #Organization name, defaults to the domain name. domain: '{{ ansible_domain }}' #LDAP domain, converted to ldap formatted. Defaults to the domain name of the machine. basedn: #LDAP base distinguished name, defaults to machine's domain converted to LDAP format. password: #Password for admin account, if blank a random password will be generated and saved under files/ldap_password. tls_cert: #Certificate for LDAPS, if blank the self-signed snakeoil cert is used. Intermediate certs need to be included in this file. tls_key: #Key for LDAPS, if blank the self-signed snakeoil key is used. openldap_organization: '{{ ansible_domain }}' #Organization name, defaults to the domain name. openldap_domain: '{{ ansible_domain }}' #LDAP domain, converted to ldap formatted. Defaults to the domain name of the machine. openldap_basedn: #LDAP base distinguished name, defaults to machine's domain converted to LDAP format. openldap_password: #Password for admin account, must be set. Dependencies ------------ Loading defaults/main.yml +4 −4 Changes for defaults/main.yml: 4 added lines, 4 removed lines. Original line number Diff line number Diff line --- # defaults file for ansible-openldap organization: '{{ ansible_domain }}' domain: '{{ ansible_domain }}' basedn: 'dc={{ domain.split(".") | join(",dc=") }}' password: '{{ lookup("password", "ldap_password") }}' openldap_organization: '{{ ansible_domain }}' openldap_domain: '{{ ansible_domain }}' openldap_basedn: 'dc={{ domain.split(".") | join(",dc=") }}' openldap_password: tasks/main.yml +5 −5 Changes for tasks/main.yml: 5 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -10,16 +10,16 @@ with_items: - question: shared/organization vtype: string value: '{{ organization }}' value: '{{ openldap_organization }}' - question: slapd/domain vtype: string value: '{{ domain }}' value: '{{ openldap_domain }}' - question: slapd/password1 vtype: password value: '{{ password }}' value: '{{ openldap_password }}' - question: slapd/password2 vtype: password value: '{{ password }}' value: '{{ openldap_password }}' - name: apt install apt: Loading Loading @@ -62,7 +62,7 @@ regexp: '{{ item.regexp }}' state: present with_items: - line: 'BASE {{ basedn }}' - line: 'BASE {{ openldap_basedn }}' regexp: '^BASE' - line: 'URI ldap://localhost' regexp: '^URI' Loading tasks/phpldapadmin.yml +1 −1 Changes for tasks/phpldapadmin.yml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ name: phpldapadmin question: phpldapadmin/ldap-basedn vtype: string value: '{{ basedn }}' value: '{{ openldap_basedn }}' - name: apt install phpldapadmin apt: Loading Loading
.gitignore −1 Changes for .gitignore: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -2,4 +2,3 @@ ~* *.swp *.swo files/ldap_password
README.rst +4 −6 Changes for README.rst: 4 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -13,12 +13,10 @@ Role Variables :: organization: '{{ ansible_domain }}' #Organization name, defaults to the domain name. domain: '{{ ansible_domain }}' #LDAP domain, converted to ldap formatted. Defaults to the domain name of the machine. basedn: #LDAP base distinguished name, defaults to machine's domain converted to LDAP format. password: #Password for admin account, if blank a random password will be generated and saved under files/ldap_password. tls_cert: #Certificate for LDAPS, if blank the self-signed snakeoil cert is used. Intermediate certs need to be included in this file. tls_key: #Key for LDAPS, if blank the self-signed snakeoil key is used. openldap_organization: '{{ ansible_domain }}' #Organization name, defaults to the domain name. openldap_domain: '{{ ansible_domain }}' #LDAP domain, converted to ldap formatted. Defaults to the domain name of the machine. openldap_basedn: #LDAP base distinguished name, defaults to machine's domain converted to LDAP format. openldap_password: #Password for admin account, must be set. Dependencies ------------ Loading
defaults/main.yml +4 −4 Changes for defaults/main.yml: 4 added lines, 4 removed lines. Original line number Diff line number Diff line --- # defaults file for ansible-openldap organization: '{{ ansible_domain }}' domain: '{{ ansible_domain }}' basedn: 'dc={{ domain.split(".") | join(",dc=") }}' password: '{{ lookup("password", "ldap_password") }}' openldap_organization: '{{ ansible_domain }}' openldap_domain: '{{ ansible_domain }}' openldap_basedn: 'dc={{ domain.split(".") | join(",dc=") }}' openldap_password:
tasks/main.yml +5 −5 Changes for tasks/main.yml: 5 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -10,16 +10,16 @@ with_items: - question: shared/organization vtype: string value: '{{ organization }}' value: '{{ openldap_organization }}' - question: slapd/domain vtype: string value: '{{ domain }}' value: '{{ openldap_domain }}' - question: slapd/password1 vtype: password value: '{{ password }}' value: '{{ openldap_password }}' - question: slapd/password2 vtype: password value: '{{ password }}' value: '{{ openldap_password }}' - name: apt install apt: Loading Loading @@ -62,7 +62,7 @@ regexp: '{{ item.regexp }}' state: present with_items: - line: 'BASE {{ basedn }}' - line: 'BASE {{ openldap_basedn }}' regexp: '^BASE' - line: 'URI ldap://localhost' regexp: '^URI' Loading
tasks/phpldapadmin.yml +1 −1 Changes for tasks/phpldapadmin.yml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ name: phpldapadmin question: phpldapadmin/ldap-basedn vtype: string value: '{{ basedn }}' value: '{{ openldap_basedn }}' - name: apt install phpldapadmin apt: Loading