Sandro Santilli
4247304f5a
Update import paths from github.com/go-gitea to code.gitea.io (#135)
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis
See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
7 роки тому
Sandro Santilli
864d1b1f9f
Fix type in unused constant name (#111)
* Write LDAP, SMTP, PAM, DLDAP back to all uppercase
* Fix type in unused constant name
* Other MixCased fixes
* Complete MixerCasing of template constants
* Re uppercase LTS and LDAPS suffixes
* Uppercase JSON suffix in constant names
* Proper case LoginNoType
* Prefix unexported template path constants with "tpl"
7 роки тому
Sandro Santilli
05fd9d3f09
Security protocols
7 роки тому
Sandro Santilli
7612b5ec40
More mixage
7 роки тому
Sandro Santilli
60c82a8780
More...
7 роки тому
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs (#37)
7 роки тому
Unknwon
7c1fbed057
Fix panic when attempt login with non-exist user
7 роки тому
Unknwon
152e715999
models/login_source: code improvement
7 роки тому
Unknwon
99c2ae7b35
#3515 use alert instead 500 for duplicated login source name
7 роки тому
Unknwon
1f2e173a74
Refactor User.Id to User.ID
8 роки тому
Unknwon
250be011c7
Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
8 роки тому
Unknwon
57af7432fc
#3295 fix wrong logic judgement
8 роки тому
Unknwon
a752f09055
#2709 validate username attribute fetched from LDAP
8 роки тому
Unknwon
401bf944ef
Use SecurityProtocol to replace UseSSL in LDAP config
Initially proposed by #2376 and fixes #3068 as well.
8 роки тому
Unknwon
ad513a20e9
#2302 Replace time.Time with Unix Timestamp (int64)
8 роки тому
Unknwon
acf094fb07
Minor fix for #2634
Add AttributesInBind option in new auth source form.
8 роки тому
Unknwon
c199703e2a
#2349 fix convert type
8 роки тому
Unknwon
91bab801aa
#2349 try to handle []int8 case
8 роки тому
Unknwon
76bdbcc969
#2152 fix SMTP authentication makes invalid assumption on protocol
8 роки тому
Unknwon
3d5d61778a
#1938 #1374 disable password change for non-local users
8 роки тому
Unknwon
978dc00305
APIs: admin users
8 роки тому
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.
8 роки тому
Unknwon
ec8d41765d
some fix to #2026
8 роки тому
Unknwon
eea2e05da6
minor fix on #1694
8 роки тому
Unknwon
f5c7f22cc8
#1637 able to skip verify for LDAP
8 роки тому
Unknwon
d600530c20
#1635 PAM return error bug
8 роки тому
Unknwon
8e0a69f86a
#697 disable captcha and new admin create user UI
8 роки тому
Unknwon
cd37fccdfb
#1625 remove auto_register and makes it default
8 роки тому
Unknwon
6969c20afd
#1625 LDAP not working
8 роки тому
Unknwon
247017d9ff
clean log
8 роки тому
Unknwon
362d64df04
#1620 add allowed domains for SMTP auth
8 роки тому
Unknwon
121a81a2c5
finish new edit auth UI
8 роки тому
Unknwon
0617448282
finish new add auth UI
8 роки тому
Unknwon
fa728d8dff
more minor fix on 1581
8 роки тому
Unknwon
26ac016b9f
minor fix on #1581
8 роки тому
Sergio Benitez
2d1db4bf05
Added LDAP simple auth support.
8 роки тому
Unknwon
ea454c21f7
#1542 A way to skip TLS verify for SMTP authentication
8 роки тому
Girish Ramakrishnan
24d7a86a8d
Set IsAdmin using LDAP
The IsAdmin flag is set based on whether the admin filter
returned any result. The admin filter is applied with the user dn
as the search root.
In the future, we should update IsAdmin as well on each login.
Alternately, we can have a periodic sync operation.
8 роки тому
Sergio Benitez
7d84d4a8f0
Significantly enhanced LDAP support in Gogs.
8 роки тому
Unknwon
e50982f5ec
allow anonymous SSH clone
9 роки тому
Paolo Borelli
182003aa41
Add PAM authentication
9 роки тому
Dustin Willis Webber
f78046fc3b
typo fix
9 роки тому
Unknwon
484175f702
#1124 lower_name of LDAP user not assigned
9 роки тому
Unknwon
4aafeace23
fix HTTP/HTTPS push update func call panic #1037 and `http: multiple response.WriteHeader calls`
9 роки тому
Unknwon
18c0697329
routers/repo/setting.go: fix LDAP cannot validate password #1006
9 роки тому
Lauris BH
00653e52ee
Get username, name, surname and e-mail from LDAP server
9 роки тому
Joseph Crail
39c068400e
Fix spelling errors in comments.
9 роки тому
Unknwon
0b785ad967
work on #672
9 роки тому
Unknwon
f1d8746264
Fix fork repo and macaron API broken
9 роки тому
Unknwon
405ee14711
Fix SMTP auth logic
9 роки тому