Hi Cristian, Thanks, I've pushed your patch to master. I also added a small change in the comment to ldb_msg_add_dn() to add a warning about its usage. It doesn't copy the string from ldb_dn_get_linearized(), so if you were to later free the dn then the message would become corrupt. That is OK, as long as its documented. Cheers, Tridge