This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
ntlm_авторизация_в_microsoft_ad [2010/09/16 10:28] val |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== WINBIND авторизация в Microsoft AD ====== | ||
| - | |||
| - | ===== Настройка службы winbindd ===== | ||
| - | |||
| - | <code> | ||
| - | gate# cat smb.conf | ||
| - | </code><code> | ||
| - | [global] | ||
| - | workgroup = CORPX | ||
| - | security = DOMAIN | ||
| - | |||
| - | winbind use default domain = Yes | ||
| - | winbind enum users = yes | ||
| - | winbind enum groups = yes | ||
| - | winbind cache time = 36 | ||
| - | idmap uid = 20000-40000 | ||
| - | idmap gid = 20000-40000 | ||
| - | template homedir = /home/%U | ||
| - | template shell = /bin/sh | ||
| - | </code> | ||
| - | |||
| - | ===== Запуск службы winbindd ===== | ||
| - | |||
| - | ==== FreeBSD ==== | ||
| - | <code> | ||
| - | [gate:~] # /usr/local/etc/rc.d/samba restart | ||
| - | </code> | ||
| - | |||
| - | ==== Ubuntu ==== | ||
| - | <code> | ||
| - | root@gate:~# /etc/init.d/winbind restart | ||
| - | </code> | ||
| - | |||
| - | ==== Проверки ==== | ||
| - | <code> | ||
| - | gate# ntlm_auth --username=user1 | ||
| - | password: | ||
| - | NT_STATUS_OK: Success (0x0) | ||
| - | |||
| - | gate# wbinfo -u | ||
| - | ... | ||
| - | |||
| - | gate# wbinfo -g | ||
| - | ... | ||
| - | </code> | ||
| - | |||
| - | ===== Настройка библиотеки nsswitch на использование winbind ===== | ||
| - | <code> | ||
| - | gate# cat /etc/nsswitch.conf | ||
| - | … | ||
| - | group: files winbind | ||
| - | passwd: files winbind | ||
| - | shadow: files winbind # for linux only | ||
| - | … | ||
| - | |||
| - | gate# wbinfo -n user | ||
| - | gate# wbinfo -S … | ||
| - | |||
| - | gate# id user | ||
| - | |||
| - | gate# chown -R user:'domain users' /home/user/ | ||
| - | gate# chown user:'domain users' /var/mail/user | ||
| - | </code> | ||