Commit 3abcb7b1 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue
Browse files

Script listant l'ensemble des membres actifs.

parent c2a21b87
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
import lc_ldap.shortcuts as shortcuts
import lc_ldap.attributs as attributs
if __name__ == "__main__":
LDAP = shortcuts.lc_ldap_readonly()
LISTE = LDAP.search(u"(&(droits=*)(!(droits=%s)))" % (attributs.multimachines,))
print " ".join([unicode(user['uid'][0]) for user in LISTE])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment