cubicweb #934996 ldapuser source doesn't handle time units [resolved]

cubicweb-ctl create will generate values such as '1d' or '2h' for synchronization-interval and cache-life-time but the source crashes at instanciation time:

$ cubicweb-ctl start foobar
Traceback (most recent call last):
 File "/home/alf/cubicweb/cubicweb/cwctl.py", line 148, in run_arg
   status = cmdmeth(appid)
 File "/home/alf/cubicweb/cubicweb/cwctl.py", line 496, in start_instance
   helper.start_server(config, debug)
 File "/home/alf/cubicweb/cubicweb/etwist/twctl.py", line 37, in start_server
   server.run(config, debug)
 File "/home/alf/cubicweb/cubicweb/etwist/server.py", line 410, in run
   root_resource = CubicWebRootResource(config, debug)
 File "/home/alf/cubicweb/cubicweb/etwist/server.py", line 130, in __init__
   self.appli = CubicWebPublisher(config, debug=self.debugmode)
 File "/home/alf/cubicweb/cubicweb/web/application.py", line 291, in __init__
   self.repo = config.repository(vreg)
 File "/home/alf/cubicweb/cubicweb/web/webconfig.py", line 232, in repository
   repo = get_repository('inmemory', vreg=vreg, config=self)
 File "/home/alf/dev/prive/cubicweb/cubicweb/dbapi.py", line 97, in get_repository
   return Repository(config, vreg=vreg)
 File "/home/alf/cubicweb/cubicweb/server/repository.py", line 134, in __init__
   source = self.get_source(uri, source_config)
 File "/home/alf/cubicweb/cubicweb/server/repository.py", line 227, in get_source
   return sources.get_source(source_config, self.schema, self)
 File "/home/alf/cubicweb/cubicweb/server/sources/__init__.py", line 521, in get_source
   return source_adapter(source_config)(repo, global_schema, source_config)
 File "/home/alf/dev/prive/cubicweb/logilab/common/modutils.py", line 88, in __call__
   return self.__getobj()(*args, **kwargs)
 File "/home/alf/cubicweb/cubicweb/server/sources/ldapuser.py", line 192, in __init__
   24*60*60))
ValueError: invalid literal for int() with base 10: '1d'
instance foobar not started: invalid literal for int() with base 10: '1d'
priorityimportant
typebug
done in3.8.3
load0.100
load left0.000
closed by<not specified>