diff options
Diffstat (limited to 'source4/lib/ldb-samba')
-rw-r--r-- | source4/lib/ldb-samba/ldb_ildap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb-samba/ldb_ildap.c b/source4/lib/ldb-samba/ldb_ildap.c index e2176d65d3..3c28690bd6 100644 --- a/source4/lib/ldb-samba/ldb_ildap.c +++ b/source4/lib/ldb-samba/ldb_ildap.c @@ -633,7 +633,7 @@ static int ildb_rename(struct ildb_context *ac) if ((rdn_name != NULL) && (rdn_val != NULL)) { msg->r.ModifyDNRequest.newrdn = talloc_asprintf(msg, "%s=%s", rdn_name, - ldb_dn_escape_value(msg, *rdn_val)); + rdn_val->length > 0 ? ldb_dn_escape_value(msg, *rdn_val) : ""); } else { msg->r.ModifyDNRequest.newrdn = talloc_strdup(msg, ""); } |