diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-02-28 08:38:53 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-02-28 08:38:53 +1100 |
commit | ba94c12bc4a1ab8cfd6270ea69d1aef3d925ee29 (patch) | |
tree | 860d763953ca891c17f013d54f093dd189baf4e4 /source4 | |
parent | 0b2a7625190c2ce3579415586bb022c79e0d9283 (diff) | |
download | samba-ba94c12bc4a1ab8cfd6270ea69d1aef3d925ee29.tar.gz samba-ba94c12bc4a1ab8cfd6270ea69d1aef3d925ee29.tar.bz2 samba-ba94c12bc4a1ab8cfd6270ea69d1aef3d925ee29.zip |
Fix rdn_name errors.
Return the correct error when the DN is mismatched with it's RDN
attribute (now matches AD).
Andrew Bartlett
(This used to be commit bf7166e785e5c5d52dbb0c12e5e4206d74e72f4e)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/modules/rdn_name.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/modules/rdn_name.c b/source4/lib/ldb/modules/rdn_name.c index c4de8e8da8..65c044c0f4 100644 --- a/source4/lib/ldb/modules/rdn_name.c +++ b/source4/lib/ldb/modules/rdn_name.c @@ -119,7 +119,8 @@ static int rdn_name_add(struct ldb_module *module, struct ldb_request *req) "RDN mismatch on %s: %s (%s)", ldb_dn_get_linearized(msg->dn), rdn_name, rdn_val.data); talloc_free(down_req); - return LDB_ERR_OPERATIONS_ERROR; + /* Match AD's error here */ + return LDB_ERR_INVALID_DN_SYNTAX; } } |