On Apr 15, 2020, at 2:29 AM, luckydog xf <luckydogxf@gmail.com> wrote:
I added a dictionary named krbpasswdexpire in /etc/raddb/dictionary.
And update /etc/raddb/mod-enabled/ldap
control:krbpasswdexpire += "%{date:krbPasswordExpiration}"
That don't work. The "krbPasswordExpiration" string is NOT something which is available to the dynamic string expansions. You must do this: edit raddb/dictionary Add krbpasswdexpireString as a "string" attribute. Add a krbpasswdexpireDate as a "date" attribute update /etc/raddb/mod-enabled/ldap control:krbpasswdexpireString += krbPasswordExpiration Which assigns the "2020...Z" string to the krbpasswdexpireString attribute. Then after the LDAP module has run, parse the date: update control { krbpasswdexpireDate := %{date:&control: krbpasswdexpireString}" } That should work. Alan DeKok.