Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Leo Colisson
scripts
Commits
3abcb7b1
Commit
3abcb7b1
authored
Sep 22, 2015
by
Pierre-Elliott Bécue
Browse files
Script listant l'ensemble des membres actifs.
parent
c2a21b87
Changes
1
Hide whitespace changes
Inline
Side-by-side
surveillance/list_things/list_ma.py
0 → 100755
View file @
3abcb7b1
#!/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
])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment