Fix SASL mappings

This commit is contained in:
Simo Sorce 2009-09-29 12:41:20 -04:00 committed by Rob Crittenden
parent 1e3ba09514
commit 4262358111

View File

@ -247,9 +247,9 @@ class KrbInstance(service.Service):
entry = ipaldap.Entry("cn=Name Only,cn=mapping,cn=sasl,cn=config")
entry.setValues("objectclass", "top", "nsSaslMapping")
entry.setValues("cn", "Name Only")
entry.setValues("nsSaslMapRegexString", '\(.*\)')
entry.setValues("nsSaslMapRegexString", '^[^:@]+$')
entry.setValues("nsSaslMapBaseDNTemplate", self.suffix)
entry.setValues("nsSaslMapFilterTemplate", '(krbPrincipalName=\\1@%s)' % self.realm)
entry.setValues("nsSaslMapFilterTemplate", '(krbPrincipalName=&@%s)' % self.realm)
try:
self.conn.add_s(entry)