]> jfr.im git - irc/rqf/shadowircd.git/blame - doc/technical/euid.txt
Commit error
[irc/rqf/shadowircd.git] / doc / technical / euid.txt
CommitLineData
212380e3 1
2Extended UID command proposal
3Jilles Tjoelker <jilles@stack.nl>
4
5Introduction
6------------
7
8The current protocol to deal with real and visible hosts, with UID, ENCAP
9REALHOST and ENCAP CHGHOST commands has several problems.
10
11In some cases (MONITOR) real hosts are used inappropriately because the UID
12command contains the real host for new users. In other cases (atheme
13akills), the visible host is used inappropriately because the UID command
14contains the visible host for burst users. In both cases nothing is sent
15after the UID command if real and visible hosts are equal. In the latter
16case this problem can be worked around with end-of-burst detection but in
17the former case that is not possible.
18
19This can be fixed by sending both real and visible host in the same command.
20
21This command can also include the data that is currently sent with ENCAP
22LOGIN.
23
24Another problem is that CHGHOST is an ENCAP command although it is important
25for synchronization. One of the problems is that the target often remains
26a UID even if sent to a TS5 server (various old services packages).
27
28This can be fixed by making it a regular command.
29
30Current commands
31----------------
32
33(TS6 form only)
34
35:<SID> UID <NICK> <HOPS> <TS> +<UMODE> <USERNAME> <HOSTNAME> <IP> <UID> :<GECOS>
36
37Introduces a user, see Lee Hardy's ts6.txt.
38
39:<UID> ENCAP * REALHOST <REALHOST>
40
41Sets the real host of a user (the hostname in UID is the visible host).
42
43:<SID> ENCAP * CHGHOST <UID> <VHOST>
44
45Sets/changes the visible host of a user (the hostname in UID is the real host).
46
47:<UID> ENCAP * LOGIN <ACCOUNT>
48
49Sets the login name of a user.
50
51New commands
52------------
53
54:<SID> EUID <NICK> <HOPS> <TS> +<UMODE> <USERNAME> <VHOST> <IP> <UID> <REALHOST> <ACCOUNT> :<GECOS>
55
56Introduces a user. The hostname field is now always the visible host.
57The realhost field is * if the real host is equal to the visible host.
58The account field is * if the login is not set.
59Note that even if both new fields are *, an EUID command still carries more
60information than a UID command (namely that real host is visible host and the
61user is not logged in with services). Hence a NICK or UID command received
62from a remote server should not be sent in EUID form to other servers.
63
64:<SID> CHGHOST <UID> <VHOST>
65
66Changes the visible host of a user.
67
68A new server capab named EUID will be sent if these commands are supported.
69If the capab is not present, the old commands must be used.
70EUID can (in principle) also be used with TS5.