[pap] Found unknown header {{MD4}}: Not doing anything

Phil Mayers p.mayers at imperial.ac.uk
Tue Mar 13 11:42:57 CET 2012


On 13/03/12 09:50, Mohamed Lrhazi wrote:
> Hello,
>
> My LDAP server has the passwords stored in MD4 encoded format, which I
> am suspecting is the same as NT format...
>
> Is there a way to tell freeradius to treat {MD4} as it it was {NT} ?

You could change the source code. Or re-write the attribute:

authorize {
  ...
  ldap
  if (control:Cleartext-Password ~ /^{MD4}(.+)$/) {
    update control {
      Cleartext-Password := "{NT}%{1}"
    }
  }
  ...
}


More information about the Freeradius-Users mailing list