nginx-ldap-auth | simple example of LDAP authentication | Identity Management library
kandi X-RAY | nginx-ldap-auth Summary
kandi X-RAY | nginx-ldap-auth Summary
A simple example of LDAP authentication using ngx_http_auth_request_module by golang.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get the login page .
- ParseConfig parses a configuration file .
- timeCheck returns true if the time range is valid
- IspCheck checks if a given IP is in this ip
- Start starts the server .
- Main entry point
- checks if ip is in the range
- TimeCheck takes a list of time ranges and returns true if they are valid
- Lists auth credentials .
- ipCheckMask returns true if ip is a valid IP address
nginx-ldap-auth Key Features
nginx-ldap-auth Examples and Code Snippets
Community Discussions
Trending Discussions on nginx-ldap-auth
QUESTION
I found a nginx module (https://github.com/nginxinc/nginx-ldap-auth) that permits to authenticate an user using ldap.
I want to adapt it with a custom authentication page, that doesn't exist on the backend server. I do not understand all the interactions: Should I create a cookie within the login page? How to pass the credentials to the ldap daemon? Maybe what I want to do is impossible? It's been few days I try to do it, now i'm nearly desperate...
All the time I have these messages on the ldap daemon:
using username/password from authorization header
"GET /auth-proxy HTTP/1.0" 401 -
Below, the sites-enabled/mywebsite:
...ANSWER
Answered 2019-Feb-22 at 14:04I found out how to pass my login/password to NginX: however, not using the authorization header, but a cookie.
Here is my new nginx virtual host:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nginx-ldap-auth
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page