Naib Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/10548223558c42f2887453.jpg)
Joined: 21 May 2004 Posts: 6070 Location: Removed by Neddy
|
Posted: Mon Aug 20, 2018 10:13 pm Post subject: nginx config and simple SSO |
|
|
I have a number of testbed wiki pages at work (dokuwiki) and a problem reporting system (mantisbt) on a machine I administrate that is used as a simulation workhorse...
What I would like to do is make use of the $remote_user variable within nginx.conf to permit accessing an nginx location
Code: | location /cow {
# if ($remote_user not in cow_sso) {
# return 444;
# }
index doku.php;
return 301 http://$host/barn/cow/doku.php;
} |
Take for instance the above test location /cow (which is a dokuwiki animal), if the $remote_user was part of a whitelist they would be able to see the site.
This is part of an intranet so $remote_user has already (to a degree) been validated. NOTE this isn't for security-based access as this is then covered later on via actual accounts.
Essentially this is a stop-gap until a request for an LDAP BIND password is approved while making a service available to a shortlist of people without "yet another username" _________________ #define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0; |
|