From 5056581c1eb8b9469d310a0070bb6043d2c83cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gildas=20Le=20Corguill=C3=A9?= Date: Mon, 7 Oct 2024 16:42:24 +0200 Subject: [PATCH] Change ldapmodify usage since ubuntu22 - suite 3 (#526) --- templates/abims/user/delete_group.sh | 2 +- templates/abims/user/expire_user.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/abims/user/delete_group.sh b/templates/abims/user/delete_group.sh index 9d6a0c9e8..398a5b74e 100755 --- a/templates/abims/user/delete_group.sh +++ b/templates/abims/user/delete_group.sh @@ -4,6 +4,6 @@ echo "Start delete_group.sh in $0 ..." set -e -ldapdelete -h {{ CONFIG.ldap.host }} -cx -w '{{ CONFIG.ldap.admin_password }}' -D {{ CONFIG.ldap.admin_cn }},{{ CONFIG.ldap.admin_dn }} -f "{{ CONFIG.general.script_dir }}/{{ group.name }}.{{ fid }}.ldif" +ldapdelete -H ldap://{{ CONFIG.ldap.host }} -cx -w '{{ CONFIG.ldap.admin_password }}' -D {{ CONFIG.ldap.admin_cn }},{{ CONFIG.ldap.admin_dn }} -f "{{ CONFIG.general.script_dir }}/{{ group.name }}.{{ fid }}.ldif" echo "End delete_group.sh in $0 ..." diff --git a/templates/abims/user/expire_user.sh b/templates/abims/user/expire_user.sh index 8253139c4..0a7a0db1c 100755 --- a/templates/abims/user/expire_user.sh +++ b/templates/abims/user/expire_user.sh @@ -4,7 +4,7 @@ echo "Start expire_user.sh in $0 ..." set -e -ldapmodify -h {{ CONFIG.ldap.host }} -cx -w '{{ CONFIG.ldap.admin_password }}' -D {{ CONFIG.ldap.admin_cn }},{{ CONFIG.ldap.admin_dn }} -f "{{ CONFIG.general.script_dir }}/{{ user.uid }}.{{ fid }}.ldif" +ldapmodify -H ldap://{{ CONFIG.ldap.host }} -cx -w '{{ CONFIG.ldap.admin_password }}' -D {{ CONFIG.ldap.admin_cn }},{{ CONFIG.ldap.admin_dn }} -f "{{ CONFIG.general.script_dir }}/{{ user.uid }}.{{ fid }}.ldif" if [ -e "{{ user.home }}/.ssh/authorized_keys" ]; then mv "{{ user.home }}/.ssh/authorized_keys" "{{ user.home }}/.ssh/authorized_keys.expired"