Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
d4e_anbindung_an_openschoolserver [2010/09/15 15:45] |
d4e_anbindung_an_openschoolserver [2010/09/15 15:45] (aktuell) |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== d4e2010 Anbindung an OpenSchoolServer SLES11 ====== | ||
+ | *Pilotschule HIB Liebenau | ||
+ | |||
+ | *Host: /etc/hosts | ||
+ | *Adresse des Servers | ||
+ | |||
+ | *LDAP: yast ldap-client | ||
+ | *LDAP verwenden, Adresse, dc=...,dc=... | ||
+ | |||
+ | */etc/pam.d/common-auth-pc | ||
+ | |||
+ | <file> | ||
+ | ... | ||
+ | auth optional pam_mount.so use_first_pass | ||
+ | ... | ||
+ | </file> | ||
+ | |||
+ | */etc/pam.d/common-session-pc | ||
+ | |||
+ | <file> | ||
+ | ... | ||
+ | auth optional pam_mount.so use_first_pass | ||
+ | ... | ||
+ | </file> | ||
+ | |||
+ | */etc/init.d/boot.local | ||
+ | |||
+ | <code bash> | ||
+ | ... | ||
+ | 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 | ||
+ | ... | ||
+ | </code> | ||
+ | |||
+ | */etc/security/pam_mount.conf.xml | ||
+ | <code bash> | ||
+ | ... | ||
+ | <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" /> | ||
+ | ... | ||
+ | </code> | ||
+ | |||
+ | */etc/gdm/PreSession/Default | ||
+ | |||
+ | <code bash> | ||
+ | ... | ||
+ | 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 | ||
+ | ... | ||
+ | </code> | ||
+ | |||
+ | *Für Profil: In LDAP einen Benutzer **profil** anlegen, in der Gruppe **sysadmins**, mit dem Home-Verzeichnis **/var/lib/d4e/desktop-profil** |