unitest read write file for user slapsoft
Fix variable names used by chownDirectory() in slapformat.