1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-11 10:14:27 +00:00
Adam Strzelecki 573305f3d3 LDAP: Optional user name attribute specification
Consider following LDAP search query example:

    (&(objectClass=Person)(|(uid=%s)(mail=%s)))

Right now on first login attempt Gogs will use the text supplied on login form
as the newly created user name. In example query above the text matches against
both e-mail or user name. So if user puts the e-mail then the new Gogs user
name will be e-mail which may be undesired.

Using optional user name attribute setting we can explicitly say we want Gogs
user name to be certain LDAP attribute eg. `uid`, so even user will use e-mail
to login 1st time, the new account will receive correct user name.
2015-12-02 00:20:14 +01:00
..
2015-09-16 23:08:46 -04:00
2015-11-19 11:40:00 -05:00
2015-11-15 17:07:44 -05:00
2015-11-27 01:50:38 -05:00
2015-11-20 01:18:50 -05:00
2015-11-21 14:02:37 -05:00
2014-04-13 03:14:43 -04:00
2015-09-12 15:31:36 -04:00
2015-11-07 00:39:45 -05:00
2015-09-25 19:54:52 +02:00
2015-11-18 21:21:47 -05:00
2015-11-27 01:50:38 -05:00
2015-11-27 00:24:24 -05:00
2015-11-30 20:50:40 -05:00
2015-09-10 11:40:34 -04:00
2015-11-13 17:10:25 -05:00
2015-11-30 20:45:55 -05:00
2015-08-29 11:49:59 +08:00
2015-11-18 21:21:47 -05:00
2015-12-01 16:33:45 -05:00