s4-ldb: better to test for valid arguments in ldb library than commandline
commit7ea485a1d20c1bf41926ebb4b0ae8f37a2d909f7
authorAndrew Tridgell <tridge@samba.org>
Fri, 27 Nov 2009 03:18:39 +0000 (27 14:18 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 27 Nov 2009 05:05:06 +0000 (27 16:05 +1100)
treeefd3f120d51f52cd4f7af9440660acfe19b32702
parentd3d7ca8eeab13c00705188102855525a21dd5345
s4-ldb: better to test for valid arguments in ldb library than commandline

We were testing for valid DNs in ldbrename in the command line
tool. This hid a bug in the ldb library where we caught a bad DN in
the objectclass module rather than in the main ldb code. It is better
to do validation of the DNs passed on the command line in the library
code, as this gives us more consistent error handling between the
programming APIs for ldb and the command line.
source4/lib/ldb/common/ldb.c
source4/lib/ldb/tools/ldbrename.c