# Squid (proxy) gurus? Authorization problem.

**URL:** <https://boards.straightdope.com/t/squid-proxy-gurus-authorization-problem/699129>\
**Category:** Factual Questions\
**Created:** [September 22, 2014, 1:57am UTC](https://boards.straightdope.com/t/squid-proxy-gurus-authorization-problem/699129 "2014-09-22T01:57:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doug\_K](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Doug\_K](https://boards.straightdope.com/u/Doug_K)\
**Post date:** [September 22, 2014, 1:57am UTC](https://boards.straightdope.com/t/squid-proxy-gurus-authorization-problem/699129/1 "2014-09-22T01:57:02Z")

</div>

At my school district we have student iPads configured to go through a Squid proxy. They need to be able to access it from off campus, so it’s necessary for us to require authorization.

The problem we’re having is that, even though we have the username and password configured in their network settings, after an unpredictable amount of time they get popups asking to reauthenticate. Even if they type in the correct password it just pops up again, giving the impression that the password was incorrect. The only way they can continue working is to tap “Cancel”, but it sometimes takes several “Cancels” before they’re allowed to continue. And then they may get another round of authorization requests within a few minutes.

There is one thing that seems to be predictable, and may even be a clue. If they try to access a secure (https) site that is blocked by our web filter Squid will always ask to reauthenticate over and over until cancel is selected, and then the browser will show Squid’s “not authorized” page instead of the filter’s block page.

We’re using digest\_file\_auth for authorization, but I’ve tried using basic\_ldap\_auth against our OSX Lion server on a sandbox server with similar symptoms.

Does anyone have any idea how I can figure out how to fix this?

---

<div class="post-metadata">

**Author:** ![arseNal](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@arseNal](https://boards.straightdope.com/u/arseNal)\
**Post date:** [September 22, 2014, 1:10pm UTC](https://boards.straightdope.com/t/squid-proxy-gurus-authorization-problem/699129/2 "2014-09-22T13:10:48Z")

</div>

Does this happen with all browsers, or just say, Safari? Or other non-mac platforms, for that matter?

Because I’m no squid expert but I wonder if it’s not similar to this problem: [http://stackoverflow.com/questions/19575183/system-proxy-not-working-on-os-x-mavericks](http://stackoverflow.com/questions/19575183/system-proxy-not-working-on-os-x-mavericks) and [Gray Suit: Mavericks OSX 10.9, HTTPS proxy, infinite loop of authentication boxes](http://gray-suit.blogspot.hk/2013/11/mavericks-osx-109-https-proxy-infinite.html)

However, those are talking about a problem in OSX 10.9, so not sure if the ipad could suffer from the same issue.

---

<div class="post-metadata">

**Author:** ![Doug\_K](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Doug\_K](https://boards.straightdope.com/u/Doug_K)\
**Post date:** [September 22, 2014, 1:35pm UTC](https://boards.straightdope.com/t/squid-proxy-gurus-authorization-problem/699129/3 "2014-09-22T13:35:32Z")

</div>

It’s not used for anything but iPads. The server is running on OSX Server 10.6 (Snow Leopard). And the auth requests have popped up when using any app that accesses the network, not just browsers.

---

<div class="post-metadata">

**Author:** ![arseNal](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@arseNal](https://boards.straightdope.com/u/arseNal)\
**Post date:** [September 22, 2014, 3:50pm UTC](https://boards.straightdope.com/t/squid-proxy-gurus-authorization-problem/699129/4 "2014-09-22T15:50:29Z")

</div>

Is there a way to try it on some non-mac platform?

Does the problem in the links seem similar to your issue?

---

<div class="post-metadata">

**Author:** ![Doug\_K](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Doug\_K](https://boards.straightdope.com/u/Doug_K)\
**Post date:** [September 22, 2014, 4:04pm UTC](https://boards.straightdope.com/t/squid-proxy-gurus-authorization-problem/699129/5 "2014-09-22T16:04:03Z")

</div>

> [@arseNal](#):
>
> Is there a way to try it on some non-mac platform?

No, because the proxy is exclusively for iPads. It doesn’t matter if it works for Macs, PCs or Linux boxes.

> [@](#):
>
> Does the problem in the links seem similar to your issue?

Only as far as repeated requests for authorization. Users are able access the internet after tapping “cancel”, although sometimes it asks 2 or three times again. It seems like it’s asking for authorization even though the device is already authorized. In fact, if you type in a different valid user and password, then click cancel when it asks again, the squid log will show the original user was allowed access.

---

<div class="post-metadata">

**Author:** ![arseNal](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@arseNal](https://boards.straightdope.com/u/arseNal)\
**Post date:** [September 22, 2014, 4:07pm UTC](https://boards.straightdope.com/t/squid-proxy-gurus-authorization-problem/699129/6 "2014-09-22T16:07:50Z")

</div>

> [@Doug\_K](#):
>
> No, because the proxy is exclusively for iPads. It doesn’t matter if it works for Macs, PCs or Linux boxes.

But if the problem was only on the ipads, and other platforms worked fine, that would be useful information for troubleshooting, wouldn’t it?

---

<div class="post-metadata">

**Author:** ![Doug\_K](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Doug\_K](https://boards.straightdope.com/u/Doug_K)\
**Post date:** [September 23, 2014, 2:51am UTC](https://boards.straightdope.com/t/squid-proxy-gurus-authorization-problem/699129/7 "2014-09-23T02:51:53Z")

</div>

I dug out an older laptop running Snow Leopard and configured it to use the proxy with similar results. Occasionally asking to reauthenticate and always asking to reauthenticate if trying to access a filtered secure site. And again typing in a correct name/password just results in another auth request, clicking cancel one or more times allows you to access the network - at least for a while.

---

<div class="post-metadata">

**Author:** ![arseNal](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@arseNal](https://boards.straightdope.com/u/arseNal)\
**Post date:** [September 23, 2014, 2:22pm UTC](https://boards.straightdope.com/t/squid-proxy-gurus-authorization-problem/699129/8 "2014-09-23T14:22:55Z")

</div>

Ok, well next I would monitor the squid logs, it may say why it’s requiring authorization or rejecting it when the credentials are actually correct (that happens, right?) Might need to turn the logging level up.

---

<div class="post-metadata">

**Author:** ![Doug\_K](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Doug\_K](https://boards.straightdope.com/u/Doug_K)\
**Post date:** [September 23, 2014, 7:05pm UTC](https://boards.straightdope.com/t/squid-proxy-gurus-authorization-problem/699129/9 "2014-09-23T19:05:05Z")

</div>

So a little more digging uncovered this:

[https://discussions.apple.com/thread/3457661?start=0&tstart=0](https://discussions.apple.com/thread/3457661?start=0&tstart=0)

Which started in November 2011 and most recent post in July 2014

TLDR version: iPads don’t store HTTPS proxy passwords, only HTTP, and Apple doesn’t seem to be in any hurry to fix the bug, despite numerous complaints.

I just discovered today that if I open the IOS Chrome browser, it will ask for authentication again. Just to combine bodily functions with a jovial facial expression, I entered a different valid name and password. When I checked the Squid logs, I saw that all Safari activity was logged under the first username and Chrome activity was logged under the second. So apparently Chrome ignores the authentication part of the network settings.
