diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-07-14 14:36:42 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-07-15 11:18:15 -0400 |
commit | 0d12b0344fc8ee05211e65ecf332a46afc542765 (patch) | |
tree | 92978b80d6dcfc309193d0670fbd224ad3191824 /install/share | |
parent | ed488c63496b3a99169c3f84282bf943c6b36b5a (diff) | |
download | freeipa-0d12b0344fc8ee05211e65ecf332a46afc542765.tar.gz freeipa-0d12b0344fc8ee05211e65ecf332a46afc542765.tar.xz freeipa-0d12b0344fc8ee05211e65ecf332a46afc542765.zip |
Fix nis netgroup configuration
This was originally configured to pull from the compat area but Nalin
thinks that is a bad idea (and it stopped working anyway). This configures
the netgroup map to create the triples on its own.
Ticket #87
Diffstat (limited to 'install/share')
-rw-r--r-- | install/share/nis.uldif | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/install/share/nis.uldif b/install/share/nis.uldif index 86f521b61..5860d23af 100644 --- a/install/share/nis.uldif +++ b/install/share/nis.uldif @@ -65,12 +65,22 @@ default:nis-map: netid.byname default:nis-base: cn=users, cn=accounts, $SUFFIX default:nis-secure: no +# Note that the escapes in this entry can be quite confusing. The trick +# is that each level of nesting requires (2^n) - 1 escapes. So the +# first level is \", the second is \\\", the third is \\\\\\\", etc. +# (1, 3, 7, 15, more than that and you'll go insane) + +# Note that this configuration mirrors the Schema Compat configuration for +# triples. dn: nis-domain=$DOMAIN+nis-map=netgroup, cn=NIS Server, cn=plugins, cn=config default:objectclass: top default:objectclass: extensibleObject default:nis-domain: $DOMAIN default:nis-map: netgroup -default:nis-base: cn=ng, cn=compat, $SUFFIX +default:nis-base: cn=ng, cn=alt, $SUFFIX +default:nis-filter: (objectClass=ipanisNetgroup) +default:nis-key-format: %{cn} +default:nis-value-format: %merge(" ","%{memberNisNetgroup}","(%link(\"%collect(\\\"%{externalHost}\\\",\\\"%deref(\\\\\\\"memberHost\\\\\\\",\\\\\\\"fqdn\\\\\\\")\\\",\\\"%deref_r(\\\\\\\"member\\\\\\\",\\\\\\\"fqdn\\\\\\\")\\\",\\\"%deref_r(\\\\\\\"memberHost\\\\\\\",\\\\\\\"member\\\\\\\",\\\\\\\"fqdn\\\\\\\")\\\")\",\"-\",\",\",\"%collect(\\\"%deref(\\\\\\\"memberUser\\\\\\\",\\\\\\\"uid\\\\\\\")\\\",\\\"%deref_r(\\\\\\\"member\\\\\\\",\\\\\\\"uid\\\\\\\")\\\",\\\"%deref_r(\\\\\\\"memberUser\\\\\\\",\\\\\\\"member\\\\\\\",\\\\\\\"uid\\\\\\\")\\\")\",\"-\"),%{nisDomainName:-})") default:nis-secure: no dn: cn=ng,cn=Schema Compatibility,cn=plugins,cn=config |