After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 354746 - gdm does not handle xdmcp and tcp deny connections to X server correctly
gdm does not handle xdmcp and tcp deny connections to X server correctly
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
2.8.x
Other All
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2006-09-07 09:30 UTC by Jean-Pierre Dion
Modified: 2007-08-16 02:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description Jean-Pierre Dion 2006-09-07 09:30:59 UTC
Please describe the problem:
Open gdmsetup, then click tab Security, then :
- select box "Enable xdmcp"
- then if you hit box "Deny TCP connections to X server (disables xforwarding, but does not affect xdmcp)", you cannot get a display from another machine, so that affects xdmcp. When you deselect the box, that works.


Steps to reproduce:
1. Open gdmsetup
2. Click tab Security
3. Select box "Enable xdmcp"
4. Select box "Deny TCP connections to X server (disables xforwarding, but does not affect xdmcp)"
5. Connect to another machine and try to send the display on the first one


Actual results:
The display does not come on the first machine, you have an error "Cannot open <machine>:0"

Expected results:
The display should be opened on the first machine (that works when you deselect the box "Deny TCP..." and restart gdm).

Does this happen every time?
Yes

Other information:
Comment 1 Brian Cameron 2006-09-08 21:45:23 UTC
You can look at the code in daemon/server.c and see that the only thing that setting DisallowTCP does is add "-nolisten" to the call to start the Xserver.
Perhaps in some environments this does affect XDMCP and the docs and comment in gdmsetup should be updated.

I thought setting -nolisten didn't affect TCP, but perhaps it does.  Could someone verify?  This is probably a documentation bug.
Comment 2 Brian Cameron 2007-08-16 02:17:05 UTC
I have been suggesting this workaround to people on the gdm-list for some time, and people seem to report that it doesn't have any effect on breaking XDMCP.  So I think this bug has likely been fixed.  If people see problems in this area, please file a new bug or reopen this one with more information.