Skip to content

Instantly share code, notes, and snippets.

@ane
Created May 3, 2012 07:18
Show Gist options
  • Save ane/2583974 to your computer and use it in GitHub Desktop.
Save ane/2583974 to your computer and use it in GitHub Desktop.
userRights = self.conn.search("member="+username)
apps = [app for app in userRights if 'groupOfNames' in
app['objectClass'] and
(app['cn'][0].startswith(prefix))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment