Commit 2ac4f422 authored by Adam Wujek's avatar Adam Wujek

rootfs/etc: create home directory for LDAP users

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 595c789b
......@@ -61,7 +61,7 @@ chmod a+rx $TMPFS
##### now move stuff to usr (we need usr to be in flash, / remains initramfs)
# remove needless stuff
rm -rf $TMPFS/home $TMPFS/opt
rm -rf $TMPFS/opt
sed -i '/^default/ d' $TMPFS/etc/passwd
# move /wr and /var to /usr/wr and /usr/var
mv $TMPFS/wr $TMPFS/usr; ln -s usr/wr $TMPFS
......
......@@ -296,3 +296,6 @@ if grep -q initrd= /proc/cmdline; then
rm /etc/init.d/wrs-boot-procedure;
cp -a /usr/etc/* /etc
fi
# create dir for home dirs
mkdir -p /tmp/home
......@@ -109,8 +109,8 @@ pagesize 1000
referrals off
filter passwd (&(objectClass=user)(uidNumber=*)(unixHomeDirectory=*))
map passwd uid sAMAccountName
map passwd homeDirectory unixHomeDirectory
#map passwd homeDirectory "/home/$sAMAccountName"
#map passwd homeDirectory unixHomeDirectory
map passwd homeDirectory "/home/$sAMAccountName"
map passwd gecos displayName
#map passwd loginShell "/sbin/nologin"
......
......@@ -9,3 +9,4 @@ password required /lib/security/pam_unix.so shadow nullok use_authtok
session required /lib/security/pam_unix.so
session required /lib/security/pam_limits.so
session required /lib/security/pam_krb5.so minimum_uid=1000
session required /lib/security/pam_mkhomedir.so skel=/etc/skel umask=0022
echo "Home directory was automatically generated, it will be removed at the reboot"
tmp/home
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment