Changeset 213 for trunk/LocationDo
- Timestamp:
- 01/31/06 09:30:28 (19 years ago)
- Location:
- trunk/LocationDo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocationDo/LocationDo.py
r212 r213 171 171 elif bssid == '00:0e:83:05:78:a2': 172 172 location.add('3124 SC') 173 elif bssid == '00:0e:83:05:78:92': 174 location.add('2405 SC') 173 175 elif bssid == '00:0e:83:05:76:b2': 174 176 location.add('Siebel 2nd floor atrium') -
trunk/LocationDo/action.py
r212 r213 9 9 10 10 def ensureKerberosPrincipalsValid(principals): 11 # XXX still doesn't play well with the automatic ticket renewal the Kerberos app does12 11 kerberosApp = app(id='edu.mit.Kerberos.KerberosApp') 13 validPrincipals = kerberosApp.caches.filter((its.time_remaining.startswith('Expired')).NOT).principal.get() 12 validPrincipals = kerberosApp.caches.filter( \ 13 (its.time_remaining.startswith('Expired').NOT) \ 14 .AND(its.time_remaining.startswith('Not Valid').NOT)) \ 15 .principal.get() 14 16 for principal in principals: 15 17 if principal not in validPrincipals:
Note:
See TracChangeset
for help on using the changeset viewer.