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 08:49:22 +0000 (10:49 +0200)
commit8b341409547d26c2453c5a8c674636045ce3234e
tree904fe4b44e60c7a7a5066e1146a69abfbd1ff11f
parent94cc134acfa54920ad6b95d5d1bb346c7f559c78
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>
source3/utils/net_idmap.c
source3/wscript_build