taken from limux-gosa git commit f0b8393b3cf33b3d0e5598a1c04871436da1e5ce
(from redmine: issue id 1066, created on 2012-06-13, closed on 2012-11-16)