mirror of https://github.com/gogits/gogs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
761 B
30 lines
761 B
# 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 = |
|
|
|
|