[PATCH] fix output of new "net idmap get ranges" if id mappings are present

Michael Adam obnox at samba.org
Mon Oct 21 07:45:45 MDT 2013


Hi,

the new "net idmap get ranges" command did not take into account
the case of a mapping of an ID mapping (as opposed to a range
mapping), e.g. for well known sids. The problem is that for the
sid->id direction of the mapping the key looks the same as the
the key for a domsid->range mapping.

The result were "ranges" printed for the id mappings:

RANGE 541346119: S-1-5-10

This patch fixes this by implementing an appropriate filter.

Review and push appreciated.

Thanks - Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-idmap_autorid-fix-traversal-of-ranges-to-correctly-e.patch
Type: text/x-diff
Size: 1350 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20131021/0bec5bf4/attachment.patch>
-------------- 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/20131021/0bec5bf4/attachment.pgp>


More information about the samba-technical mailing list