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:
		
							parent
							
								
									c7a3513fa1
								
							
						
					
					
						commit
						19431a827b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -28,7 +28,7 @@
 | 
			
		|||
    line: session optional pam_mkhomedir.so
 | 
			
		||||
 | 
			
		||||
- name: Check domain membership
 | 
			
		||||
  command: 'adcli testjoin -D {{ domain }}'
 | 
			
		||||
  command: 'net ads testjoin'
 | 
			
		||||
  changed_when: false
 | 
			
		||||
  failed_when: false
 | 
			
		||||
  register: ad_join
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue