[Freeipa-devel] [PATCH] add missing filters
Kevin McCarthy
kmccarth at redhat.com
Thu Sep 27 23:07:30 UTC 2007
I added a couple methods earlier, but neglected to safe_filter the
filters. This patch fixes that omission.
-Kevin
-------------- next part --------------
# HG changeset patch
# User Kevin McCarthy <kmccarth at redhat.com>
# Date 1190934425 25200
# Node ID 0f0476cde60827fb776278f987ff7c33d5b2a304
# Parent 11d7ba255e520dfc3fec3c705bab8e735a9e0863
patch queue: add_filters.patch
diff -r 11d7ba255e52 -r 0f0476cde608 ipa-server/xmlrpc-server/funcs.py
--- a/ipa-server/xmlrpc-server/funcs.py Thu Sep 27 15:51:26 2007 -0700
+++ b/ipa-server/xmlrpc-server/funcs.py Thu Sep 27 16:07:05 2007 -0700
@@ -105,6 +105,7 @@ class IPAServer:
"""Given a kerberos principal get the LDAP uid"""
global _LDAPPool
+ princ = self.__safe_filter(princ)
filter = "(krbPrincipalName=" + princ + ")"
# The only anonymous search we should have
conn = _LDAPPool.getConn(self.host,self.sslport,self.bindca,self.bindcert,self.bindkey,None,None,debug)
@@ -315,6 +316,7 @@ class IPAServer:
"""Gets the users that report to a particular manager.
"""
+ manager_dn = self.__safe_filter(manager_dn)
filter = "(&(objectClass=person)(manager=%s))" % manager_dn
try:
@@ -624,6 +626,7 @@ class IPAServer:
Multi-valued fields are represented as lists.
"""
+ member_dn = self.__safe_filter(member_dn)
filter = "(&(objectClass=posixGroup)(uniqueMember=%s))" % member_dn
try:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4054 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20070927/4c253ce5/attachment.bin>
More information about the Freeipa-devel
mailing list