Re: Authentication by the mail attribute

2021-04-07 Thread Quanah Gibson-Mount




--On Thursday, April 8, 2021 12:33 AM +0200 Dieter Klünter 
 wrote:



Am Wed, 7 Apr 2021 10:56:09 +
schrieb Клеусов Владимир Сергеевич
:


Hi
Please tell me how (if possible) to authenticate in OpenLDAP not by
cn but by the mail attribute ?


Try this one:

authz-regexp "uid=(.*),cn=.*,cn=auth"
 "ldap:///cn=example,cn=com??sub?mail=$1;


That assumes something other than simple authentication.  They never 
specified how they are authenticating.


--Quanah



--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:



Re: Authentication by the mail attribute

2021-04-07 Thread Dieter Klünter
Am Wed, 7 Apr 2021 10:56:09 +
schrieb Клеусов Владимир Сергеевич :

> Hi
> Please tell me how (if possible) to authenticate in OpenLDAP not by
> cn but by the mail attribute ?

Try this one:

authz-regexp "uid=(.*),cn=.*,cn=auth"
 "ldap:///cn=example,cn=com??sub?mail=$1;


-Dieter

-- 
Dieter Klünter | Systemberatung
http://sys4.de
GPG Key ID: E9ED159B
53°37'09,95"N
10°08'02,42"E


Re: Authentication by the mail attribute

2021-04-07 Thread Quanah Gibson-Mount




--On Wednesday, April 7, 2021 11:56 AM + Клеусов 
Владимир Сергеевич  wrote:



Hi
Please tell me how (if possible) to authenticate in OpenLDAP not by cn
but by the mail attribute ?


LDAP does not authenticate by the cn or mail attributes.

Regards,
Quanah

--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:



Authentication by the mail attribute

2021-04-07 Thread Клеусов Владимир Сергеевич
Hi
Please tell me how (if possible) to authenticate in OpenLDAP not by cn but by 
the mail attribute ?