|
|
|
@ -52,9 +52,9 @@ if __name__ == "__main__":
|
|
|
|
|
cl_client.cl_client,object),
|
|
|
|
|
{})
|
|
|
|
|
ldapObj = newClass("cl-sync")
|
|
|
|
|
progress = optObj.opt.has_key('progress')
|
|
|
|
|
progress = optObj.opt.has_key('progress')
|
|
|
|
|
if optObj.opt.has_key('login') and optObj.opt.has_key('nosync') \
|
|
|
|
|
and not progress:
|
|
|
|
|
and not progress:
|
|
|
|
|
userName = optObj.params['user']
|
|
|
|
|
if not ldapObj.mountUserRes(userName,False):
|
|
|
|
|
flagError = True
|
|
|
|
@ -63,7 +63,7 @@ if __name__ == "__main__":
|
|
|
|
|
if not ldapObj.mountUserRes(userName,progress=progress):
|
|
|
|
|
flagError = True
|
|
|
|
|
elif optObj.opt.has_key('logout') and optObj.opt.has_key('nosync')\
|
|
|
|
|
and not progress:
|
|
|
|
|
and not progress:
|
|
|
|
|
userName = optObj.params['user']
|
|
|
|
|
if not ldapObj.umountUserResNoSync(userName):
|
|
|
|
|
flagError = True
|
|
|
|
|