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