Custom GDM

in

GDM scripts

Create the file /var/log/gdm.log.

In the file /etc/gdm/PreSession/Default add the line

for script in /etc/gdm/PreSession/S*; do sh $script >> /var/log/gdm.log 2>&1; done

In the file /etc/gdm/PostSession/Default add the line

for script in /etc/gdm/PostSession/K*; do sh $script >> /var/log/gdm.log 2>&1; done

Create script /etc/gdm/PreSession/S01session:

#!/bin/bash
echo == LOGIN $LOGNAME `date`
echo ====

Create script /etc/gdm/PostSession/K01session:

#!/bin/bash
echo == LOGOUT $LOGNAME `date`
while gconftool-2 --ping ; do
    gconftool-2 --shutdown
    sleep 0.2
done
for process in gvfsd gnome-vfs-daemon dbus-daemon ; do
    while [ `pgrep -c -u $LOGNAME $process` != 0 ] ; do
        pkill -u $LOGNAME gvfsd
        sleep 0.2
    done
done
/bin/rm -rf /tmp/*-$LOGNAME
echo ====

More information: here1, here2, get classic gnome logout menus.

GDM Bugs

GDM failure after switch to LDAP

Hanging login after idle period

Logs

And when after idling for 5+ minutes, the GDM login screen hangs upon accepting user password.

GNU TLS hangups were discussed here (novel)and here.

A solution is not yet found.

Workaround is to change some parameters in /etc/ldap.conf:

uri ldap://10.20.0.1:389
#uri ldaps://ldap.ourdom.com:636
#ssl on

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
To prevent automated spam submissions leave this field empty.