[Junior] Сервер для школьного дистрибутива.

Владимир =?iso-8859-1?q?haw_=CE=C1_inbox=2Eru?=
Вт Янв 22 17:16:02 MSK 2008


LDAP поднят так:
apt-get install libdb4.4 libdb4.4-devel nss_ldap pam_ldap db4.4-utils
./configure --prefix=/usr --libexecdir=/usr/sbin --sysconfdir=/etc/ --localstatedir=/var --libdir=/usr/lib --infodir=/usr/share/info --mandir=/usr/share/man

make depend
make

make test
su root -c 'make install'



dn: dc=example,dc=lan
objectclass: dcObject
objectclass: organization
o: lan
dc: example

dn: cn=Manager,dc=example,dc=lan
objectclass: organizationalRole
cn: Manager

dn: ou=People,dc=example,dc=lan
objectclass: top
objectclass: organizationalUnit
ou: People




ldapadd -x -D "cn=Manager,dc=example,dc=lan" -w secret -f example.ldif
ldapsearch -x -b 'dc=example,dc=lan' '(objectclass=*)'
#####################################################

NFSv4

#по мативам 
http://www.crazysquirrel.com/computing/debian/servers/setting-up-nfs4.jspx
apt-get install nfs-server nfs-utils nfs-clients portmap

#В /etc/sysconfig/portmap
#Изменить 
#PORTMAP_ARGS="-l" на PORTMAP_ARGS=" "

mkdir /export
chmod a+rwxt /export
mkdir -m 1777 /export/home
mount --bind /home /export/home
echo "/export         192.168.13.0/24
(ro,sync,insecure,root_squash,no_subtree_check,fsid=0)" >> /etc/exports
echo "/export/home   192.168.13.0/24
(rw,nohide,sync,insecure,root_squash,no_subtree_check)" >> /etc/exports
service portmap restart; service nfs restart
exportfs -rv
echo "/home           /export/home   none    rw,bind 0   0" >> /etc/fstab

#На клиенте
mount -t nfs4 192.168.13.5:/home /home
echo "192.168.13.5:/home /home nfs4 rw 0 0" >> /etc/fstab



Подробная информация о списке рассылки Junior