Open /etc/gdm/custom.conf and edit the security and xdmcp section like the followings:
[daemon]
RemoteGreeter=/usr/libexec/gdmgreeter
[security]
AllowRemoteRoot=true
[xdmcp]
Enable=true
[gui]
[greeter]
[chooser]
[debug]
Restart the system by the command:
reboot
