Source

iredadmin-ose / libs / ldaplib / admin.py

Diff from to

File libs/ldaplib/admin.py

             return (False, ldaputils.getExceptionDesc(e))
 
     # Get admin profile.
-    def profile(self, mail):
+    def profile(self, mail, attributes=attrs.ADMIN_ATTRS_ALL):
         self.mail = web.safestr(mail)
         self.dn = ldaputils.convKeywordToDN(self.mail, accountType='admin')
         if self.dn[0] is False:
                 self.dn,
                 ldap.SCOPE_BASE,
                 '(&(objectClass=mailAdmin)(mail=%s))' % self.mail,
-                attrs.ADMIN_ATTRS_ALL,
+                attributes,
             )
             return (True, self.admin_profile)
         except ldap.NO_SUCH_OBJECT: