Changeset 213


Ignore:
Timestamp:
01/31/06 09:30:28 (14 years ago)
Author:
Nicholas Riley
Message:

LocationDo?.py: Another place in Siebel.

action.py: ensureKerberosPrincipalsValid now understands both
"Expired" and "Not Valid" as requiring renewal. I bet these get
localized, too...

Location:
trunk/LocationDo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocationDo/LocationDo.py

    r212 r213  
    171171                    elif bssid == '00:0e:83:05:78:a2':
    172172                        location.add('3124 SC')
     173                    elif bssid == '00:0e:83:05:78:92':
     174                        location.add('2405 SC')
    173175                    elif bssid == '00:0e:83:05:76:b2':
    174176                        location.add('Siebel 2nd floor atrium')
  • trunk/LocationDo/action.py

    r212 r213  
    99
    1010def ensureKerberosPrincipalsValid(principals):
    11     # XXX still doesn't play well with the automatic ticket renewal the Kerberos app does
    1211    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()
    1416    for principal in principals:
    1517        if principal not in validPrincipals:
Note: See TracChangeset for help on using the changeset viewer.