samba: check AD membership with net

Seems more reliable than adcli. Not sure how reliable any of this
actually is.
This commit is contained in:
Timotej Lazar 2024-05-28 12:51:44 +02:00
parent c7a3513fa1
commit 19431a827b

View file

@ -28,7 +28,7 @@
line: session optional pam_mkhomedir.so line: session optional pam_mkhomedir.so
- name: Check domain membership - name: Check domain membership
command: 'adcli testjoin -D {{ domain }}' command: 'net ads testjoin'
changed_when: false changed_when: false
failed_when: false failed_when: false
register: ad_join register: ad_join