From 640c1184117e9e0c708b0a12e641dce8cef88871 Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Fri, 29 Mar 2024 02:08:17 +0100 Subject: [PATCH] Add files via upload --- install_ldap_389ds.yaml | 57 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 install_ldap_389ds.yaml diff --git a/install_ldap_389ds.yaml b/install_ldap_389ds.yaml new file mode 100644 index 0000000..fc07094 --- /dev/null +++ b/install_ldap_389ds.yaml @@ -0,0 +1,57 @@ +--- +- name: install ldap + hosts: all + become: true + + tasks: + - name: remove other files + include_tasks: yaml_sub/myrepo_clean.yaml + - name: update file myrepo.repo + import_tasks: yaml_sub/myrepo_data.yaml + + - name: install sssd + dnf: + name: "sssd,sssd-client" + state: latest + update_cache: true + skip_broken: true + nobest: false + allowerasing: true + + - name: install 389 + dnf: + name: "389-ds-base,cockpit-389-ds" + state: latest + update_cache: true + skip_broken: true + nobest: false + allowerasing: true + + - name: set instance.inf + blockinfile: + path: /root/instance.inf + state: present + create: true + owner: "root" + group: "root" + mode: "0666" + block: | + [general] + full_machine_name = ldap.neuro.uni-bremen.de + start = True + + [slapd] + instance_name = localhost + root_password = SOMEPASSWORD + port = 389 + secure_port = 636 + self_sign_cert = True + + [backend-userroot] + sample_entries = yes + suffix = dc=ldap,dc=neuro,dc=uni-bremen,dc=de + + +# dscreate from-file instance.inf +# systemctl status dirsrv@localhost.service +# ldapsearch -x -H ldap://10.10.0.4 -s base -b "" "objectclass=*" \ No newline at end of file