Hello,
I tried the solution given by J. A. Calvo on a brand new installation of eBox release 1.2, and it solves the problem of losing PDC password length age and history setting ( adding the return into the file SambaLdapUser.pm ).
Afther the file was modified, the setting are saved and stay that way even by a reboot of the server.
Best regards,
Ian