Appendix 2.A Message Reference

2.A.1 Messages #

2.A.1.1 On /run/logon.sock #

msg_typeMessageDirectionDefined in
0x0001LogonStartclient → authority§2.7
0x0002CredentialResponseclient → authority§2.8
0x8001CredentialRequestauthority → client§2.8
0x8002AccessGrantedauthority → client§2.9
0x8003AccessDeniedauthority → client§2.10

2.A.1.2 On /run/ident.sock #

msg_typeMessageDirectionDefined in
0x0010Lookupclient → authority§2.16
0x0011Enumerateclient → authority§2.17
0x8010LookupReplyauthority → client§2.16
0x8011EnumerateReplyauthority → client§2.17

The high bit marks a message sent by the authority (§2.6). The two ranges are disjoint, and a message of one range MUST be refused on the other socket (§2.14).

2.A.2 Protocol constants #

ConstantValueDefined in
Logon socket path/run/logon.sock§2.5
Identity socket path/run/ident.sock§2.14
MagicPGSL (50 47 53 4c)§2.6
Version1§2.6
Header size12 bytes§2.6
Maximum message size65536 bytes§2.6

2.A.3 Field limits #

FieldMaximumDefined in
identifier1024 bytes§2.7
tty128 bytes§2.7
remote_host256 bytes§2.7
supported_credential_types32 entries§2.7
messages8 entries§2.8
prompts16 entries§2.8
answers16 entries§2.8
text512 bytes§2.8
credential_name128 bytes§2.8
data32768 bytes§2.8
home4096 bytes§2.9
shell4096 bytes§2.9
display_name256 bytes§2.9
reason512 bytes§2.10
name (lookup key)256 bytes§2.16
sid68 bytes§2.16
qualified_name512 bytes§2.16
withheld32 entries§2.16
values32 entries§2.16
reference name512 bytes§2.16
HOME, SHELL4096 bytes§2.16
DISPLAY_NAME256 bytes§2.16
GROUPS128 entries§2.16
MEMBERS256 entries§2.16
CLAIMS64 entries§2.16
of_name256 bytes§2.17
cursor, next256 bytes§2.17
entries256 entries§2.17
incomplete32 entries§2.17
incomplete source name32 bytes§2.17

The 68-byte SID maximum is a property of the SID encoding rather than of this chapter: an eight-byte prelude plus the fifteen sub-authorities the one-byte count admits. It is specified in PCDS.

An encoder MUST refuse to produce a field exceeding its maximum; a decoder MUST reject one it receives (§2.6).

Edit this page