pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0003-Remove-posixAccount-from-service_find-search-filter-2f9cbff_rhbz#1731437.patch

544061
From 2f9cbffb6e57ded2d0107f457241f33b17869a96 Mon Sep 17 00:00:00 2001
544061
From: Rob Crittenden <rcritten@redhat.com>
544061
Date: Jul 19 2019 19:16:16 +0000
544061
Subject: Remove posixAccount from service_find search filter
544061
544061
544061
This will allow cifs principals to be found. They were suppressed
544061
because they include objectclass=posixAccount.
544061
544061
This is a bit of a historical anomaly. This was included in the
544061
filter from the initial commit (though it was person, not
544061
posixAccount). I believe it was a mistake from the beginning but
544061
it wasn't noticed because it didn't cause any obvious issues.
544061
544061
https://pagure.io/freeipa/issue/8013
544061
544061
Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com>
544061
544061
---
544061
544061
diff --git a/ipaserver/plugins/service.py b/ipaserver/plugins/service.py
544061
index f58fe4b..c118b80 100644
544061
--- a/ipaserver/plugins/service.py
544061
+++ b/ipaserver/plugins/service.py
544061
@@ -889,7 +889,6 @@ class service_find(LDAPSearch):
544061
         assert isinstance(base_dn, DN)
544061
         # lisp style!
544061
         custom_filter = '(&(objectclass=ipaService)' \
544061
-                          '(!(objectClass=posixAccount))' \
544061
                           '(!(|(krbprincipalname=kadmin/*)' \
544061
                               '(krbprincipalname=K/M@*)' \
544061
                               '(krbprincipalname=krbtgt/*))' \
544061