ldapscribe.py.patch
ldapscribe.py 2014-10-01 12:55:20.429195442 +0200 | ||
---|---|---|
165 | 165 |
# ------------------------------------------------------------------ # |
166 | 166 |
## les stations ## |
167 | 167 | |
168 |
nb_stations = self._requete(conn, "(&(objectclass=posixAccount)(description=Computer))", 'cn') |
|
168 | 169 |
statistics4 = [] |
169 | 170 |
statistics4.append ( |
170 | 171 |
{ 'name' : color('Total'), |
171 |
'nb' : color(self._requete(conn, "(&(objectclass=posixAccount)(description=Computer))", 'cn'))
|
|
172 |
'nb':color(nb_stations)
|
|
172 | 173 |
}) |
173 | 174 | |
175 |
self.measure_data['nb_stations']= nb_stations |
|
176 | ||
174 | 177 |
if self.fail >= 2 : |
175 | 178 |
self.status = status.Warn(self.lastwarn) |
176 | 179 |