2001-05-12 08:51:28 +08:00
|
|
|
#
|
|
|
|
# master slapd config -- for testing of ldap metadirectory rewrite
|
|
|
|
#
|
|
|
|
ucdata-path ./ucdata
|
|
|
|
include ./schema/core.schema
|
|
|
|
include ./schema/cosine.schema
|
|
|
|
include ./schema/inetorgperson.schema
|
|
|
|
#
|
|
|
|
schemacheck off
|
|
|
|
#
|
|
|
|
pidfile ./meta-db/slapd.pid
|
|
|
|
argsfile ./meta-db/slapd.args
|
|
|
|
|
|
|
|
access to attr=userPassword
|
|
|
|
by anonymous auth
|
|
|
|
by self write
|
|
|
|
|
|
|
|
access to dn.regex="[^,]+,ou=People,dc=[^,]+,o=Foo Bar,c=US" attr=sn
|
|
|
|
by group.exact="cn=Users,ou=Groups,dc=bar,o=Foo Bar,c=US" read
|
|
|
|
by * none
|
|
|
|
|
|
|
|
access to dn.regex="[^,]+,ou=Groups,dc=[^,]+,o=Foo Bar,c=US" attr=cn
|
|
|
|
by group.exact="cn=Users,ou=Groups,dc=bar,o=Foo Bar,c=US" read
|
|
|
|
by * none
|
|
|
|
|
|
|
|
#access to dn.regex="[^,]+,ou=Groups,dc=[^,]+,o=Foo Bar,c=US" attr=cn
|
|
|
|
# by dnattr=member read
|
|
|
|
# by * none
|
|
|
|
|
|
|
|
access to *
|
|
|
|
by * read
|
|
|
|
|
|
|
|
#######################################################################
|
2001-12-27 20:17:54 +08:00
|
|
|
# ldap database with suffix massage definitions
|
2001-05-12 08:51:28 +08:00
|
|
|
#######################################################################
|
|
|
|
|
2001-12-27 20:17:54 +08:00
|
|
|
include ./slapd-ldap.conf
|
2001-05-12 08:51:28 +08:00
|
|
|
|
2001-05-14 01:58:03 +08:00
|
|
|
#######################################################################
|
2001-12-27 20:17:54 +08:00
|
|
|
# ldbm database definitions
|
2001-05-14 01:58:03 +08:00
|
|
|
#######################################################################
|
|
|
|
|
2001-12-27 20:17:54 +08:00
|
|
|
include ./slapd-ldbm.conf
|
2001-05-14 01:58:03 +08:00
|
|
|
|
2001-05-12 08:51:28 +08:00
|
|
|
#######################################################################
|
|
|
|
# meta database definitions
|
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
database meta
|
2001-12-27 20:17:54 +08:00
|
|
|
suffix "o=Foo Bar,c=US"
|
2001-05-12 08:51:28 +08:00
|
|
|
dncache-ttl forever
|
|
|
|
lastmod off
|
2001-05-20 01:02:39 +08:00
|
|
|
rootdn "cn=root,o=Foo Bar,c=US"
|
|
|
|
rootpw foo
|
2001-05-12 08:51:28 +08:00
|
|
|
|
2001-12-27 20:17:54 +08:00
|
|
|
uri "ldap://localhost:@PORT@/ou=People,dc=foo,o=Foo Bar,c=US"
|
|
|
|
pseudorootdn "cn=Root,ou=People,dc=foo,dc=example,dc=com"
|
2001-05-20 01:02:39 +08:00
|
|
|
pseudorootpw ldap
|
2001-05-12 08:51:28 +08:00
|
|
|
rewriteEngine on
|
|
|
|
rewriteContext default
|
2001-12-27 20:17:54 +08:00
|
|
|
rewriteRule "(.*)o=Foo Bar,[ ]?c=US" "%1dc=example,dc=com"
|
2001-05-12 08:51:28 +08:00
|
|
|
rewriteContext searchResult
|
2001-12-27 20:17:54 +08:00
|
|
|
rewriteRule "(.*)dc=example,[ ]?dc=com" "%1o=Foo Bar,c=US"
|
2004-03-11 03:04:18 +08:00
|
|
|
rewriteContext searchAttrDN alias searchResult
|
2001-05-12 08:51:28 +08:00
|
|
|
rewriteContext searchFilter
|
|
|
|
rewriteRule "(.*)member=([^)]+),o=Foo Bar,[ ]?c=US(.*)" "%1member=%2,dc=example,dc=com%3"
|
|
|
|
|
2001-12-27 20:17:54 +08:00
|
|
|
uri "ldap://localhost:@PORT@/ou=People,dc=bar,o=Foo Bar,c=US"
|
|
|
|
pseudorootdn "cn=Root,ou=People,dc=bar,dc=example,dc=com"
|
2001-05-20 01:02:39 +08:00
|
|
|
pseudorootpw ldap
|
2001-05-12 08:51:28 +08:00
|
|
|
rewriteEngine on
|
|
|
|
rewriteContext default
|
2001-12-27 20:17:54 +08:00
|
|
|
rewriteRule "(.*)o=Foo Bar,[ ]?c=US" "%1dc=example,dc=com"
|
2001-05-12 08:51:28 +08:00
|
|
|
rewriteContext searchResult
|
2001-12-27 20:17:54 +08:00
|
|
|
rewriteRule "(.*)dc=example,[ ]?dc=com" "%1o=Foo Bar,c=US"
|
2004-03-11 03:04:18 +08:00
|
|
|
rewriteContext searchAttrDN alias searchResult
|
2001-05-12 08:51:28 +08:00
|
|
|
rewriteContext searchFilter
|
|
|
|
rewriteRule "(.*)member=([^)]+),o=Foo Bar,[ ]?c=US(.*)" "%1member=%2,dc=example,dc=com%3"
|
|
|
|
default-target
|
|
|
|
map attribute givenName sn
|
|
|
|
|
2001-12-27 20:17:54 +08:00
|
|
|
uri "ldap://localhost:@PORT@/ou=Groups,dc=bar,o=Foo Bar,c=US"
|
2001-05-12 08:51:28 +08:00
|
|
|
rewriteEngine on
|
|
|
|
rewriteContext default
|
2001-12-27 20:17:54 +08:00
|
|
|
rewriteRule "(.*)o=Foo Bar,[ ]?c=US" "%1dc=example,dc=com"
|
2001-05-12 08:51:28 +08:00
|
|
|
rewriteContext searchResult
|
2001-12-27 20:17:54 +08:00
|
|
|
rewriteRule "(.*)dc=example,[ ]?dc=com" "%1o=Foo Bar,c=US"
|
2004-03-11 03:04:18 +08:00
|
|
|
rewriteContext searchAttrDN alias searchResult
|
2001-05-12 08:51:28 +08:00
|
|
|
rewriteContext searchFilter
|
|
|
|
rewriteRule "(.*)member=([^)]+),o=Foo Bar,[ ]?c=US(.*)" "%1member=%2,dc=example,dc=com%3"
|
|
|
|
|