net: add new function net_idmap_opendb_autorid()
authorAtul Kulkarni <atul.kulkarni@in.ibm.com>
Mon, 9 Sep 2013 23:19:52 +0000 (01:19 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 1 Oct 2013 22:06:31 +0000 (00:06 +0200)
commitd560cd11e4de818ff997eea52d020e360c3ef7d0
tree6b1e46e37e04d1412bfd6e59aed40fdb500076e2
parentf531c369eb65ab9c0150bb1693a1b89006254a12
net: add new function net_idmap_opendb_autorid()

This checks the backend is autorid, and opens the db if so.
If readonly == true, the DB is simply opened for reading.
If readonly == false, the DB is created if necessary and
initialized with HWMs.

Pair-Programmed-With: Michael Adam <obnox@samba.org>

Signed-off-by: Atul Kulkarni <atul.kulkarni@in.ibm.com>
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/utils/net_idmap.c
source3/wscript_build