diff options
author | Girish Ramakrishnan <girish@cloudron.io> | 2015-08-18 21:34:03 -0700 |
---|---|---|
committer | Girish Ramakrishnan <girish@cloudron.io> | 2015-08-18 23:49:12 -0700 |
commit | 24d7a86a8d35aa1fadf05deaa10e141d33ea6632 (patch) | |
tree | 81f20ad9fa63e815ae0accf59a39eca2252b6068 /conf | |
parent | 03b85b73af03eae98308fc3d36cdbd47db1503d6 (diff) | |
download | gitea-24d7a86a8d35aa1fadf05deaa10e141d33ea6632.tar.gz gitea-24d7a86a8d35aa1fadf05deaa10e141d33ea6632.zip |
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.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/locale/locale_en-US.ini | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/locale/locale_en-US.ini b/conf/locale/locale_en-US.ini index 9fd7c4490d..b2ccee5b50 100644 --- a/conf/locale/locale_en-US.ini +++ b/conf/locale/locale_en-US.ini @@ -761,6 +761,7 @@ auths.attribute_name = First name attribute auths.attribute_surname = Surname attribute auths.attribute_mail = E-mail attribute auths.filter = User Filter +auths.admin_filter = Admin Filter auths.ms_ad_sa = Ms Ad SA auths.smtp_auth = SMTP Authorization Type auths.smtphost = SMTP Host |