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/", line 148, in run_arg
   status = cmdmeth(appid)
 File "/home/alf/cubicweb/cubicweb/", line 496, in start_instance
   helper.start_server(config, debug)
 File "/home/alf/cubicweb/cubicweb/etwist/", line 37, in start_server, debug)
 File "/home/alf/cubicweb/cubicweb/etwist/", line 410, in run
   root_resource = CubicWebRootResource(config, debug)
 File "/home/alf/cubicweb/cubicweb/etwist/", line 130, in __init__
   self.appli = CubicWebPublisher(config, debug=self.debugmode)
 File "/home/alf/cubicweb/cubicweb/web/", line 291, in __init__
   self.repo = config.repository(vreg)
 File "/home/alf/cubicweb/cubicweb/web/", line 232, in repository
   repo = get_repository('inmemory', vreg=vreg, config=self)
 File "/home/alf/dev/prive/cubicweb/cubicweb/", line 97, in get_repository
   return Repository(config, vreg=vreg)
 File "/home/alf/cubicweb/cubicweb/server/", line 134, in __init__
   source = self.get_source(uri, source_config)
 File "/home/alf/cubicweb/cubicweb/server/", line 227, in get_source
   return sources.get_source(source_config, self.schema, self)
 File "/home/alf/cubicweb/cubicweb/server/sources/", line 521, in get_source
   return source_adapter(source_config)(repo, global_schema, source_config)
 File "/home/alf/dev/prive/cubicweb/logilab/common/", line 88, in __call__
   return self.__getobj()(*args, **kwargs)
 File "/home/alf/cubicweb/cubicweb/server/sources/", line 192, in __init__
ValueError: invalid literal for int() with base 10: '1d'
instance foobar not started: invalid literal for int() with base 10: '1d'
done in3.8.3
load left0.000
closed by<not specified>