I have openLDAP with ldapmyadmin . If i create a user through ldapmyadmin i get the duplicate error but when i create him with my java code code it goes trough just fine .