From 5a8e326aebe8c25f5a82e95baf762dfc95f244d9 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 27 Aug 2013 07:57:07 +0000 Subject: [PATCH] Fix nsSaslMapping object class before configuring SASL mappings. This is a workaround for . https://fedorahosted.org/freeipa/ticket/3778 --- ipaserver/install/krbinstance.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ipaserver/install/krbinstance.py b/ipaserver/install/krbinstance.py index a16e4d5f0..3c59db853 100644 --- a/ipaserver/install/krbinstance.py +++ b/ipaserver/install/krbinstance.py @@ -252,6 +252,17 @@ class KrbInstance(service.Service): # we need to remove any existing SASL mappings in the directory as otherwise they # they may conflict. + # FIXME: https://fedorahosted.org/389/ticket/47490 + entry = self.admin_conn.get_entry( + DN(('cn', 'schema')), ['objectClasses']) + entry['objectClasses'].append( + "( 2.16.840.1.113730.3.2.317 NAME 'nsSaslMapping' " + "DESC 'Netscape defined objectclass' SUP top " + "MUST ( cn $ nsSaslMapRegexString $ nsSaslMapBaseDNTemplate $ " + "nsSaslMapFilterTemplate ) MAY ( nsSaslMapPriority ) " + "X-ORIGIN 'Netscape Directory Server' )") + self.admin_conn.update_entry(entry) + try: res = self.admin_conn.get_entries( DN(('cn', 'mapping'), ('cn', 'sasl'), ('cn', 'config')),