X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_nbi%2Fnbi.py;h=1a3efe1074db8a9b8fb13ea6dd3171079f5a2c21;hb=refs%2Fchanges%2F17%2F14017%2F2;hp=8f87135a02d5530794c7fd73db78a8f187b06746;hpb=c72bc8e972e7fd1cafe7e570e6d0bb416c4440fa;p=osm%2FNBI.git diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py index 8f87135a..1a3efe10 100644 --- a/osm_nbi/nbi.py +++ b/osm_nbi/nbi.py @@ -1953,6 +1953,15 @@ def _start_service(): if k == "OSMNBI_USER_MANAGEMENT": feature_state = eval(v.title()) engine_config["authentication"]["user_management"] = feature_state + elif k == "OSMNBI_PWD_EXPIRE_DAYS": + pwd_expire_days = int(v) + engine_config["authentication"]["pwd_expire_days"] = pwd_expire_days + elif k == "OSMNBI_MAX_PWD_ATTEMPT": + max_pwd_attempt = int(v) + engine_config["authentication"]["max_pwd_attempt"] = max_pwd_attempt + elif k == "OSMNBI_ACCOUNT_EXPIRE_DAYS": + account_expire_days = int(v) + engine_config["authentication"]["account_expire_days"] = account_expire_days if not k.startswith("OSMNBI_"): continue k1, _, k2 = k[7:].lower().partition("_")