1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-11 02:04:27 +00:00
Denis Denisov f0a989c1d0 Correction LDAP validation (#342)
* Correction LDAP username validation

As https://msdn.microsoft.com/en-us/library/aa366101(v=vs.85).aspx describe spaces should not be in start or at the end of username but they can be inside the username. So please check my solution for it.

* Check for zero length passwords in LDAP module.

According to https://tools.ietf.org/search/rfc4513#section-5.1.2 LDAP client should always check before bind whether a password is an empty value. There are at least one LDAP implementation which does not return error if you try to bind with DN set and empty password - AD.

* Clearing the login/email spaces at the [start/end]
2016-12-12 08:46:51 +08:00
..
2016-11-26 01:07:57 +01:00
2016-11-24 23:42:07 +01:00
2016-12-02 12:10:39 +01:00
2016-11-07 17:24:59 +01:00
2016-12-02 09:31:44 +01:00
2016-11-25 16:11:12 +08:00
2016-12-07 12:55:24 +01:00
2014-04-13 03:14:43 -04:00
2016-08-12 02:56:50 -07:00
2016-12-02 07:41:19 +01:00
2016-11-28 09:30:08 +08:00
2016-12-09 20:13:48 +01:00
2016-11-25 16:11:12 +08:00
2016-11-26 11:20:37 +01:00
2016-12-02 07:41:19 +01:00
2016-11-26 11:23:55 +01:00
2016-11-25 16:02:10 +08:00
2016-12-02 07:41:19 +01:00
2016-11-25 16:03:52 +08:00
2016-11-27 12:59:12 +01:00