#!/usr/bin/python
import pprint
import subprocess
-from webcommon import InvalidInput
# import ldap
# l = ldap.open("W92-130-LDAP-2.mit.edu")
def getLockerPath(locker):
if '/' in locker or locker in ['.', '..']:
- raise InvalidInput('owner', locker, 'Locker name is invalid.')
+ raise AfsProcessError("Locker '%s' is invalid." % locker)
return '/mit/' + locker
def checkAfsGroup(user, group, cell):