[SSPI] Windows group support

Поиск
Список
Период
Сортировка
От The Dude
Тема [SSPI] Windows group support
Дата
Msg-id CA+bhM4LXGi49XeGBGNd10xk8xwP_OsenDGgAxLd_XQKPCgrVeQ@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hi,

I have some code that I've been using in production that supports adding and authenticating Windows groups via the pg_ident file.  It has a new indicator (+), that signifies the identifier is a Windows group, as in the following example:

# MAPNAME   SYSTEM-USERNAME       PG-USERNAME    
"Users" "+User group"   postgres

A new function was added to test if a user token is in the windows group:

/*
 * Check if the user (sspiToken) is a member of the specified group
 */
static BOOL
sspi_user_is_in_group(HANDLE sspiToken, LPCTSTR groupName)

I wanted to share this as a patch for the latest, as soon as I port it to v12.  Does this sound reasonable?

thanks,
Russell

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: Remove non-fast promotion Re: Should we remove a fallbackpromotion? take 2
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Fix for pg_statio_all_tables