Blame SOURCES/0004-Ticket-50933-Update-2307compat.ldif.patch

be9751
From 826a1bb4ea88915ac492828d1cc4a901623f7866 Mon Sep 17 00:00:00 2001
be9751
From: William Brown <william@blackhats.net.au>
be9751
Date: Thu, 14 May 2020 14:31:47 +1000
be9751
Subject: [PATCH 1/2] Ticket 50933 - Update 2307compat.ldif
be9751
be9751
Bug Description: This resolves a potential conflict between 60nis.ldif
be9751
in freeipa and others with 2307compat, by removing the conflicting
be9751
definitions from 2307bis that were included.
be9751
be9751
Fix Description: By not including these in 2307compat, this means that
be9751
sites that rely on the values provided by 2307bis may ALSO need
be9751
60nis.ldif to be present. However, these nis values seem like they are
be9751
likely very rare in reality, and this also will avoid potential
be9751
issues with freeipa. It also is the least disruptive as we don't need
be9751
to change an already defined file, and we don't have values where the name
be9751
to oid relationship changes.
be9751
be9751
Fixes: #50933
be9751
https://pagure.io/389-ds-base/issue/50933
be9751
be9751
Author: William Brown <william@blackhats.net.au>
be9751
be9751
Review by: tbordaz (Thanks!)
be9751
---
be9751
 ldap/schema/10rfc2307compat.ldif | 66 --------------------------------
be9751
 ldap/schema/60autofs.ldif        | 39 ++++++++++++-------
be9751
 2 files changed, 26 insertions(+), 79 deletions(-)
be9751
be9751
diff --git a/ldap/schema/10rfc2307compat.ldif b/ldap/schema/10rfc2307compat.ldif
be9751
index 8810231ac..78c588d08 100644
be9751
--- a/ldap/schema/10rfc2307compat.ldif
be9751
+++ b/ldap/schema/10rfc2307compat.ldif
be9751
@@ -176,50 +176,6 @@ attributeTypes: (
be9751
   SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
be9751
   SINGLE-VALUE
be9751
   )
be9751
-attributeTypes: (
be9751
-  1.3.6.1.1.1.1.28 NAME 'nisPublicKey'
be9751
-  DESC 'NIS public key'
be9751
-  EQUALITY octetStringMatch
be9751
-  SYNTAX 1.3.6.1.4.1.1466.115.121.1.40
be9751
-  SINGLE-VALUE
be9751
-  )
be9751
-attributeTypes: (
be9751
-  1.3.6.1.1.1.1.29 NAME 'nisSecretKey'
be9751
-  DESC 'NIS secret key'
be9751
-  EQUALITY octetStringMatch
be9751
-  SYNTAX 1.3.6.1.4.1.1466.115.121.1.40
be9751
-  SINGLE-VALUE
be9751
-  )
be9751
-attributeTypes: (
be9751
-  1.3.6.1.1.1.1.30 NAME 'nisDomain'
be9751
-  DESC 'NIS domain'
be9751
-  EQUALITY caseIgnoreIA5Match
be9751
-  SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
be9751
-  )
be9751
-attributeTypes: (
be9751
-  1.3.6.1.1.1.1.31 NAME 'automountMapName'
be9751
-  DESC 'automount Map Name'
be9751
-  EQUALITY caseExactIA5Match
be9751
-  SUBSTR caseExactIA5SubstringsMatch
be9751
-  SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
be9751
-  SINGLE-VALUE
be9751
-  )
be9751
-attributeTypes: (
be9751
-  1.3.6.1.1.1.1.32 NAME 'automountKey'
be9751
-  DESC 'Automount Key value'
be9751
-  EQUALITY caseExactIA5Match
be9751
-  SUBSTR caseExactIA5SubstringsMatch
be9751
-  SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
be9751
-  SINGLE-VALUE
be9751
-  )
be9751
-attributeTypes: (
be9751
-  1.3.6.1.1.1.1.33 NAME 'automountInformation'
be9751
-  DESC 'Automount information'
be9751
-  EQUALITY caseExactIA5Match
be9751
-  SUBSTR caseExactIA5SubstringsMatch
be9751
-  SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
be9751
-  SINGLE-VALUE
be9751
-  )
be9751
 # end of attribute types - beginning of objectclasses
be9751
 objectClasses: (
be9751
   1.3.6.1.1.1.2.0 NAME 'posixAccount' SUP top AUXILIARY
be9751
@@ -324,28 +280,6 @@ objectClasses: (
be9751
         seeAlso $ serialNumber'
be9751
   MAY ( bootFile $ bootParameter $ cn $ description $ l $ o $ ou $ owner $ seeAlso $ serialNumber )
be9751
   )
be9751
-objectClasses: (
be9751
-  1.3.6.1.1.1.2.14 NAME 'nisKeyObject' SUP top AUXILIARY
be9751
-  DESC 'An object with a public and secret key'
be9751
-  MUST ( cn $ nisPublicKey $ nisSecretKey )
be9751
-  MAY ( uidNumber $ description )
be9751
-  )
be9751
-objectClasses: (
be9751
-  1.3.6.1.1.1.2.15 NAME 'nisDomainObject' SUP top AUXILIARY
be9751
-  DESC 'Associates a NIS domain with a naming context'
be9751
-  MUST nisDomain
be9751
-  )
be9751
-objectClasses: (
be9751
-  1.3.6.1.1.1.2.16 NAME 'automountMap' SUP top STRUCTURAL
be9751
-  MUST ( automountMapName )
be9751
-  MAY description
be9751
-  )
be9751
-objectClasses: (
be9751
-  1.3.6.1.1.1.2.17 NAME 'automount' SUP top STRUCTURAL
be9751
-  DESC 'Automount information'
be9751
-  MUST ( automountKey $ automountInformation )
be9751
-  MAY description
be9751
-  )
be9751
 ## namedObject is needed for groups without members
be9751
 objectClasses: (
be9751
   1.3.6.1.4.1.5322.13.1.1 NAME 'namedObject' SUP top STRUCTURAL
be9751
diff --git a/ldap/schema/60autofs.ldif b/ldap/schema/60autofs.ldif
be9751
index 084e9ec30..de3922aa2 100644
be9751
--- a/ldap/schema/60autofs.ldif
be9751
+++ b/ldap/schema/60autofs.ldif
be9751
@@ -6,7 +6,23 @@ dn: cn=schema
be9751
 ################################################################################
be9751
 #
be9751
 attributeTypes: (
be9751
-  1.3.6.1.1.1.1.33 
be9751
+  1.3.6.1.1.1.1.31 NAME 'automountMapName'
be9751
+  DESC 'automount Map Name'
be9751
+  EQUALITY caseExactIA5Match
be9751
+  SUBSTR caseExactIA5SubstringsMatch
be9751
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
be9751
+  SINGLE-VALUE
be9751
+  )
be9751
+attributeTypes: (
be9751
+  1.3.6.1.1.1.1.32 NAME 'automountKey'
be9751
+  DESC 'Automount Key value'
be9751
+  EQUALITY caseExactIA5Match
be9751
+  SUBSTR caseExactIA5SubstringsMatch
be9751
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
be9751
+  SINGLE-VALUE
be9751
+  )
be9751
+attributeTypes: (
be9751
+  1.3.6.1.1.1.1.33
be9751
   NAME 'automountInformation'
be9751
   DESC 'Information used by the autofs automounter'
be9751
   EQUALITY caseExactIA5Match
be9751
@@ -18,25 +34,22 @@ attributeTypes: (
be9751
 ################################################################################
be9751
 #
be9751
 objectClasses: (
be9751
-  1.3.6.1.1.1.2.17
be9751
-  NAME 'automount'
be9751
-  DESC 'An entry in an automounter map'
be9751
+  1.3.6.1.1.1.2.16
be9751
+  NAME 'automountMap'
be9751
+  DESC 'An group of related automount objects'
be9751
   SUP top
be9751
   STRUCTURAL
be9751
-  MUST ( cn $ automountInformation )
be9751
-  MAY ( description )
be9751
+  MAY ( ou $ automountMapName $ description )
be9751
   X-ORIGIN 'draft-howard-rfc2307bis'
be9751
   )
be9751
-#
be9751
-################################################################################
be9751
-#
be9751
 objectClasses: (
be9751
-  1.3.6.1.1.1.2.16
be9751
-  NAME 'automountMap'
be9751
-  DESC 'An group of related automount objects'
be9751
+  1.3.6.1.1.1.2.17
be9751
+  NAME 'automount'
be9751
+  DESC 'An entry in an automounter map'
be9751
   SUP top
be9751
   STRUCTURAL
be9751
-  MUST ( ou )
be9751
+  MUST ( automountInformation )
be9751
+  MAY ( cn $ description $ automountKey )
be9751
   X-ORIGIN 'draft-howard-rfc2307bis'
be9751
   )
be9751
 #
be9751
-- 
be9751
2.26.2
be9751