Bug 12602 - ID mapping validation: testparm reports no error when upper end of range is lower then the start
ID mapping validation: testparm reports no error when upper end of range is l...
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools
4.6.0rc3
All All
: P5 normal
: ---
Assigned To: Andreas Schneider
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-26 11:50 UTC by Marc Muehlfeld
Modified: 2017-02-26 11:52 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Muehlfeld 2017-02-26 11:50:15 UTC
Samba 4.6 verifies the ID mapping configuration. However, neither testparm reports an incorrect configuration, nor Winbindd fails to start if the upper end of the range is lower than the start. For example, the following configuration works

   idmap config *:backend = tdb
   idmap config *:range = 10001-15000

   idmap config SAMDOM:backend = ad
   idmap config SAMDOM:schema_mode = rfc2307
   idmap config SAMDOM:range = 20000-10000

I think we should include this test, because the user might forgot to add a trailing "0" and accidentally wrote 10000 instead of 100000, such as in the previous example.