File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -116,12 +116,6 @@ func (hba *HostBasedAuthentication) Replication() *HostBasedAuthentication {
116116 return hba
117117}
118118
119- // Role makes hba match connections by users that are members of a specific role.
120- func (hba * HostBasedAuthentication ) Role (name string ) * HostBasedAuthentication {
121- hba .user = "+" + hba .quote (name )
122- return hba
123- }
124-
125119// SameNetwork makes hba match connection attempts from IP addresses in any
126120// subnet to which the server is directly connected.
127121func (hba * HostBasedAuthentication ) SameNetwork () * HostBasedAuthentication {
Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ func TestHostBasedAuthentication(t *testing.T) {
5252 User ("KD6-3.7" ).Method ("scram-sha-256" ).
5353 String ())
5454
55- assert .Equal (t , `hostssl "data" +"admin" all md5 clientcert="verify-ca"` ,
56- NewHBA ().TLS ().Database ("data" ).Role ( "admin" ).
55+ assert .Equal (t , `hostssl "data" all all md5 clientcert="verify-ca"` ,
56+ NewHBA ().TLS ().Database ("data" ).
5757 Method ("md5" ).Options (map [string ]string {"clientcert" : "verify-ca" }).
5858 String ())
5959
You can’t perform that action at this time.
0 commit comments