install and configure ldapvi on ldap servers
This commit is contained in:
parent
666ada404e
commit
fbffa25346
1 changed files with 6 additions and 1 deletions
|
@ -1,8 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: install packages
|
- name: install packages
|
||||||
package:
|
package:
|
||||||
name: openldap-servers
|
name: "{{ item }}"
|
||||||
state: installed
|
state: installed
|
||||||
|
with_items:
|
||||||
|
- openldap-servers
|
||||||
|
- ldapvi
|
||||||
|
|
||||||
- name: fix selinux context from ldap data directory
|
- name: fix selinux context from ldap data directory
|
||||||
sefcontext:
|
sefcontext:
|
||||||
|
@ -131,6 +134,8 @@
|
||||||
alias slapcat='slapcat -f /etc/openldap/slapd.conf'
|
alias slapcat='slapcat -f /etc/openldap/slapd.conf'
|
||||||
alias slapindex='echo "run as user ldap"'
|
alias slapindex='echo "run as user ldap"'
|
||||||
alias slaptest='slaptest -f /etc/openldap/slapd.conf'
|
alias slaptest='slaptest -f /etc/openldap/slapd.conf'
|
||||||
|
# ldapvi connects automatically via socket
|
||||||
|
alias ldapvi='ldapvi -h ldapi:/// -Y EXTERNAL'
|
||||||
|
|
||||||
- name: enable slapd service
|
- name: enable slapd service
|
||||||
service:
|
service:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue