Commit Graph

135 Commits (9df5c39bca6fb397449525b0f1eb0d24d993439f)

Author SHA1 Message Date
Unknwon 2bf8494332 finish user and repository search
Both are possible on explore and admin panel
Unknwon 514382e2eb Rename module: middleware -> context
Unknwon 045f14fbd0 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.
Unknwon f946040fa9 attempt to fix expected invalid CSRF token
- Remove unused config settings `[picture] service`
Unknwon 8055a0bdac Post work for
Improve test cases, config settings, also show SSH config settings on admin config panel.
Unknwon baaf6046a1 Minor fix for
Josh Frye c27038e392 Test mailer button. Addresses
Unknwon d8a994ef24 Move cron module to independent package
Make it easier to keep track of upstream changes and bug fixes
Adam Strzelecki 834d92a47b LDAP: Fetch attributes in Bind DN context option
This is feature is workaround for  (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.
Unknwon 04be8c0de5 reinitialize all repos from the db
- Update locales
Unknwon 3d5d61778a disable password change for non-local users
Unknwon 2a0bb1fa90 Limit repo creation
Unknwon 89244b74c6 remember page number when delete repo
Unknwon ca8ce793d1 Ability to delete repo from admin panel
Unknwon 978dc00305 APIs: admin users
Unknwon f41360d864 advanced select ops for system notices
Unknwon 0be8b1b1a1 Ability to batch delete system notices
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.
Unknwon efea642d6c add admin op: delete missing repos
Unknwon 10427b2178 fix
Unknwon 6f0a41b8b2 Allow local import only for admin users
Unknwon 932dbccb67 fix import path, fix
Unknwon 21e13cb51e Triggere mailer for admin created accounts
Unknwon 986447335d minor fix
无闻 84c727ae66 Merge pull request from sapk/fix-admin-repo-new-ui
Fix admin repos new ui
无闻 ee1256cf74 Merge pull request from sapk/fix-admin-organization-new-ui
Fix admin organization new ui
Antoine GIRARD dfc16d0879 Fix admin repos new ui
Antoine GIRARD a8fd615adc Fix indent in notice router
Antoine GIRARD c98dad1cf3 New admin organization UI
Unknwon 0d5e57e4ae minor fixes and update locale
Antoine GIRARD 3544dafb64 Fix indent
Antoine GIRARD 14a1101139 New admin notice UI based on user list example
Unknwon 3fb1b6a608 drop oauth2 feature support
Unknwon f5c7f22cc8 able to skip verify for LDAP
Unknwon 2d1bb0cf49 admin delete user
Unknwon b0bf4cc1cb fix and
Unknwon 83e747bfda and and new admin edit user UI
Unknwon e5ed5904c6 GUI bug while adding ldap user
Unknwon 8e0a69f86a disable captcha and new admin create user UI
Unknwon cd37fccdfb remove auto_register and makes it default
Unknwon 10de16beb0 typo and README
Unknwon be89802bd8 new admin user list UI
Unknwon 362d64df04 add allowed domains for SMTP auth
Unknwon 121a81a2c5 finish new edit auth UI
Unknwon 0617448282 finish new add auth UI
Unknwon fa728d8dff more minor fix on 1581
Sergio Benitez 2d1db4bf05 Added LDAP simple auth support.
Unknwon ea454c21f7 A way to skip TLS verify for SMTP authentication
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.
Unknwon b1696665bd make cron task configurable