Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/share/examples/ypldap/ypldap.conf
39476 views
1
domain "freebsd.org"
2
interval 60
3
provide map "passwd.byname"
4
provide map "passwd.byuid"
5
provide map "group.byname"
6
provide map "group.bygid"
7
provide map "netid.byname"
8
9
directory "127.0.0.1" {
10
# directory options
11
binddn "cn=ldap,dc=freebsd,dc=org"
12
bindcred "secret"
13
basedn "dc=freebsd.,dc=org"
14
# starting point for groups directory search, default to basedn
15
groupdn "ou=Groups,dc=freebsd,dc=org"
16
17
# passwd maps configuration (RFC 2307 posixAccount object class)
18
passwd filter "(objectClass=posixAccount)"
19
20
attribute name maps to "uid"
21
fixed attribute passwd "*"
22
attribute uid maps to "uidNumber"
23
attribute gid maps to "gidNumber"
24
attribute gecos maps to "cn"
25
attribute home maps to "homeDirectory"
26
attribute shell maps to "loginShell"
27
fixed attribute change "0"
28
fixed attribute expire "0"
29
fixed attribute class ""
30
31
# group maps configuration (RFC 2307 posixGroup object class)
32
group filter "(objectClass=posixGroup)"
33
34
attribute groupname maps to "cn"
35
fixed attribute grouppasswd "*"
36
attribute groupgid maps to "gidNumber"
37
# memberUid returns multiple group members
38
list groupmembers maps to "memberUid"
39
}
40
41