Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-28 04:36:11 +01:00
forgejo/modules/auth
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
..
ldap Correction LDAP validation (#342) 2016-12-12 08:46:51 +08:00
pam golint fixed for modules/auth 2016-11-27 21:39:06 +08:00
admin.go golint fixed for modules/auth 2016-11-27 21:39:06 +08:00
auth.go GitHub API Compliance (& linting) 2016-12-02 09:18:15 +01:00
auth_form.go golint fixed for modules/auth 2016-11-27 21:39:06 +08:00
org.go golint fixed for modules/auth 2016-11-27 21:39:06 +08:00
repo_form.go golint fixed for modules/auth 2016-11-27 21:39:06 +08:00
user_form.go golint fixed for modules/auth 2016-11-27 21:39:06 +08:00