1
1
mirror of https://github.com/go-gitea/gitea synced 2025-02-02 04:54:34 +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-12-12 08:46:51 +08:00
2016-11-25 16:37:04 +08:00
2016-12-02 12:10:39 +01:00
2016-11-25 16:19:24 +08:00
2016-11-25 14:32:09 +08:00
2016-12-02 07:41:19 +01:00
2016-11-25 09:44:04 +08:00
2016-12-02 07:41:19 +01:00
2016-08-30 15:50:30 -07:00
2016-11-24 17:37:11 +08:00