Welcome! Log In Create A New Profile

Advanced

Re: Nginx + ldap auth

Francis Daly
August 13, 2019 05:52PM
On Mon, Aug 12, 2019 at 04:44:46AM -0400, Danila wrote:

Hi there,

> Hello i have nginx 1.16.0 and some modules: nginx-auth-ldap,
> nginx-dav-ext-module, headers-more-nginx-module, nginx-upload-module.

> ldap_server mydomain{
> url
> "ldap://mydomain:3268/DC=mydimain,DC=local?sAMAccountName?sub?(objectClass=person)";
> binddn 'admin@mydomain.local';
> binddn_passwd 'adm_pass';
> require valid_user;
> }

You report that that one works. Note that it does have a binddn and
a binddn_passwd.

> ldap_server mydomain2{
> url
> "ldap://mydomain:3268/DC=mydimain,DC=local?sAMAccountName?sub?(objectClass=person)";
> require user "CN=test,DC=MYDOMAIN,DC=LOCAL";
> group_attribute uniquemember;
> group_attribute_is_dn on;
> referral on;
> }

You report that that one fails on the initial bind. It has no binddn
and no binddn_passwd.

If you copy the matching lines from the other block to here, does that
make a difference?

(Or: if you remove the bind* lines from the first block, does that one
stay working?)


Note that nginx-auth-ldap is not in stock-nginx; possibly the
documentation for whatever module you are using will have more
information.

Good luck with it,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx + ldap auth

Danila August 12, 2019 04:44AM

Re: Nginx + ldap auth

Francis Daly August 13, 2019 05:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 109
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready