Bug 1482926

Summary: 'realm join' adds deprecated parameter to the Samba config file
Product: [Fedora] Fedora Reporter: Andreas Schneider <asn>
Component: realmdAssignee: Sumit Bose <sbose>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: jhrozek, sbose, stefw
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: realmd-0.16.3-13.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1484072 (view as bug list) Environment:
Last Closed: 2018-07-05 08:45:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1484072    

Description Andreas Schneider 2017-08-18 12:45:36 UTC
Description of problem:

The command

  realm join --client-software=winbind

creates and outdated Samba configuration. It adds the following parameters to the  [global] section of the smb.conf file:

  idmap backend = tdb
  idmap gid = 10000-2000000
  idmap uid = 10000-2000000

Those have been deprecated and replaced. Also it should use the rid backend for the domain it joined. The config should look like this:

  idmap config * : range = 1000000-1999999

  idmap config DOMAIN : backend = rid
  idmap config DOMAIN : range = 100000000-199999999

where the DOMAIN is the domain name realm joined the machine too.



This needs to be fixed in RHEL7 too!