]> source.dussan.org Git - gitea.git/commit
Set IsAdmin using LDAP
authorGirish Ramakrishnan <girish@cloudron.io>
Wed, 19 Aug 2015 04:34:03 +0000 (21:34 -0700)
committerGirish Ramakrishnan <girish@cloudron.io>
Wed, 19 Aug 2015 06:49:12 +0000 (23:49 -0700)
commit24d7a86a8d35aa1fadf05deaa10e141d33ea6632
tree81f20ad9fa63e815ae0accf59a39eca2252b6068
parent03b85b73af03eae98308fc3d36cdbd47db1503d6
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.
conf/locale/locale_en-US.ini
models/login.go
modules/auth/auth_form.go
modules/auth/ldap/ldap.go
routers/admin/auths.go
templates/admin/auth/edit.tmpl
templates/admin/auth/new.tmpl