<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/lib/ldb/tools/cmdline.h, branch talloc-2.3.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/'/>
<entry>
<title>ldb: ensure that ldbedit operates like ldbmodify: set DONT_CREATE_DB</title>
<updated>2020-03-02T02:47:30+00:00</updated>
<author>
<name>Andrew Bartlett</name>
<email>abartlet@samba.org</email>
</author>
<published>2020-02-29T03:03:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=b8aa05525e276fb315e21f78d468e48fa286e6c3'/>
<id>b8aa05525e276fb315e21f78d468e48fa286e6c3</id>
<content type='text'>
ldb* tools, when passed a raw filename assume tdb://

By default, ldb_tdb will call tdb with O_CREAT.

TDB, when passed O_CREAT and a not-tdb file, will wipe the file.

This means that if you run ldbedit &lt;path to mdb-format-ldb file&gt; the file
will be wiped, which is unexpected.  I noticed this while trying to
corrupt a sam.ldb backend file (for testing), but instead I wiped it!

Ideally tdb would not do that, but the behaviour has been this way for
decades.  Ideally ldb would have had a "create db" command, but this
has been the job of ldbadd for over a decade.

So this just blunts the knife for ldbedit.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14302

Signed-off-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
Reviewed-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ldb* tools, when passed a raw filename assume tdb://

By default, ldb_tdb will call tdb with O_CREAT.

TDB, when passed O_CREAT and a not-tdb file, will wipe the file.

This means that if you run ldbedit &lt;path to mdb-format-ldb file&gt; the file
will be wiped, which is unexpected.  I noticed this while trying to
corrupt a sam.ldb backend file (for testing), but instead I wiped it!

Ideally tdb would not do that, but the behaviour has been this way for
decades.  Ideally ldb would have had a "create db" command, but this
has been the job of ldbadd for over a decade.

So this just blunts the knife for ldbedit.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14302

Signed-off-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
Reviewed-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ldb/tools: only use LDB_FLG_SHOW_BINARY for 'ldbsearch'</title>
<updated>2017-02-24T02:59:01+00:00</updated>
<author>
<name>Stefan Metzmacher</name>
<email>metze@samba.org</email>
</author>
<published>2017-01-19T03:29:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=a2daa664ccd284b8894e67ed307a0bd761eb82db'/>
<id>a2daa664ccd284b8894e67ed307a0bd761eb82db</id>
<content type='text'>
--show-binary is only useful for ldbseach in all other cases
it will destroy data.

Signed-off-by: Stefan Metzmacher &lt;metze@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;

Autobuild-User(master): Andrew Bartlett &lt;abartlet@samba.org&gt;
Autobuild-Date(master): Fri Feb 24 03:59:01 CET 2017 on sn-devel-144
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
--show-binary is only useful for ldbseach in all other cases
it will destroy data.

Signed-off-by: Stefan Metzmacher &lt;metze@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;

Autobuild-User(master): Andrew Bartlett &lt;abartlet@samba.org&gt;
Autobuild-Date(master): Fri Feb 24 03:59:01 CET 2017 on sn-devel-144
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "ldb: Permit desactivation of autocomit for every ldb_xxx_ctrl function"</title>
<updated>2012-04-10T06:40:05+00:00</updated>
<author>
<name>Andrew Bartlett</name>
<email>abartlet@samba.org</email>
</author>
<published>2012-04-04T02:51:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=57341c0f29911d09e511c840386a35290febb9f9'/>
<id>57341c0f29911d09e511c840386a35290febb9f9</id>
<content type='text'>
This reverts commit 40a4aea8918c2637703af03383f440d068820e48.

Autocommit is important, as otherwise an ldb module could error out
during an operation, and leave an corrupt database.

Andrew Bartlett
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 40a4aea8918c2637703af03383f440d068820e48.

Autocommit is important, as otherwise an ldb module could error out
during an operation, and leave an corrupt database.

Andrew Bartlett
</pre>
</div>
</content>
</entry>
<entry>
<title>ldb: Permit desactivation of autocomit for every ldb_xxx_ctrl function</title>
<updated>2012-03-30T09:59:09+00:00</updated>
<author>
<name>Matthieu Patou</name>
<email>mat@matws.net</email>
</author>
<published>2012-03-30T08:24:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=40a4aea8918c2637703af03383f440d068820e48'/>
<id>40a4aea8918c2637703af03383f440d068820e48</id>
<content type='text'>
Autobuild-User: Matthieu Patou &lt;mat@samba.org&gt;
Autobuild-Date: Fri Mar 30 11:59:09 CEST 2012 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Autobuild-User: Matthieu Patou &lt;mat@samba.org&gt;
Autobuild-Date: Fri Mar 30 11:59:09 CEST 2012 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>ldb: make ldb a top level library for Samba 4.0</title>
<updated>2011-07-05T07:24:47+00:00</updated>
<author>
<name>Andrew Bartlett</name>
<email>abartlet@samba.org</email>
</author>
<published>2011-07-05T00:01:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=8420a36dc7fe72fb665e065b8673fa44ff1bbf21'/>
<id>8420a36dc7fe72fb665e065b8673fa44ff1bbf21</id>
<content type='text'>
Signed-off-by: Andrew Tridgell &lt;tridge@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Andrew Tridgell &lt;tridge@samba.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
