This section summarizes the configuration requirements of X11R4, X11R5, and X11R6 XDM on manager hosts. For more detailed information, see the X Window System Administrator's Guide from O'Reilly and Associates. For information about X11R3 XDM, see "Using XDM-X11R3 Version".
The following are optional on manager hosts:
The xdm(1) program binary is installed in the /usr/bin/X11 directory and must be installed on each XDM manager host.
Installing XDM Configuration Files
Table 8-2 lists the files on the NCDware distribution, along with the function of each file and whether it is required.
Table 8-2 XDM Binary and Configuration Files
Configuring the System-Wide XDM Session Management File
You must use xrdb to load resources for NCD local clients into the X server; local clients do not read resource files.
If you want to edit the default Xsession file:
The default Xsession file included on the NCDware distribution follows. Note that:
exec to start clients saves a process slot on the host.
#!/bin/sh
# Xsession
if [ -f $HOME/.xsession ]; then
if [ -x $HOME/.xsession ]; then
exec $HOME/.xsession
else
exec /bin/sh $HOME/.xsession
fi
else
exec xterm -fn 10x20 -geometry 80x24+20+20 -ls
fi
#!/bin/shNCDNAME=\Qecho $DISPLAY | awk ` {FS=":"; print $1}'\Q PATH=.:/usr/local/bin:/usr/local/bin/X11:/usr/bin/X11:$PATH export NCDNAME PATH if [ -f $HOME/.xsession ]; then if [ -x $HOME/.xsession ]; then exec $HOME/.xsession else exec /bin/sh $HOME/.xsession fi else # Start the ncdwm local window manager ncdrunwm -d $NCDNAME & # Start an xterm xterm -sb -geometry 80x24-5-150 -fn 9x15bold & fi
# Start the mwm local window manager# ncdrunwm -d $NCDNAME -mwm &
#!/bin/shNCDNAME = \Qecho $DISPLAY | awk ' {FS=":"; print $1} ' \Q # # Set up variables for running OpenWindows OPENWINHOME=/usr/openwin export OPENWINHOME OW=$OPENWINHOME export OW LD_LIBRARY_PATH=$OW/lib:/usr/lib MANPATH=$OW/man:/usr/man PATH=$OW/bin:$OW/bin/xview:$OW/demo:/usr/local/bin:/usr/local/bin/X11:/u sr/bin export NCDNAME LD_LIBRARY_PATH MANPATH PATH if [ -f $HOME/.xsession ]; then if [ -x $HOME/.xsession ]; then exec $HOME/.xsession else exec /bin/sh $HOME/.xsession fi else fi # # Start a cmdtool session $OW/bin/cmdtool & # # Start OpenLook Window Manager exec olwm
For information on creating .xsession files, see the NCDware System Administrator's Guide.
Configuring the XDM Xaccess File
# XDMCP access file* # allow everybody
If you edit the Xaccess file while XDM is running, XDM automatically re-reads the file and uses the new information the next time a terminal connects to the host.
Contents of an Xaccess File Entry
File entries consist of hostnames, patterns, and macros:
%HOSTS atlantic.oceans.com pacific.oceans.com \antarctic.oceans.com
Xaccess files have two types of entries:
In all cases, XDM uses the first entry that matches the terminal name. If the terminal sends an indirect query, only indirect entries in the file can match. If the terminal sends a direct or broadcast query, only direct and broadcast entries can match.
Direct and Broadcast Entries in the Xaccess File
Direct and broadcast entries consist of a terminal hostname or a pattern representing one or more terminals.
Example Entries
*
This entry allows direct or broadcast access to this host from the terminal ncdu10:
ncdu10.oceans.com
This entry allows access from any terminal in the oceans domain:
*.oceans.com
This entry prevents direct or broadcast access by the terminal ncdu11:
!ncdu11.oceans.com
Indirect entries are forwarded to another host or list of hosts.
Indirect entries consist of terminal hostnames or patterns followed by a list of XDM manager hostnames, macros, or the keyword BROADCAST.
Example Entries
ncdu12 atlantic.oceans.com
This entry disallows indirect access by ncdu13:
!ncdu13.oceans.com dummy
%HOSTS atlantic.oceans.com pacific.oceans.com \antarctic.oceans.com ncdu*.oceans.com %HOSTS
You can substitute your own files for the default configuration files. The following is an example.
DisplayManager.servers: /usr/lib/X11/xdm/XserversDisplayManager.errorLogFile: /usr/lib/X11/xdm/xdm-errors DisplayManager.forwardingMode: false DisplayManager*resources: /usr/lib/X11/xdm/Xresources DisplayManager*startup: /usr/lib/X11/xdm/Xstartup DisplayManager*reset: /usr/lib/X11/xdm/Xreset DisplayManager*session: /usr/lib/X11/xdm/Xsession DisplayManager*pingInterval: 60 DisplayManager*pingTimeout: 720 DisplayManager.keyFile: /usr/lib/X11/xdm/xdm-keys
Each resource in the xdm-config file has one form for setting the resource for all terminals and another for setting the resource for an individual terminal. For example, the authorize resource enables or disables user-based access control.
DisplayManager*authorize: falseDisplayManager.ncdu15_0.authorize: true
DisplayManager*pingInterval: 60DisplayManager*pingTimeout: 720
DisplayManager*xrdb: /usr/openwin/bin/xrdb
xlogin*greeting:
your greeting
The xdm-errors file logs errors reported by XDM. It must be world-writable.