xref: /freebsd/share/examples/ypldap/ypldap.conf (revision f0865ec9906d5a18fa2a3b61381f22ce16e606ad)
1domain		"freebsd.org"
2interval	60
3provide map	"passwd.byname"
4provide map	"passwd.byuid"
5provide map	"group.byname"
6provide map	"group.bygid"
7provide map	"netid.byname"
8
9directory "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