Adding a sample file to do LDAP authetication #24
Adding a sample file to do LDAP authetication #24daviddpd wants to merge 5 commits intomanuelkasper:masterfrom
Conversation
the user to the LDAP server.
issue a token verifcation fail on badip, but just log it. Going to be required for clients and login servers that get dual stacked IPv4/IPv6, but app servers that still might be v4 only. Also, issues with NAT/VPN, when using accross a mixed network and split DNS setups.
php-login/ldap.php
Outdated
| ldap_set_option($ldap,LDAP_OPT_PROTOCOL_VERSION,3); | ||
| ldap_set_option($ldap,LDAP_OPT_REFERRALS,0); | ||
|
|
||
| $success = FALSE; |
There was a problem hiding this comment.
This line seems to be redundant.
|
Thanks for the LDAP sample! The login server can simply omit the "cip" key to skip the IP check (see description of "cip" key on https://neon1.net/mod_auth_pubtkt/install.html). Do you have a scenario where a TKTAuthDisableCheckIP option is still needed despite this? |
Sorry for a two year delay ... last job was busy, and picking this back up as a hobby. TKTAuthDisableCheckIP is needed int multiple cases.
With TKTAuthDisableCheckIP, really need some sort of browser unique ID, something that can't be spoofed. But I don't think something like this exists. Or some side-band relay. Sort of like a VPN, but proxying a cookie or NONCE or something, but unclear how exactly how. (Header injection with a local SOCK proxy?). I'm totally open to implementing one of these, but seems to be counter the idea and my attraction to this module as being extremely simple. |
Just a simple example for doing LDAP authentication via BINDing as the user to LDAP server.