mirror of https://github.com/gogs/gogs.git
31 lines
761 B
Plaintext
31 lines
761 B
Plaintext
# This is an example of LDAP (simple auth) authentication
|
|
#
|
|
id = 102
|
|
type = ldap_simple_auth
|
|
name = LDAP Simple Auth
|
|
is_activated = true
|
|
|
|
[config]
|
|
host = mydomain.com
|
|
port = 636
|
|
# 0 - Unencrypted, 1 - LDAPS, 2 - StartTLS
|
|
security_protocol = 0
|
|
skip_verify = false
|
|
bind_dn =
|
|
bind_password =
|
|
user_base =
|
|
user_dn = cn=%s,ou=Users,dc=mydomain,dc=com
|
|
attribute_username =
|
|
attribute_name =
|
|
attribute_surname =
|
|
attribute_mail = mail
|
|
attributes_in_bind = false
|
|
filter = (&(objectClass=posixAccount)(cn=%s))
|
|
admin_filter =
|
|
group_enabled = false
|
|
group_dn =
|
|
group_filter =
|
|
group_member_uid =
|
|
user_uid =
|
|
|