This is an old revision of the document!
gX# ldapsearch -x -h sX -b "dc=adX,dc=class" -D "cn=Administrator,cn=Users,dc=adX,dc=class" -W "sAMAccountName=uX"
Устанавливаем NIS server из пакета SFU
Опции инсталяции:
Custom: Server for NIS
Добавляем группу “guX”
Устанавливаем ее UNIX свойство
gid: 10001
Добавляем UNIX атрибуты пользователю “uX”
uid: 10001 группа по умолчанию: guX home dir: /home/uX
Оставьте домашний каталог
[gX:~] # rmuser uX
root@g13:~# userdel uX
gX# id uX id: uX: No such user
[gX:~] # pkg_add -r nss_ldap [gX:~] # cat /usr/local/etc/nss_ldap.conf
root@gX:~# apt-get install libnss-ldap Ответы по умолчанию root@gX:~# cat /etc/ldap.conf
host 192.168.X.20 # for restart local dns base dc=adX,dc=class binddn cn=Administrator,cn=Users,dc=adX,dc=class bindpw password scope sub nss_base_passwd cn=Users,dc=adX,dc=class?one nss_base_group cn=Users,dc=adX,dc=class?one nss_map_objectclass posixAccount User nss_map_attribute uid msSFU30Name nss_map_attribute uniqueMember msSFU30PosixMember nss_map_attribute homeDirectory msSFU30HomeDirectory nss_map_objectclass posixGroup Group nss_map_attribute gidNumber msSFU30GidNumber nss_map_attribute uidNumber msSFU30UidNumber nss_map_attribute loginShell msSFU30LoginShell
gX# cat /etc/nsswitch.conf ... group: files ldap passwd: files ldap shadow: files ldap #для linux ...
см. pkg_add -r pam_mkhomedir apt-get install autodir