'Return the shadow user record corresponding to the given username.'

def getspnam(self, username):

    for entry in self._users:
        if (entry.sp_nam == username):
            return entry
    raise KeyError
