self.addOption('','--without-dm-db',dest='withoutDmDb',action='store_true',default=False,help='Do not use DM DB for synchronizing user information.')
self.addOption('','--without-dm-db',dest='withoutDmDb',action='store_true',default=False,help='Do not use DM DB for synchronizing user information.')
self.addOption('','--use-dm-rest-api',dest='useDmRestApi',action='store_true',default=False,help='Use DM REST API for accessing user information. This option does not have any effect if --without-dm-db is set.')
self.addOption('','--use-dm-rest-api',dest='useDmRestApi',action='store_true',default=False,help='Use DM REST API for accessing user information. This option does not have any effect if --without-dm-db is set.')
self.addOption('','--quiet',dest='quiet',action='store_true',default=False,help='Do not print any output to console.')
defcheckArgs(self):
defcheckArgs(self):
configFile=self.options.configFile
configFile=self.options.configFile
...
@@ -32,10 +34,12 @@ class UpdateUsersFromApsDbCli(DmCli):
...
@@ -32,10 +34,12 @@ class UpdateUsersFromApsDbCli(DmCli):
Updates all users in DM LDAP and database using information from APS DB. This command by default uses DM DB to determine whether or not user needs to be created or updated. If the --without-dm-db flag is set, DM DB will not be used nor it will be updated.
Updates all users in DM LDAP and database using information from APS DB. This command by default uses DM DB to determine whether or not user needs to be created or updated. If the --without-dm-db flag is set, DM DB will not be used nor it will be updated.