The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  ВХОД  слежка  RSS
"Squid2.6s5+ncsa_auth"
Вариант для распечатки  
Пред. тема | След. тема 
Форумы Настройка Squid и других прокси серверов (Public)
Изначальное сообщение [Проследить за развитием треда]

"Squid2.6s5+ncsa_auth"  
Сообщение от NoNTower (ok) on 05-Июл-07, 14:39 
проблема в следующем. установил ncsa_auth.
забил с помощью htpasswd2 пароль для пользователя
В браузере появляется приглашение ввести пароль вводишь хрен. В access.log выходит ошибка 407.
Если просто в консоли набрать
ncsa_auth /etc/squid/passwd
user:passwd
ERR
Может это глюки ncsa_auth
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80        # http
acl Safe_ports port 21        # ftp
acl Safe_ports port 443        # https
acl Safe_ports port 70        # gopher
acl Safe_ports port 210        # wais
acl Safe_ports port 1025-65535    # unregistered ports
acl Safe_ports port 280        # http-mgmt
acl Safe_ports port 488        # gss-http
acl Safe_ports port 591        # filemaker
acl Safe_ports port 777        # multiling http
acl CONNECT method CONNECT
acl hero src 192.168.10.240
acl kids src 192.168.10.0/24
acl mp3 urlpath_regex -i \.mp3$
acl avi urlpath_regex -i \.avi$
acl wav urlpath_regex -i \.wav$
acl mpg urlpath_regex -i \.mpg$
acl mpeg urlpath_regex -i \.mpeg$
acl swf urlpath_regex -i \.swf$
acl flt urlpath_regex -i \.flt$
acl jpg urlpath_regex -i \.jpg$
acl gif urlpath_regex -i \.gif$
acl flash rep_mime_type -i ^application/x-shockwave-flash$
acl porn url_regex '/etc/squid/Files/porn.txt'
acl noporn url_regex '/etc/squid/Files/noporn.txt'
acl auth proxy_auth REQUIRED
http_access allow auth
http_access deny kids mp3
http_access deny kids avi
http_access deny kids wav
http_access deny kids mpg
http_access deny kids mpeg
http_access deny kids swf
http_access deny kids flt
http_access deny kids porn !noporn
http_reply_access deny kids flash
http_access allow hero
http_access allow kids
http_access deny all
В добавок почемуто узер 192,168,10,240 не получает диалог ввода пароля, можно свободно работать. Че за фигня незнаю.
Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

 Оглавление

Сообщения по теме [Сортировка по времени, UBB]


1. "Squid2.6s5+ncsa_auth"  
Сообщение от NoNTower (ok) on 05-Июл-07, 16:32 
2007/07/05 16:08:18| aclMatchAcl: checking 'acl auth proxy_auth REQUIRED'
2007/07/05 16:08:18| authenticateAuthenticate: header Basic bm9udG93ZXI6cXdlcnR5.
2007/07/05 16:08:18| authenticateAuthenticate: This is a new checklist test on FD:20
2007/07/05 16:08:18| authenticateAuthenticate: no connection authentication type
2007/07/05 16:08:18| authenticateAuthUserRequestLock auth_user request '0x55555704d290'.
2007/07/05 16:08:18| authenticateAuthUserRequestLock auth_user request '0x55555704d290' now at '1'.
2007/07/05 16:08:18| authenticateDecodeAuth: header = 'Basic bm9udG93ZXI6cXdlcnR5'
2007/07/05 16:08:18| authenticateBasicDecodeAuth: cleartext = 'nontower:qwerty'
2007/07/05 16:08:18| authBasicAuthUserFindUsername: Looking for user 'nontower'
2007/07/05 16:08:18| authBasicDecodeAuth: Found user 'nontower' in the user cache as '0x55555704d2e0'
2007/07/05 16:08:18| authBasicDecodeAuth: last attempt to authenticate this user failed, resetting auth state to unchecked

16:17:54 2007/07/05 16:08:18| authenticateAuthUserLock auth_user '0x55555704d2e0'.
2007/07/05 16:08:18| authenticateAuthUserLock auth_user '0x55555704d2e0' now at '2'.
2007/07/05 16:08:18| authenticateValidateUser: Validating Auth_user request '0x55555704d290'.
2007/07/05 16:08:18| authenticateValidateUser: Validated Auth_user request '0x55555704d290'.
2007/07/05 16:08:18| authenticateValidateUser: Validating Auth_user request '0x55555704d290'.
2007/07/05 16:08:18| authenticateValidateUser: Validated Auth_user request '0x55555704d290'.
2007/07/05 16:08:18| User not authenticated or credentials need rechecking.
2007/07/05 16:08:18| authenticateValidateUser: Validating Auth_user request '0x55555704d290'.
2007/07/05 16:08:18| authenticateValidateUser: Validated Auth_user request '0x55555704d290'.
2007/07/05 16:08:18| User not authenticated or credentials need rechecking.
2007/07/05 16:08:18| aclMatchAcl: returning 0 sending credentials to helper.
2007/07/05 16:08:18| aclMatchAclList: no match, returning 0
2007/07/05 16:08:18| aclCheck: checking password via authenticator
2007/07/05 16:08:18| authenticateValidateUser: Validating Auth_user request '0x55555704d290'.
2007/07/05 16:08:18| authenticateValidateUser: Validated Auth_user request '0x55555704d290'.
2007/07/05 16:08:18| authenticateStart: auth_user_request '0x55555704d290'
2007/07/05 16:08:18| authenticateStart: 'nontower:qwerty'
2007/07/05 16:08:18| cbdataLock: 0x555556efbd60
2007/07/05 16:08:18| authenticateAuthUserRequestLock auth_user request '0x55555704d290'.
2007/07/05 16:08:18| authenticateAuthUserRequestLock auth_user request '0x55555704d290' now at '2'.
2007/07/05 16:08:18| cbdataLock: 0x55555704d480
2007/07/05 16:08:18| cbdataValid: 0x55555704d480
2007/07/05 16:08:18| comm_write: FD 9: sz 18: hndl 0x5555555b2c70: data 0x555555abcc10.
2007/07/05 16:08:18| cbdataLock: 0x555555abcc10
2007/07/05 16:08:18| commSetSelect: FD 9 type 2
2007/07/05 16:08:18| commSetEvents(fd=9)
2007/07/05 16:08:18| helperDispatch: Request sent to basicauthenticator #1, 16 bytes
2007/07/05 16:08:18| helperSubmit: nontower qwerty

16:18:05 2007/07/05 16:08:18| cbdataValid: 0x555557096620
2007/07/05 16:08:18| cbdataValid: 0x555557096620
2007/07/05 16:08:18| cbdataUnlock: 0x555557096620
2007/07/05 16:08:18| commSetSelect: FD 20 type 1
2007/07/05 16:08:18| commSetEvents(fd=20)
2007/07/05 16:08:18| comm_select: timeout 188
2007/07/05 16:08:18| comm_call_handlers(): got fd=9 read_event=0 write_event=4 F->read_handler=0x5555555b3c60 F->write_handler=0x5555555974c0
2007/07/05 16:08:18| commHandleWrite: FD 9: off 0, sz 18.
2007/07/05 16:08:18| commHandleWrite: write() returns 18
2007/07/05 16:08:18| cbdataValid: 0x555555abcc10
2007/07/05 16:08:18| cbdataUnlock: 0x555555abcc10
2007/07/05 16:08:18| commSetEvents(fd=9)
2007/07/05 16:08:18| comm_select: timeout 188
2007/07/05 16:08:18| comm_call_handlers(): got fd=9 read_event=1 write_event=0 F->read_handler=0x5555555b3c60 F->write_handler=(nil)
2007/07/05 16:08:18| comm_call_handlers(): Calling read handler on fd=9
2007/07/05 16:08:18| cbdataValid: 0x555555abcc10
2007/07/05 16:08:18| helperHandleRead: 16 bytes from basicauthenticator #1.
2007/07/05 16:08:18| commSetSelect: FD 9 type 1
2007/07/05 16:08:18| commSetEvents(fd=9)
2007/07/05 16:08:18| helperHandleRead: 'ERR No such user'
2007/07/05 16:08:18| comm_select: timeout 187
2007/07/05 16:08:18| comm_call_handlers(): got fd=9 read_event=1 write_event=0 F->read_handler=0x5555555b3c60 F->write_handler=(nil)
2007/07/05 16:08:18| comm_call_handlers(): Calling read handler on fd=9
2007/07/05 16:08:18| cbdataValid: 0x555555abcc10
2007/07/05 16:08:18| helperHandleRead: 1 bytes from basicauthenticator #1.
2007/07/05 16:08:18| commSetSelect: FD 9 type 1
2007/07/05 16:08:18| commSetEvents(fd=9)
2007/07/05 16:08:18| helperHandleRead: 'ERR No such user

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

2. "Squid2.6s5+ncsa_auth"  
Сообщение от Pashke on 06-Июл-07, 09:12 
попробуй перепиши

>http_access allow auth
>http_access deny kids mp3
>http_access deny kids avi
>http_access deny kids wav
>http_access deny kids mpg
>http_access deny kids mpeg
>http_access deny kids swf
>http_access deny kids flt
>http_access deny kids porn !noporn
>http_reply_access deny kids flash
>http_access allow hero
>http_access allow kids
>http_access deny all

на

http_access deny kids mp3
http_access deny kids avi
http_access deny kids wav
http_access deny kids mpg
http_access deny kids mpeg
http_access deny kids swf
http_access deny kids flt
http_access deny kids porn !noporn
http_reply_access deny kids flash
http_access allow auth hero
http_access allow auth kids
http_access deny all


Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

Архив | Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Оцените тред (1=ужас, 5=супер)? [ 1 | 2 | 3 | 4 | 5 ] [Рекомендовать для помещения в FAQ]




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру