see FIXME comments added in https://github.com/hakasapl/phpopenldaper/commit/0900483bd938fc0ad6c68a14ac355e5d188dc726