[PATCH] Samba 4 fix for bugzilla #4958

Andrew Kroeger andrew at sprocks.gotdns.com
Sun Sep 16 22:11:31 GMT 2007

The attached patch fix the error when a rename only changes case.  The
error occurrs because ltdb_rename() calls ltdb_add_internal() and then
ltdb_delete_internal() to accomplish the rename.  When the rename only
changes case, the ltdb_add_internal() call fails because the DN already

The attached patch compares the old and new DNs, and if they are the
same it calls ltdb_modify_internal() with the flags set to
LDB_FLAG_MOD_REPLACE.  If the DNs differ, the original
ltdb_add_internal() / ltdb_delete_internal() code is used.

Andrew Kroeger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rename_same_case.patch
Type: text/x-patch
Size: 1249 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070916/74af6270/rename_same_case.bin

More information about the samba-technical mailing list