I was experimenting to set up a slave slapd on a UNIX client which should
only contain POSIX accounts that are actually allowed to login on that
client (which is defined through the host attribute).
So I set up a syncrepl slapd on that machine with a filter diretive that
replicates all posix groups and all accounts which are allowed to login
along with the dc's and ou's needed to reflect the posix information
apropriately:
syncrepl rid=999
provider=ldap://<master ip>
type=refreshAndPersist
interval=00:00:00:10
retry="60 10 300 +"
searchbase="dc=o2online,dc=de"
filter="(|(objectclass=dcobject)(objectclass=oragnizationalunit)(objectc
lass=posixgroup)(&(objectclass=posixaccount)(host=\\*))(&(objectclass=po
sixaccount)(host=<hostname>)))"