Changeset 1112

Show
Ignore:
Timestamp:
07/29/03 21:52:32 (21 years ago)
Author:
jalet
Message:

Forgot to read the email field from LDAP

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/ldapstorage.py

    r1111 r1112  
    2121# 
    2222# $Log$ 
     23# Revision 1.23  2003/07/29 19:52:32  jalet 
     24# Forgot to read the email field from LDAP 
     25# 
    2326# Revision 1.22  2003/07/29 09:54:03  jalet 
    2427# Added configurable LDAP mail attribute support 
     
    218221        """Extracts user information given its name.""" 
    219222        user = StorageUser(self, username) 
    220         result = self.doSearch("(&(objectClass=pykotaAccount)(|(pykotaUserName=%s)(%s=%s)))" % (username, self.info["userrdn"], username), ["pykotaLimitBy"], base=self.info["userbase"]) 
     223        result = self.doSearch("(&(objectClass=pykotaAccount)(|(pykotaUserName=%s)(%s=%s)))" % (username, self.info["userrdn"], username), ["pykotaLimitBy", self.info["usermail"]], base=self.info["userbase"]) 
    221224        if result : 
    222225            fields = result[0][1]