[PATCHSET] adding idmap-autorid functionality to net

Michael Adam obnox at samba.org
Mon Sep 30 01:07:48 MDT 2013


Any comments? Review? :-)

On 2013-09-24 at 07:57 +0200, Michael Adam wrote:
> Hi,
> 
> attached find a bigger patchset that refactors db handling
> code out of the autorid idmap backend (s3) and creates
> a couple of new subcommands to "net idmap" to operate on
> the idmap autorid database.
> 
> This work was started by Atul Kulkarni <atul.kulkarni at in.ibm.com>
> and continued by me, partly pair-programming with him.
> 
> I was thinking about a proper CLI for net idmap.
> First I considered a "net idmap autorid" command, but I have
> abandoned this again and came up with this:
> 
> =========================
> old cli:
> =========================
> 
> net idmap dump
> net idmap restore
> net idmap check
> net idmap setmap [id-mapping - not implemented]
> net idmap delete [id-mapping]
> net idmap secret
> 
> =========================
> new cli:
> =========================
> 
> net idmap dump  [tdb,tdb2,autorid]
> net idmap restore
> net idmap check
> net idmap secret (==> now also "net idmap set secret")
> 
> net idmap get
> [net idmap get mapping (not implemented yet)]
> net idmap get range
> net idmap get ranges
> net idmap get config
> 
> net idmap set
> net idmap set mapping (not implemented yet)
> net idmap set range
> net idmap set config
> net idmap set secret (was "net idmap secret")
> 
> net idmap delete
> net idmap delete mapping
> net idmap delete range
> net idmap delete ranges
> [net idmap delete config (optional, not implemented yet)]
> 
> ================
> 
> I think this is pretty natural to use.
> The "range|ranges|config" subcommands are for the autorid
> backend, the "mapping" subcommand is for tdb/tdb2.
> 
> The manpage update still needs to be finished.
> But the code is complete and the patchset clean (imho).
> 
> The code can also be grabbed from my repository:
> 
> http://gitweb.samba.org/?p=obnox/samba/samba-obnox.git;a=shortlog;h=refs/heads/master-idmap-autorido
> 
> Please let me know what you think/review/comment...
> 
> Thanks - Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 215 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130930/8db15f59/attachment.pgp>


More information about the samba-technical mailing list