d4e2010 Anbindung an OpenSchoolServer SLES11

...
auth    optional        pam_mount.so    use_first_pass
...
...
auth    optional        pam_mount.so    use_first_pass
...
...
find /home -type f -print | xargs -- rm -f --
 
ln -sf /home /home/teachers
ln -sf /home /home/students
ln -sf /home /home/workstations
ln -sf /home /home/administration
ln -sf /home /home/sysadmins
ln -sf /home /home/templates
ln -sf /home /home/guests
...
...
<volume user="*" fstype="cifs" server="schooladmin" path="%(USER)"
        mountpoint="/home/%(USER)/Eigene Dateien" options="dir_mode=0755,iocharset=utf8" />
 
<volume user="*" fstype="cifs" server="schooladmin" path="all"
        mountpoint="/home/%(USER)/all" options="dir_mode=0775,iocharset=utf8" />
 
<volume user="*" fstype="cifs" server="schooladmin" path="groups"
        mountpoint="/home/%(USER)/groups" options="dir_mode=0775,iocharset=utf8" />
 
<volume user="*" fstype="cifs" server="schooladmin" path="software"
        mountpoint="/home/%(USER)/software" options="dir_mode=0755,iocharset=utf8" />
...
...
GROUP=`id -ng $USER`
chown -R profil:sysadmins /var/lib/d4e/desktop-profil
rm /var/lib/d4e/desktop-profil/.ICE*
rm -rf /var/lib/d4e/desktop-profil/.nautilus
rm -rf /var/lib/d4e/desktop-profil/server
 
test -d /home/$USER || mkdir /home/$USER
 
if test "$USER" != "root" && test "$USER" != "profil" && test -d "/home/$USER"; then
   LIST=`/bin/ls -a --ignore=Eigene\ Dateien --ignore=all --ignore=groups --ignore=software --ignore=. --ignore=.. /home/$USER`
   cd /home/$USER
   rm -rf $LIST
   rsync -a /var/lib/d4e/desktop-profil/ .
   chown -R $USER:$GROUP /home/$USER
   export KDEHOME=/home/$USER/.kde_$USER
   export ICEAUTHORITY=/home/$USER/.ICEauthority
   export DCOPAUTHORITY=/home/$USER/$USER_DCOPserver-$HOSTNAME_ON_$DISPLAY
fi
 
ln -sf /home/$USER/Eigene\ Dateien /home/$USER/Desktop/Eigene\ Dateien
ln -sf /home/$USER/all /home/$USER/Desktop/all
ln -sf /home/$USER/groups /home/$USER/Desktop/groups
ln -sf /home/$USER/software /home/$USER/Desktop/software
...