Remote XDMCP Connection to GDM

I always forget how to do this. And it always takes me ages to find out what I did last time. Edit /etc/gdm/custom.conf and add:

1[xdmcp]
2enable=true
3
4[greeter]
5RemoteGreeter=/usr/libexec/gdmgreeter