diff --git a/dicos/70_lemonldap_ng.xml b/dicos/70_lemonldap_ng.xml
index f243ffb..49e614d 100644
--- a/dicos/70_lemonldap_ng.xml
+++ b/dicos/70_lemonldap_ng.xml
@@ -99,6 +99,12 @@
oui
+
+ 5184000
+
+
+ 3456000
+
oui
@@ -158,6 +164,12 @@
casLDAPAttribute
+
+ AD
+ llADPasswordMaxAge
+ llADPasswordExpireWarn
+
+
non
lemonldap
diff --git a/tmpl/lmConf-1.json b/tmpl/lmConf-1.json
index b136925..a794cd1 100644
--- a/tmpl/lmConf-1.json
+++ b/tmpl/lmConf-1.json
@@ -13,8 +13,10 @@
%silent %%exported_vars.sort()
%silent %%cas_attributes.sort()
{
- "ADPwdExpireWarning": 0,
- "ADPwdMaxAge": 0,
+%if %%lemon_user_db == "AD"
+ "ADPwdExpireWarning": %%llADPasswordExpireWarn,
+ "ADPwdMaxAge": %%llADPasswordMaxAge,
+%end if
"CAS_authnLevel": 1,
"CAS_pgtFile": "/tmp/pgt.txt",
"CAS_proxiedServices": {},