mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-11-04 05:12:32 +00:00 
			
		
		
		
	Fix incorrect pam service
pam was defaulting to use of 'login', but we want 'confluent' for the service.
This commit is contained in:
		@@ -269,7 +269,7 @@ def check_user_passphrase(name, passphrase, operation=None, element=None, tenant
 | 
			
		||||
            return authorize(user, element, tenant, operation)
 | 
			
		||||
    if pam:
 | 
			
		||||
        pammy = pam.pam()
 | 
			
		||||
        usergood = pammy.authenticate(user, passphrase)
 | 
			
		||||
        usergood = pammy.authenticate(user, passphrase, service='confluent')
 | 
			
		||||
        del pammy
 | 
			
		||||
        if usergood:
 | 
			
		||||
            _passcache[(user, tenant)] = hashlib.sha256(passphrase).digest()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user