How to enable remote XDMCP in Solaris 10 ?

Solaris 10 is secure by default and starts services on localhost instead of system name or all hosts(*) . Due to that if you try to connect to server over xdmcp using exceed on demand or something you won’t get connection. For that we need to use following method to fix it.

if you issue ps on dtlogin. It might come up like this and listens on udp port 0 instead of 177.

#ps –ef |grep –i dtlogin

/usr/dt/bin/dtlogin -daemon -udpPort 0

You can change the above behaviour by using svccfg and change the properties.

#svccfg -s cde-login setprop ‘dtlogin/args=””‘

#svcadm restart cde-login # or #svcadm enable -r cde-login

After these system should respond to xdmcp broadcast queries.

Solaris 10’s desktop environment is JDS which is based off of GNOME.

Log in as root
Open a terminal
Type gdmsetup (a dialog box will appear)
Click on the XDMCP tab
Check the Enable XDMCP box
Press Close

Check service of gdm2-login and enable it.

bash-3.00# svcs -a | grep gdm
disabled       Oct_10   svc:/application/gdm2-login:default

bash-3.00# svcadm enable svc:/application/gdm2-login:default
bash-3.00# svcs -a | grep gdm
online         10:37:05 svc:/application/gdm2-login:default