User Tools

Site Tools


ntlm_аутентификация_и_авторизация_в_microsoft_ad

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ntlm_аутентификация_и_авторизация_в_microsoft_ad [2009/04/14 17:42]
val
ntlm_аутентификация_и_авторизация_в_microsoft_ad [2013/05/22 13:50]
Line 1: Line 1:
-====== NTLM аутентификация и авторизация в Microsoft AD ====== 
- 
-===== Файловый сервер samba ===== 
-<​code>​ 
-gX# id uX 
-uid=20000(uX) gid=20005(Domain Users) groups=20005(Domain Users), 20011(samba) 
- 
-gX# cat smb.conf 
-... 
-[user_write] 
-        path = /tmp 
-        valid users = ADX\uX, ADX\Administrator 
-        read only = no 
-[group_write] 
-        path = /tmp 
-        valid users = @ADX\samba 
-        read only = no 
-</​code>​ 
- 
-==== FreeBSD ==== 
-<​code>​ 
-[gX:~] # /​usr/​local/​etc/​rc.d/​samba stop 
- 
-[gX:~] # ee /​etc/​rc.conf 
-... 
-winbindd_enable="​YES"​ 
-nmbd_enable="​YES"​ 
-smbd_enable="​YES"​ 
- 
-[gX:~] # /​usr/​local/​etc/​rc.d/​samba start 
-</​code>​ 
- 
-==== Ubuntu ==== 
-<​code>​ 
-@gX:~# /​etc/​init.d/​samba stop 
-</​code>​ 
- 
-===== Proxy сервер squid ===== 
- 
-==== FreeBSD ==== 
-<​code>​ 
-[gX:~] # chown root:squid /​var/​db/​samba/​winbindd_privileged/​ 
- 
-[gX:~] # pkg_add -r squid 
- 
-[gX:~] # cat /​etc/​rc.conf 
-... 
-squid_enable=yes 
- 
-[gX:~] # rehash 
-[gX:~] # squid -z 
- 
-[gX:~] # cd /​usr/​local/​etc/​squid 
-</​code>​ 
- 
-==== Ubuntu ==== 
-<​code>​ 
-root@gX:~# apt-get install squid 
- 
-root@gX:~# cd /etc/squid 
-</​code>​ 
- 
-==== FreeBSD/​Ubuntu ==== 
-<​code>​ 
-gX# rcsdiff squid.conf 
-211c211 
-< #     ​auth_param ntlm program /​usr/​bin/​ntlm_auth --helper-protocol=squid-2.5-ntlmssp 
---- 
-> # for linux uncomment 
-> # auth_param ntlm program /​usr/​bin/​ntlm_auth --helper-protocol=squid-2.5-ntlmssp 
-> # for freebsd uncomment 
-> # auth_param ntlm program /​usr/​local/​bin/​ntlm_auth --helper-protocol=squid-2.5-ntlmssp 
-644a645,647 
-> acl inetuser proxy_auth REQUIRED 
-> http_access allow inetuser 
-</​code>​ 
- 
-==== FreeBSD ==== 
-<​code>​ 
-[gX:~] # /​usr/​local/​etc/​rc.d/​squid start 
-</​code>​ 
- 
-==== Ubuntu ==== 
-<​code>​ 
-root@gX:~# /​etc/​init.d/​squid restart 
-</​code>​ 
- 
-==== Разрешение доступа в интернет на основании членства в группе ==== 
-<​code>​ 
-gX# ntlm_auth --username=uX --require-membership-of=ADX\\inet 
-</​code>​ 
  
ntlm_аутентификация_и_авторизация_в_microsoft_ad.txt · Last modified: 2013/05/22 13:50 (external edit)