You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -11,20 +11,30 @@ $PostgreSQL: pgsql/doc/src/sgml/client-auth.sgml,v 1.82 2005/06/27 02:04:23 neil
11
11
12
12
<para>
13
13
When a client application connects to the database server, it
14
-
specifies which <productname>PostgreSQL</productname> user name it
14
+
specifies which <productname>PostgreSQL</productname> database user name it
15
15
wants to connect as, much the same way one logs into a Unix computer
16
16
as a particular user. Within the SQL environment the active database
17
17
user name determines access privileges to database objects — see
18
18
<xref linkend="user-manag"> for more information. Therefore, it is
19
19
essential to restrict which database users can connect.
20
20
</para>
21
21
22
+
<note>
23
+
<para>
24
+
As explained in <xref linkend="user-manag">,
25
+
<productname>PostgreSQL</productname> actually does privilege
26
+
management in terms of <quote>roles</>. In this chapter, we
27
+
consistently use <firstterm>database user</> to mean <quote>role with the
28
+
<literal>LOGIN</> privilege</quote>.
29
+
</para>
30
+
</note>
31
+
22
32
<para>
23
33
<firstterm>Authentication</firstterm> is the process by which the
24
34
database server establishes the identity of the client, and by
25
35
extension determines whether the client application (or the user
26
36
who runs the client application) is permitted to connect with the
27
-
user name that was requested.
37
+
database user name that was requested.
28
38
</para>
29
39
30
40
<para>
@@ -35,7 +45,7 @@ $PostgreSQL: pgsql/doc/src/sgml/client-auth.sgml,v 1.82 2005/06/27 02:04:23 neil
35
45
</para>
36
46
37
47
<para>
38
-
<productname>PostgreSQL</productname> user names are logically
48
+
<productname>PostgreSQL</productname> database user names are logically
39
49
separate from user names of the operating system in which the server
40
50
runs. If all the users of a particular server also have accounts on
41
51
the server's machine, it makes sense to assign database user names
@@ -88,13 +98,13 @@ $PostgreSQL: pgsql/doc/src/sgml/client-auth.sgml,v 1.82 2005/06/27 02:04:23 neil
88
98
<para>
89
99
A record may have one of the seven formats
90
100
<synopsis>
91
-
local <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>authentication-method</replaceable> <optional><replaceable>authentication-option</replaceable></optional>
local <replaceable>database</replaceable> <replaceable>user</replaceable> <replaceable>auth-method</replaceable> <optional><replaceable>auth-option</replaceable></optional>
<replaceable>servicename</> can be set on the server side using the
627
646
<xref linkend="guc-krb-srvname"> configuration parameter, and on the
628
-
client side using the krbsrvname connection parameter. (See also <xref linkend="libpq-connect">.). The installation default can be changed from the default
629
-
<literal>postgres</literal> at build time using
630
-
<literal>./configure --with-krb-srvnam=whatever</>). In most environments,
631
-
this parameter never needs to be changed. However, to support multiple
632
-
<productname>PostgreSQL</> installations on the same host it is necessary.
633
-
Some Kerberos implementations may also require a different service name,
634
-
such as Microsoft Active Directory which requires the service name
635
-
to be in uppercase (<literal>POSTGRES</literal>).
636
-
</para>
637
-
<para>
647
+
client side using the <literal>krbsrvname</> connection parameter. (See
648
+
also <xref linkend="libpq-connect">.) The installation default can be
649
+
changed from the default <literal>postgres</literal> at build time using
650
+
<literal>./configure --with-krb-srvnam=whatever</>. In most environments,
651
+
this parameter never needs to be changed. However, to support multiple
652
+
<productname>PostgreSQL</> installations on the same host it is necessary.
653
+
Some Kerberos implementations may also require a different service name,
654
+
such as Microsoft Active Directory which requires the service name
655
+
to be in uppercase (<literal>POSTGRES</literal>).
656
+
</para>
657
+
658
+
<para>
638
659
<replaceable>hostname</> is the fully qualified host name of the
639
660
server machine. The service principal's realm is the preferred realm
640
661
of the server machine.
641
662
</para>
642
663
643
664
<para>
644
-
Client principals must have their <productname>PostgreSQL</> user
665
+
Client principals must have their <productname>PostgreSQL</> database user
645
666
name as their first component, for example
646
667
<literal>pgusername/otherstuff@realm</>. At present the realm of
647
668
the client is not checked by <productname>PostgreSQL</>; so if you
@@ -661,9 +682,9 @@ local db1,db2,@demodbs all md5
661
682
</para>
662
683
663
684
<para>
664
-
The keytab file is generated in the Kerberos system, see the
665
-
Kerberos documentation for details. The following example is
666
-
for MIT-compatible Kerberos 5 implementations:
685
+
The keytab file is generated by the Kerberos software; see the
686
+
Kerberos documentation for details. The following example is
0 commit comments