haixunlu
68a6579852
login_source: add default authentication switch ( #5338 )
...
* Add default Authentication Switch.
* adjust the code accroding to reviews
* #1 . Remove redudant logic.
#2 , Fix a bug in "Edit" panel.
* Remove unused logic
* Fix local authentication files are not flushed.
* refactor according to review.
6 years ago
Unknwon
aff4208244
*: rename "gogits" to "gogs"
7 years ago
Unknwon
f2ecfdc96a
auth: support authentication source config file ( #3142 )
7 years ago
Unknwon
4400d2fdd9
Refactoring: rename package routers -> routes
8 years ago
Unknwon
2478b87432
Refactoring: rename ctx -> c
8 years ago
Unknwon
a1d411a018
ldap: minor fix for PR #4398
8 years ago
aboron
dbb7e5464b
ldap: add check for group membership ( #4398 )
...
* Add standard LDAP group membership checking.
* Fix formatting, typo, grammer, and syntax errors
* Debugging done.
Gave up on locale file edits.
8 years ago
Unknwon
90b9f7e08c
pkg/setting: rename {AppUrl, AppSubUrl} -> {AppURL, AppSubURL}
8 years ago
Unknwon
edaf14f2b6
Refactoring: remove tool.TplName
8 years ago
Unknwon
6fbb984ebf
Refactoring: rename pkg/base -> pkg/tool
8 years ago
Unknwon
d05395fe90
Refactoring: rename modules -> pkg
...
Reasons to change:
1. Shorter than 'modules'
2. More generally used by other Go projects
3. Corresponds to the naming of '$GOPATH/pkg' directory
8 years ago
Unknwon
4f9c5981a9
refactoring: modules/auth/*_form.go -> modules/form
8 years ago
Unknwon
eb66060cd7
log: start using gopkg.in/clog.v1
8 years ago
Alexander Lunegov
7358e46815
Fix string format verbs ( #3637 )
8 years ago
Unknwon
152e715999
models/login_source: code improvement
8 years ago
Unknwon
99c2ae7b35
#3515 use alert instead 500 for duplicated login source name
8 years ago
Unknwon
401bf944ef
Use SecurityProtocol to replace UseSSL in LDAP config
...
Initially proposed by #2376 and fixes #3068 as well.
9 years ago
Unknwon
514382e2eb
Rename module: middleware -> context
9 years ago
Unknwon
045f14fbd0
#1146 finsih UI work for access mode of collaborators
...
Collaborators have write access as default, and can be changed via repository
collaboration settings page to change between read, write and admin.
9 years ago
Adam Strzelecki
834d92a47b
LDAP: Fetch attributes in Bind DN context option
...
This is feature is workaround for #2628 (JumpCloud) and some other services
that allow LDAP search only under BindDN user account, but not allow any LDAP
search query in logged user DN context.
Such approach is an alternative to minimal permissions security pattern for
BindDN user.
9 years ago
Unknwon
3d5d61778a
#1938 #1374 disable password change for non-local users
9 years ago
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.
9 years ago
Unknwon
f5c7f22cc8
#1637 able to skip verify for LDAP
9 years ago
Unknwon
8e0a69f86a
#697 disable captcha and new admin create user UI
9 years ago
Unknwon
cd37fccdfb
#1625 remove auto_register and makes it default
9 years ago
Unknwon
362d64df04
#1620 add allowed domains for SMTP auth
9 years ago
Unknwon
121a81a2c5
finish new edit auth UI
9 years ago
Unknwon
0617448282
finish new add auth UI
9 years ago
Unknwon
fa728d8dff
more minor fix on 1581
9 years ago
Sergio Benitez
2d1db4bf05
Added LDAP simple auth support.
9 years ago
Unknwon
ea454c21f7
#1542 A way to skip TLS verify for SMTP authentication
9 years ago
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.
9 years ago
Sergio Benitez
7d84d4a8f0
Significantly enhanced LDAP support in Gogs.
10 years ago
Paolo Borelli
182003aa41
Add PAM authentication
10 years ago
Unknwon
211596f407
#1124 LDAP add and edit form are misleading
10 years ago
Lauris BH
00653e52ee
Get username, name, surname and e-mail from LDAP server
10 years ago
Unknwon
7ba9257a7f
Add suburl support
10 years ago
Martin van Beurden
0055cbd365
Allow Gogs to run from a suburl behind a reverse proxy. e.g. http://mydomain.com/gogs/
...
Conflicts:
modules/setting/setting.go
Conflicts:
templates/repo/release/list.tmpl
templates/user/dashboard/dashboard.tmpl
Conflicts:
routers/repo/setting.go
10 years ago
Unknwon
d2aff9a46a
Continue working on new admin pages
10 years ago
Unknwon
8dd07c0ddd
New UI merge in progress
11 years ago
Unknown
9924e65ca1
In progress of name template name constant
11 years ago
Unknown
f160b4f33c
Add tar.gz download button and other mirror updates
11 years ago
Unknown
4744996f9a
Make gmail auth work
11 years ago
Lunny Xiao
f4486f3eec
bug fixed #193
11 years ago
Sebastian Jackel
eb264a112b
Add LDAP over SSL support
11 years ago
Unknown
f1130ce5e9
Fix edit auth page bug
11 years ago
Unknown
2c73ced0db
Fix #173
11 years ago
Lunny Xiao
f68e279150
spell bug fixed
11 years ago
Unknown
c5dbc24ca4
UI fix
11 years ago
Lunny Xiao
bf58679390
add support for smtp authentication
11 years ago