How to configure the PAM authentication in Postgres 12

Hello Guys,
I am new to the Postgres.
I want to configure the PAM authentication. How we will configure the PAM .
Thanks in advance

Hi Balaji,

Did you check the online documentation on it?

We also have a blogpost on it:

You can also use a line like the following in your pg_hba.conf file to use ssl/tls:

hostssl all             all                  pam pamservice=postgresql

Hi @Agustin_G ,
I gone through it.
How we can add AD user groups here.
For ex: I have group name like DB_RO and DB_WRITE.
Under each this AD group( DB_RO and DB_WRITE) we have 40+ users.

Then how can i add these AD groups to this PAM?