Changeset 984

Show
Ignore:
Timestamp:
05/03/03 09:27:14 (22 years ago)
Author:
jalet
Message:

Should be able to list a group's members

Files:
1 modified

Legend:

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

    r983 r984  
    2121# 
    2222# $Log$ 
     23# Revision 1.5  2003/05/03 07:27:14  jalet 
     24# Should be able to list a group's members 
     25# 
    2326# Revision 1.4  2003/05/01 21:08:44  jalet 
    2427# More work on LDAP 
     
    130133    def getGroupMembersNames(self, groupname) :         
    131134        """Returns the list of user's names which are member of this group.""" 
    132         pass 
     135        result = self.doSearch("cn=%s" % groupname, ["memberUid"], base="cn=%s,ou=Group" % groupname) 
     136        if result is not None : 
     137            (groupid, fields) = result[0] 
     138            return fields["memberUid"] 
    133139         
    134140    def getUserGroupsNames(self, userid) :