due to it's current implementation (and pstring limitation), ldapsam does not handle more then 15 password history entries. (tdbsam and NT do). Any "password history"-account policy larger then 15 is silently reduced to 15.
Created attachment 1905 [details] allow 24 password history entries in ldapsam (same limit as Windows)
Looks good to me - please apply Gunther ! Jeremy.
Fixed in subversion.