Bug 13033 - LDB open with LDB_FLG_RDONLY can cause the database to fail to open
Summary: LDB open with LDB_FLG_RDONLY can cause the database to fail to open
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.7.0rc5
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-14 02:49 UTC by Andrew Bartlett
Modified: 2019-06-11 21:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Bartlett 2017-09-14 02:49:19 UTC
If an LDB is opened with LDB_FLG_RDONLY tdb will refuse to grant read locks.

Additionally, if LDB is opened with LDB_FLG_RDONLY a subsequent LDB will share the same tdb, which will be opened with O_RDONLY, and so fail to accept writes.
Comment 1 Andrew Bartlett 2019-06-11 21:27:38 UTC
Fixed in Samba 4.8 by 6c28abc249f83a1083a71b2d526098d42c4f5c14