From ca0c0dbf3beeed8b48b91234cc4f39dff3eb37e6 Mon Sep 17 00:00:00 2001 From: lecorguille Date: Fri, 27 Sep 2024 16:46:59 +0200 Subject: [PATCH] Change ldapmodify usage since ubuntu22 --- templates/abims/user/modify_user.sh | 2 +- templates/abims/user/reset_password.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/abims/user/modify_user.sh b/templates/abims/user/modify_user.sh index 0340b15c1..a3de1943a 100755 --- a/templates/abims/user/modify_user.sh +++ b/templates/abims/user/modify_user.sh @@ -4,7 +4,7 @@ echo "Start modify_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 user.password %} mel add-samba "{{ user.uid }}" --password "{{ user.password }}" diff --git a/templates/abims/user/reset_password.sh b/templates/abims/user/reset_password.sh index 905fb4838..e913dafe9 100755 --- a/templates/abims/user/reset_password.sh +++ b/templates/abims/user/reset_password.sh @@ -4,7 +4,7 @@ echo "Start reset_password.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 user.password %} mel add-samba "{{ user.uid }}" --password "{{ user.password }}"