title: List users in a group LDAP python
body: <p>I'm new to LDAP. So I don't really know all my terms and fully understand all the terms yet. However, I'm working on an existing system and all the set up is done. I'm just adding a method to it. 
  I'm trying to write a method in Python using LDAP query. I've played around on LDAP Browser and can see that my query is correct. However, I'm not sure how to put it in a python method to return a list. The method needs to return a list of all the users' username. So far I have:</p>
  
  <pre><code>def getUsersInGroup(self, group):
      searchQuery= //for privacy Im not going to share this
      searchAttribute=["username"]
      results = self.ldap.search_s(self.ldap_root, ldap.SCOP_SUBTREE, 
          searchQuery, searchAttribute)
  </code></pre>
  
  <p>I'm unsure how to go from here. I don't fully understand what the search_s method returns. I read online that its better to use search_s over search method because the while loop can be avoided. Could you please provide and example of where I can go from here. Thanks. </p>