AW: Apache2 authentication module with many website and one redis cache

Hi Nicke,you are right, the implementation does not distinguish between different hosts or different directories.I guess the best would be, to distinguish per directory. Kind regardsCornelius

Cornelius Kö 151 2960 1417
NetKnights GmbHhttp://netknights.itLandgraf-Karl-Str. 19, 34131 Kassel, GermanyTel: +49 561 3166797, Fax: +49 561 3166798
Amtsgericht Kassel, HRB 16405Geschäftsführer: Cornelius Kölbel-------- Ursprüngliche Nachricht --------
Von: Nicke
Datum: 12.06.2015 10:03 (GMT+01:00)
Betreff: Apache2 authentication module with many website and one redis cache

HiAm trying out the new apache2 authentication module. I have a case where it does not really work the way I want and need suggestions how to solve it.Am having a webserver with many sites that has basic apache2 authentication with the privacyidea apache2 client attached. Because the same redis server is running on this ubuntu 14.04 host it creates problem.
Privacyidea: aaa.example.comWebsite 1: subdomain1.example.comWebsite 2:
When authenticating against everything works as expected. redis is caching the authentication, “SETEX” “nicke” “300” “1234801509”.As probably expected, problems comes up when I now authenticate with the same username against, my browser is asking for username and password and I supply a new one, redis is setting this new values in cache, “SETEX” “nicke” “300” “1234453288”.I now need to login again against because the password has been changed in the cache. And login again at after that, and so on…
I can use both and at the same time if I use different usernames, but that is not a good way.So any suggestion how to solve this? Some kind of prefixing depending on website in the redis cache?

You received this message because you are subscribed to the Google Groups “privacyidea” group.

To unsubscribe from this group and stop receiving emails from it, send an email to

To post to this group, send email to

To view this discussion on the web visit

For more options, visit