mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Fix missing ldapscheme option in pg_hba_file_rules()
The ldapscheme option was missed when inspecing the HbaLine for assembling rows for the pg_hba_file_rules function. Backpatch to all supported versions. Author: Laurenz Albe <laurenz.albe@cybertec.at> Reported-by: Laurenz Albe <laurenz.albe@cybertec.at> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Bug: 18769 Discussion: https://postgr.es/m/18769-dd8610cbc0405172@postgresql.org Backpatch-through: v13
This commit is contained in:
		@@ -90,6 +90,10 @@ get_hba_options(HbaLine *hba)
 | 
			
		||||
			options[noptions++] =
 | 
			
		||||
				CStringGetTextDatum(psprintf("ldapport=%d", hba->ldapport));
 | 
			
		||||
 | 
			
		||||
		if (hba->ldapscheme)
 | 
			
		||||
			options[noptions++] =
 | 
			
		||||
				CStringGetTextDatum(psprintf("ldapscheme=%s", hba->ldapscheme));
 | 
			
		||||
 | 
			
		||||
		if (hba->ldaptls)
 | 
			
		||||
			options[noptions++] =
 | 
			
		||||
				CStringGetTextDatum("ldaptls=true");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user