File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,8 @@ pdo_pgsql / pgsql
280
280
- ``sslcrl `` (string): specifies the filename of the SSL certificate
281
281
revocation list (CRL).
282
282
See `https://www.postgresql.org/docs/9.4/static/libpq-connect.html#LIBPQ-CONNECT-SSLCRL `
283
+ - ``gssencmode `` (string): Optional GSS-encrypted channel/GSSEncMode configuration.
284
+ See `https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-GSSENCMODE `
283
285
- ``application_name `` (string): Name of the application that is
284
286
connecting to database. Optional. It will be displayed at ``pg_stat_activity ``.
285
287
Original file line number Diff line number Diff line change @@ -104,6 +104,10 @@ private function constructPdoDsn(array $params): string
104
104
$ dsn .= 'application_name= ' . $ params ['application_name ' ] . '; ' ;
105
105
}
106
106
107
+ if (isset ($ params ['gssencmode ' ])) {
108
+ $ dsn .= 'gssencmode= ' . $ params ['gssencmode ' ] . '; ' ;
109
+ }
110
+
107
111
return $ dsn ;
108
112
}
109
113
}
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ private function constructConnectionString(
74
74
'user ' => $ params ['user ' ] ?? null ,
75
75
'password ' => $ params ['password ' ] ?? null ,
76
76
'sslmode ' => $ params ['sslmode ' ] ?? null ,
77
+ 'gssencmode ' => $ params ['gssencmode ' ] ?? null ,
77
78
],
78
79
static fn (int |string |null $ value ) => $ value !== '' && $ value !== null ,
79
80
);
You can’t perform that action at this time.
0 commit comments