Browse Source

Install a default ypldap.conf(5) based on the one from the man page

(which we remove now) with a couple of tweaks; use the same base DN and
admin user as our default ldap.conf(5).
OPENBSD_5_0
ajacoutot 13 years ago
parent
commit
c8cc77c49b
2 changed files with 40 additions and 1 deletions
  1. +2
    -1
      src/etc/Makefile
  2. +38
    -0
      src/etc/ypldap.conf

+ 2
- 1
src/etc/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.298 2011/07/07 01:52:57 robert Exp $
# $OpenBSD: Makefile,v 1.299 2011/07/07 02:22:11 ajacoutot Exp $
TZDIR= /usr/share/zoneinfo TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain LOCALTIME= Canada/Mountain
@ -109,6 +109,7 @@ distribution-etc-root-var: distrib-dirs
${INSTALL} -c -o root -g wheel -m 600 sasyncd.conf ${DESTDIR}/etc ${INSTALL} -c -o root -g wheel -m 600 sasyncd.conf ${DESTDIR}/etc
${INSTALL} -c -o root -g wheel -m 600 snmpd.conf ${DESTDIR}/etc ${INSTALL} -c -o root -g wheel -m 600 snmpd.conf ${DESTDIR}/etc
${INSTALL} -c -o root -g wheel -m 600 ldapd.conf ${DESTDIR}/etc ${INSTALL} -c -o root -g wheel -m 600 ldapd.conf ${DESTDIR}/etc
${INSTALL} -c -o root -g wheel -m 600 ypldap.conf ${DESTDIR}/etc
${INSTALL} -c -o root -g _nsd -m 640 nsd.conf ${DESTDIR}/etc ${INSTALL} -c -o root -g _nsd -m 640 nsd.conf ${DESTDIR}/etc
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev


+ 38
- 0
src/etc/ypldap.conf View File

@ -0,0 +1,38 @@
# $OpenBSD: ypldap.conf,v 1.1 2011/07/07 02:22:11 ajacoutot Exp $
domain "example.com"
interval 60
provide map "passwd.byname"
provide map "passwd.byuid"
provide map "group.byname"
provide map "group.bygid"
directory "127.0.0.1" {
# directory options
binddn "cn=admin,dc=example,dc=com"
bindcred "secret"
basedn "ou=People,dc=example,dc=com"
# passwd maps configuration (RFC 2307 posixAccount object class)
passwd filter "(objectClass=posixAccount)"
attribute name maps to "uid"
fixed attribute passwd "*"
attribute uid maps to "uidNumber"
attribute gid maps to "gidNumber"
attribute gecos maps to "cn"
attribute home maps to "homeDirectory"
attribute shell maps to "loginShell"
fixed attribute change "0"
fixed attribute expire "0"
fixed attribute class ""
# group maps configuration (RFC 2307 posixGroup object class)
group filter "(objectClass=posixGroup)"
attribute groupname maps to "cn"
fixed attribute grouppasswd "*"
attribute groupgid maps to "gidNumber"
# memberUid returns multiple group members
list groupmembers maps to "memberUid"
}

Loading…
Cancel
Save