No need for all the hacky LDAP stuff, go write to ldapadd -f file -x (hopefully)