• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Anmeldung an Webserver

mfuhrmann

Newbie
Hallo,

ich habe das Problem, dass ich mich an einer Webseite (http; nicht https) nicht anmelden kann. Normalerweise (also ohne Proxy) kommt ein Anmeldefenster als Popup. (sieht so aus: http://www.google.de/imgres?q=windo...ndsp=26&ved=1t:429,r:18,s:0,i:103&tx=94&ty=68)

Mit dem Proxy kommt gleich diese Meldung vom Webserver zurück:

Code:
Serverfehler
401 - Nicht autorisiert: Zugriff aufgrund ungültiger Anmeldeinformationen verweigert.
Die angegebenen Anmeldeinformationen berechtigen Sie nicht, dieses Verzeichnis oder diese Seite anzuzeigen.

Kann mir jemand einen Wink in die richtige Richtung geben?

Danke schon mal.
 
OP
M

mfuhrmann

Newbie
Guten Morgen,

hier noch ein wenig mehr Info. Zum einen hier meine squid.conf:

Code:
cache_mem 64 MB
maximum_object_size 10000 KB
maximum_object_size_in_memory 128 KB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir aufs /var/spool/squid3 8000 256 256
dns_nameservers 10.4.1.20
cache_peer localhost parent 8899 0 no-query no-digest
url_rewrite_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
url_rewrite_children 20
cache_effective_user proxy
error_directory /usr/share/squid3/errors/de-de
auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 20 startup=0 idle=1
auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
auth_param basic children 5
auth_param basic realm Domain Proxy Server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
authenticate_cache_garbage_interval 10 seconds
authenticate_ttl 300 seconds
external_acl_type nt_group ttl=5 children=5 %LOGIN /usr/lib/squid3/wbinfo_group.pl
acl INTERNET_SQUID external nt_group internet
acl snmplux snmp_community kj3v45hv345j23
acl SERVER src 10.2.1.51
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
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 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
snmp_port 3401
snmp_access allow snmplux localhost
snmp_access deny all
http_access allow SERVER
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow INTERNET_SQUID
http_access deny all
icp_access deny all
htcp_access deny all
http_port 3128
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid3/access.log squid
cache_log /var/log/squid3/cache.log squid
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern (cgi-bin|\?)    0       0%      0
refresh_pattern .               0       20%     4320
icp_port 0

Diese Meldungen bekomme ich in der access.log:

Code:
1335336366.604      0 10.2.1.50 TCP_DENIED/407 2624 GET http://download.luxinternational.com/download - NONE/- text/html
1335336373.499      0 10.2.1.50 TCP_DENIED/407 2945 GET http://download.luxinternational.com/download - NONE/- text/html
1335336373.594     80 10.2.1.50 TCP_MISS/401 1645 GET http://download.luxinternational.com/download testuser FIRST_UP_PARENT/localhost text/html
1335336373.648      0 10.2.1.50 TCP_DENIED/407 2997 GET http://download.luxinternational.com/favicon.ico - NONE/- text/html
1335336373.726     77 10.2.1.50 TCP_MISS/404 1582 GET http://download.luxinternational.com/favicon.ico testuser FIRST_UP_PARENT/localhost text/html

Habe schon einiges zum Thema TCP_DENIED/407, TCP_MISS/401 gefunden, aber nichts hat mich irgendwie weitergebacht.

Habe es auch mal mit unterschiedlichen Browsern getestet. Das einzige was für mich ein Hinweis ist brachte Opera:
"Der Server verlangt eine nicht unterstützte Authentifizierungsmethode.". Klingt ja ganz gut. Über diese Meldung bin ich auf Fiddler aufmerksam geworden. Dieser bringt mir diese Info:

Code:
HTTP/1.1 401 Unauthorized
Content-Type: text/html
Server: Microsoft-IIS/7.5
WWW-Authenticate: NTLM
X-Powered-By: ASP.NET
Date: Wed, 25 Apr 2012 08:01:35 GMT
Content-Length: 1344
Proxy-Support: Session-Based-Authentication

Eine Vermutung war, dass meine NTLM Authentifizierung, die meine ADS User über sich ergehen lassen müssen da mit rein spielt. Aber mein andere Squid, an dem keine Authentifizierung nötig ist, bekomme ich das gleiche Verhalten.


Danke schon mal vorab.
 
Oben