Fix file reading in myldapd.