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 1867912 - realm command to use option like dnshostname=fqdn
Summary: realm command to use option like dnshostname=fqdn
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: realmd
Version: 8.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Sumit Bose
QA Contact: sssd-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-11 07:57 UTC by Sumit Bose
Modified: 2020-11-23 13:27 UTC (History)
1 user (show)

Fixed In Version: realmd-0.16.3-19.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 02:17:20 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4601 0 None None None 2020-11-04 02:17:22 UTC

Comment 3 shridhar 2020-08-24 11:08:05 UTC
Tested with following details:
~]# rpm -q realmd
realmd-0.16.3-19.el8.x86_64

[root@vm-idm-027 ~]# hostname
vm-idm-027.lab.eng.pnq.redhat.com
[root@vm-idm-027 ~]# 

 ~]# realm join -vvv --membership-software=samba sssd2012r2tree.com
 * Resolving: _ldap._tcp.sssd2012r2tree.com
 * Performing LDAP DSE lookup on: 10.65.207.115
 * Successfully discovered: sssd2012r2tree.com
Password for Administrator: 
 * Required files: /usr/sbin/oddjobd, /usr/libexec/oddjob/mkhomedir, /usr/sbin/sssd, /usr/bin/net
 * LANG=C LOGNAME=root /usr/bin/net -s /var/cache/realmd/realmd-smb-conf.W931P0 -U Administrator -k ads join sssd2012r2tree.com
Enter Administrator's password:
Using short domain name -- SSSD2012R2TREE
Joined 'VM-IDM-027' to dns domain 'sssd2012r2tree.com'
DNS Update for vm-idm-027.lab.eng.pnq.redhat.com failed: ERROR_DNS_GSS_ERROR
DNS update failed: NT_STATUS_UNSUCCESSFUL
 * LANG=C LOGNAME=root /usr/bin/net -s /var/cache/realmd/realmd-smb-conf.W931P0 -U Administrator ads keytab create
Enter Administrator's password:
 * /usr/bin/systemctl enable sssd.service
Created symlink /etc/systemd/system/multi-user.target.wants/sssd.service → /usr/lib/systemd/system/sssd.service.
 * /usr/bin/systemctl restart sssd.service
 * /usr/bin/sh -c /usr/bin/authselect select sssd with-mkhomedir --force && /usr/bin/systemctl enable oddjobd.service && /usr/bin/systemctl start oddjobd.service
Backup stored at /var/lib/authselect/backups/2020-08-24-10-54-17.IKyrN2
Profile "sssd" was selected.
The following nsswitch maps are overwritten by the profile:
- passwd
- group
- netgroup
- automount
- services

Make sure that SSSD service is configured and enabled. See SSSD documentation for more information.
 
- with-mkhomedir is selected, make sure pam_oddjob_mkhomedir module
  is present and oddjobd service is enabled and active
  - systemctl enable --now oddjobd.service

 * Successfully enrolled machine in realm
[root@vm-idm-027 ~]# klist -kt
Keytab name: FILE:/etc/krb5.keytab
KVNO Timestamp           Principal
---- ------------------- ------------------------------------------------------
   1 08/24/2020 16:24:09 restrictedkrbhost/vm-idm-027.sssd2012r2tree.com
   1 08/24/2020 16:24:10 restrictedkrbhost/VM-IDM-027
   1 08/24/2020 16:24:09 restrictedkrbhost/vm-idm-027.sssd2012r2tree.com
   1 08/24/2020 16:24:10 restrictedkrbhost/VM-IDM-027
   1 08/24/2020 16:24:09 restrictedkrbhost/vm-idm-027.sssd2012r2tree.com
   1 08/24/2020 16:24:10 restrictedkrbhost/VM-IDM-027
   1 08/24/2020 16:24:10 restrictedkrbhost/vm-idm-027.lab.eng.pnq.redhat.com
   1 08/24/2020 16:24:10 restrictedkrbhost/vm-idm-027.lab.eng.pnq.redhat.com
   1 08/24/2020 16:24:10 restrictedkrbhost/vm-idm-027.lab.eng.pnq.redhat.com
   1 08/24/2020 16:24:10 host/vm-idm-027.sssd2012r2tree.com
   1 08/24/2020 16:24:10 host/VM-IDM-027
   1 08/24/2020 16:24:10 host/vm-idm-027.sssd2012r2tree.com
   1 08/24/2020 16:24:10 host/VM-IDM-027
   1 08/24/2020 16:24:10 host/vm-idm-027.sssd2012r2tree.com
   1 08/24/2020 16:24:10 host/VM-IDM-027
   1 08/24/2020 16:24:10 host/vm-idm-027.lab.eng.pnq.redhat.com
   1 08/24/2020 16:24:10 host/vm-idm-027.lab.eng.pnq.redhat.com
   1 08/24/2020 16:24:10 host/vm-idm-027.lab.eng.pnq.redhat.com                 <<---------<<<<
   1 08/24/2020 16:24:10 VM-IDM-027$@SSSD2012R2TREE.COM
   1 08/24/2020 16:24:11 VM-IDM-027$@SSSD2012R2TREE.COM
   1 08/24/2020 16:24:11 VM-IDM-027$@SSSD2012R2TREE.COM



service principals like host one in this case has been created with it's domainname. 
Marking verified.

Comment 6 errata-xmlrpc 2020-11-04 02:17:20 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 (realmd bug fix and enhancement update), 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://access.redhat.com/errata/RHBA-2020:4601


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