Hi Wolfgang,>From the XDMCP documentation:*Hostname*: ARRAY8 Is a human readable string describing the host from which the packet was sent. The protocol specifies no interpretation of the data in this field. *Status*: ARRAY8 Is a human readable string describing the status of the host. This could include load average/number of users connected or other information. The protocol specifies no interpretation of the data in this field. Looking at the LightDM code we don't set anything in these fields. It seems we should probably set hostname to the system hostname (and make configurable in lightdm.conf). Not sure what is appropriate to set status to (if anything). --Robert On Tue, 3 May 2016 at 07:34 Wolfgang Baudler <wbaudler at gb.nrao.edu> wrote:> > I have a lightdm setup in an XDMCP configuration like this: > > [SeatDefaults] > type=xremote > xserver-allow-tcp=true > xdmcp-port=177 > greeter-show-remote-login=true > greeter-allow-guest=false > > [XDMCPServer] > enabled=true > port=177 > > I have a kdm chooser host which is configured to show the lightdm host in > it's chooser menu. > > It seems to work, except for the rather irritating fact that the chooser > hostname and status field of the lightdm host show up as completely empty > in the menu (the menu shows an empty line instead of a proper host entry). > > lightdm.log shows > [+26.32s] DEBUG: Got Query(authentication_names=[]) from 10.16.96.76:44231 > [+26.32s] DEBUG: Send Willing(authentication_name='' hostname='' > status='') to 10.16.96.76:44231 > > Where you can clearly see that the hostname and status strings are empty > (status normally shows number of users logged in and load on the remote > XDMCP host). It seems that lightdm does not set these fields? > > Am I missing something or is this a bug? > > Wolfgang > > > _______________________________________________ > LightDM mailing list > LightDM at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/lightdm >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/lightdm/attachments/20160504/b55f1e6c/attachment.html>
https://bugs.launchpad.net/bugs/1578442 On Thu, 5 May 2016 at 11:46 Robert Ancell <robert.ancell at gmail.com> wrote:> Hi Wolfgang, > > From the XDMCP documentation: > > *Hostname*: ARRAY8 > Is a human readable string describing the host from which the > packet was sent. The protocol specifies no interpretation of the data in > this field. > *Status*: ARRAY8 > Is a human readable string describing the status of the host. This > could include load average/number of users connected or other information. > The protocol specifies no interpretation of the data in this field. > Looking at the LightDM code we don't set anything in these fields. It > seems we should probably set hostname to the system hostname (and make > configurable in lightdm.conf). Not sure what is appropriate to set status > to (if anything). > > --Robert > > > On Tue, 3 May 2016 at 07:34 Wolfgang Baudler <wbaudler at gb.nrao.edu> wrote: > >> >> I have a lightdm setup in an XDMCP configuration like this: >> >> [SeatDefaults] >> type=xremote >> xserver-allow-tcp=true >> xdmcp-port=177 >> greeter-show-remote-login=true >> greeter-allow-guest=false >> >> [XDMCPServer] >> enabled=true >> port=177 >> >> I have a kdm chooser host which is configured to show the lightdm host in >> it's chooser menu. >> >> It seems to work, except for the rather irritating fact that the chooser >> hostname and status field of the lightdm host show up as completely empty >> in the menu (the menu shows an empty line instead of a proper host entry). >> >> lightdm.log shows >> [+26.32s] DEBUG: Got Query(authentication_names=[]) from >> 10.16.96.76:44231 >> [+26.32s] DEBUG: Send Willing(authentication_name='' hostname='' >> status='') to 10.16.96.76:44231 >> >> Where you can clearly see that the hostname and status strings are empty >> (status normally shows number of users logged in and load on the remote >> XDMCP host). It seems that lightdm does not set these fields? >> >> Am I missing something or is this a bug? >> >> Wolfgang >> >> >> _______________________________________________ >> LightDM mailing list >> LightDM at lists.freedesktop.org >> https://lists.freedesktop.org/mailman/listinfo/lightdm >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/lightdm/attachments/20160505/00765346/attachment.html>
Wolfgang Baudler
2016-May-05 00:20 UTC
[LightDM] {Disarmed} Re: Lightdm host in XDMCP chooser menu
> Hi Wolfgang, > >>From the XDMCP documentation: > > *Hostname*: ARRAY8 > Is a human readable string describing the host from which the packet > was sent. The protocol specifies no interpretation of the data in this > field. > *Status*: ARRAY8 > Is a human readable string describing the status of the host. This > could include load average/number of users connected or other information. > The protocol specifies no interpretation of the data in this field. > Looking at the LightDM code we don't set anything in these fields. It > seems > we should probably set hostname to the system hostname (and make > configurable in lightdm.conf). Not sure what is appropriate to set status > to (if anything). >Regarding status, the original xdm comes with a shell script called "Xwilling" which produces the status field string by default. Example: 3 users, load: 0.00, 0.07, 0.14 The script looks like that: #!/bin/sh # # The output of this script is displayed in the chooser window. # (instead of "Willing to manage") load="`uptime|sed -e 's/^.*load[^0-9]*//'`" nrusers="`who|cut -c 1-8|sort -u|wc -l|sed 's/^[ ]*//'`" s=""; [ "$nrusers" != 1 ] && s=s echo "${nrusers} user${s}, load: ${load}" Wolfgang