mirror of
https://github.com/go-gitea/gitea
synced 2024-12-23 04:57:51 +01:00
parent
7284829962
commit
ed96b84b2e
@ -115,6 +115,10 @@ Both the LDAP via BindDN and the simple auth LDAP share the following fields:
|
|||||||
- Example: `cn=%s,ou=Users,dc=mydomain,dc=com`
|
- Example: `cn=%s,ou=Users,dc=mydomain,dc=com`
|
||||||
- Example: `uid=%s,ou=Users,dc=mydomain,dc=com`
|
- Example: `uid=%s,ou=Users,dc=mydomain,dc=com`
|
||||||
|
|
||||||
|
- User Search Base (optional)
|
||||||
|
- The LDAP base at which user accounts will be searched for.
|
||||||
|
- Example: `ou=Users,dc=mydomain,dc=com`
|
||||||
|
|
||||||
- User Filter **(required)**
|
- User Filter **(required)**
|
||||||
- An LDAP filter declaring when a user should be allowed to log in. The `%s`
|
- An LDAP filter declaring when a user should be allowed to log in. The `%s`
|
||||||
matching parameter will be substituted with login name given on sign-in
|
matching parameter will be substituted with login name given on sign-in
|
||||||
|
@ -94,6 +94,10 @@ share the following fields:
|
|||||||
* Example: cn=%s,ou=Users,dc=mydomain,dc=com
|
* Example: cn=%s,ou=Users,dc=mydomain,dc=com
|
||||||
* Example: uid=%s,ou=Users,dc=mydomain,dc=com
|
* Example: uid=%s,ou=Users,dc=mydomain,dc=com
|
||||||
|
|
||||||
|
* User Search Base (optional)
|
||||||
|
* The LDAP base at which user accounts will be searched for.
|
||||||
|
* Example: ou=Users,dc=mydomain,dc=com
|
||||||
|
|
||||||
* User Filter **(required)**
|
* User Filter **(required)**
|
||||||
* An LDAP filter declaring when a user should be allowed to log in. The `%s`
|
* An LDAP filter declaring when a user should be allowed to log in. The `%s`
|
||||||
matching parameter will be substituted with the user's username.
|
matching parameter will be substituted with the user's username.
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
<div class="{{if .Source.IsLDAP}}required{{end}} field">
|
<div class="{{if .Source.IsLDAP}}required{{end}} field">
|
||||||
<label for="user_base">{{.i18n.Tr "admin.auths.user_base"}}</label>
|
<label for="user_base">{{.i18n.Tr "admin.auths.user_base"}}</label>
|
||||||
<input id="user_base" name="user_base" value="{{$cfg.UserBase}}" placeholder="e.g. ou=Users,dc=mydomain,dc=com" required>
|
<input id="user_base" name="user_base" value="{{$cfg.UserBase}}" placeholder="e.g. ou=Users,dc=mydomain,dc=com" {{if .Source.IsLDAP}}required{{end}}>
|
||||||
</div>
|
</div>
|
||||||
{{if .Source.IsDLDAP}}
|
{{if .Source.IsDLDAP}}
|
||||||
<div class="required field">
|
<div class="required field">
|
||||||
|
Loading…
Reference in New Issue
Block a user