RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1316899 - idmap_hash module works incorrectly when used with other backend modules
Summary: idmap_hash module works incorrectly when used with other backend modules
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: samba
Version: 7.2
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Andreas Schneider
QA Contact: Robin Hack
Marc Muehlfeld
URL:
Whiteboard:
Depends On:
Blocks: 1350759
TreeView+ depends on / blocked
 
Reported: 2016-03-11 12:31 UTC by Dmitry Zhukovski
Modified: 2019-11-14 07:35 UTC (History)
9 users (show)

Fixed In Version: samba-4.4.4-1.el7
Doc Type: Bug Fix
Doc Text:
The "idmap_hash" module now works correctly when used with other modules Previously, the "idmap_hash" module worked incorrectly when it was used together with other modules. As a consequence, user and group IDs were not mapped properly. A patch has been applied to skip already configured modules. Now, the hash module can be used as the default idmap configuration back end and IDs are resolved correctly.
Clone Of:
: 1350759 (view as bug list)
Environment:
Last Closed: 2016-11-04 06:59:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2468 0 normal SHIPPED_LIVE samba bug fix and enhancement update 2016-11-03 14:06:51 UTC
Samba Project 11786 0 None None None 2016-03-11 12:49:33 UTC

Description Dmitry Zhukovski 2016-03-11 12:31:33 UTC
Description of problem:
idmap_hash module works incorrectly when used with other backend modules

Version-Release number of selected component (if applicable):
samba 4.2

How reproducible:

Mapping is configured as 
        idmap config * : range = 100000-2139999999
        idmap config * : backend = hash
        idmap config DOM002 : range = 2140000000-4290000000
        idmap config DOM002 : backend = rid

Steps to Reproduce:
1. # wbinfo -i dom001+user1 <---- dom001
dom001+user1:*:1650596368:2140000513:user1:/home/user1:/bin/ksh
# wbinfo --uid-to-sid=1650596368
S-1-5-21-126432666-1270913926-3679153413-137744
# wbinfo --sid-to-name S-1-5-21-126432666-1270913926-3679153413-137744
DOM002+user1 1  <--- dom002
2.
3.

Actual results:


Expected results:
DOM002+user1 gets id from 214 range not below

Additional info:

Comment 2 Sumit Bose 2016-03-22 10:05:19 UTC
Changing component, there is no samba4 in RHEL7 anymore only samba

Comment 11 Andreas Schneider 2016-08-03 13:50:51 UTC
In the global section add:

        idmap config * : range = 10000-20000
        idmap config * : backend = hash
        idmap config YOURDOMAIN : range = 30000-40000
        idmap config YOURDOMAIN : backend = rid

If you now get a unix ID for YOURDOMAIN, it should be from the range 30000-40000 but before fixing the issue it was in the range 10000-20000.

wbinfo -i YOURDOMAIN+user1

Comment 19 errata-xmlrpc 2016-11-04 06:59:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2468.html


Note You need to log in before you can comment on or make changes to this bug.