mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
patch queue: add_filters.patch
This commit is contained in:
parent
572b3e9fdd
commit
0431a536e5
@ -105,6 +105,7 @@ class IPAServer:
|
|||||||
"""Given a kerberos principal get the LDAP uid"""
|
"""Given a kerberos principal get the LDAP uid"""
|
||||||
global _LDAPPool
|
global _LDAPPool
|
||||||
|
|
||||||
|
princ = self.__safe_filter(princ)
|
||||||
filter = "(krbPrincipalName=" + princ + ")"
|
filter = "(krbPrincipalName=" + princ + ")"
|
||||||
# The only anonymous search we should have
|
# The only anonymous search we should have
|
||||||
conn = _LDAPPool.getConn(self.host,self.sslport,self.bindca,self.bindcert,self.bindkey,None,None,debug)
|
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.
|
"""Gets the users that report to a particular manager.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
manager_dn = self.__safe_filter(manager_dn)
|
||||||
filter = "(&(objectClass=person)(manager=%s))" % manager_dn
|
filter = "(&(objectClass=person)(manager=%s))" % manager_dn
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -624,6 +626,7 @@ class IPAServer:
|
|||||||
Multi-valued fields are represented as lists.
|
Multi-valued fields are represented as lists.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
member_dn = self.__safe_filter(member_dn)
|
||||||
filter = "(&(objectClass=posixGroup)(uniqueMember=%s))" % member_dn
|
filter = "(&(objectClass=posixGroup)(uniqueMember=%s))" % member_dn
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user