Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
In some kvm machines, can't mount cifs with kerberos keytab method. The client print the error:
[root@hp-dl380pg8-10 krb5]# mount.cifs //ibm-x3650m4-01-vm-06.lab.eng.bos.redhat.com/cifs /mnt/testarea/client -o sec=krb5
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[root@hp-dl380pg8-10 krb5]# dmesg
[1321886.875290] CIFS VFS: Send error in SessSetup = -22
[1321886.900798] CIFS VFS: cifs_mount failed w/return code = -22
The server side in /var/log/message is:
Sep 23 04:19:29 ibm-x3650m4-01-vm-06 smbd[12082]: [2016/09/23 04:19:29.100859, 0] ../source3/librpc/crypto/gse.c:393(gse_init_server)
Sep 23 04:19:29 ibm-x3650m4-01-vm-06 smbd[12082]: gss_krb5_import_cred failed with [Unspecified GSS failure. Minor code may provide more information: Keytab MEMORY:cifs_srv_keytab is nonexistent or empty]
The reproduced server is ibm-x3650m4-01-vm-06.lab.eng.bos.redhat.com.
Version-Release number of selected component (if applicable):
samba-4.4.4-9.el7.x86_64
kernel-3.10.0-506.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1.smb.conf
[global]
workgroup = RHTS
realm = RHQE.COM
security = ads
server signing = auto
kerberos method = system keytab
[cifs]
path = /mnt/testarea/server
writeable = yes
2.mount.cifs //$SERVER/cifs /mnt/testarea/client -o sec=krb5
3.
Actual results:
mount cifs return failed
Expected results:
mount cifs return successfully
Additional info:
Not sure why it happens on there vm machines.
But nfs doesn't have this issue.
Comment 8Andreas Schneider
2017-08-14 15:21:29 UTC
According to comment #5 this seems to be a configuration issue. We do not have the krb5.conf and don't know the process how the machine was joined. However it sounds like that the wrong REALM was used during join so we have a keytab with invalid information.
You can recreate the keytab with 'net ads keytab create'.
If you have a reproducer you can describe in details please feel free to reopen.
Description of problem: In some kvm machines, can't mount cifs with kerberos keytab method. The client print the error: [root@hp-dl380pg8-10 krb5]# mount.cifs //ibm-x3650m4-01-vm-06.lab.eng.bos.redhat.com/cifs /mnt/testarea/client -o sec=krb5 mount error(22): Invalid argument Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) [root@hp-dl380pg8-10 krb5]# dmesg [1321886.875290] CIFS VFS: Send error in SessSetup = -22 [1321886.900798] CIFS VFS: cifs_mount failed w/return code = -22 The server side in /var/log/message is: Sep 23 04:19:29 ibm-x3650m4-01-vm-06 smbd[12082]: [2016/09/23 04:19:29.100859, 0] ../source3/librpc/crypto/gse.c:393(gse_init_server) Sep 23 04:19:29 ibm-x3650m4-01-vm-06 smbd[12082]: gss_krb5_import_cred failed with [Unspecified GSS failure. Minor code may provide more information: Keytab MEMORY:cifs_srv_keytab is nonexistent or empty] The reproduced server is ibm-x3650m4-01-vm-06.lab.eng.bos.redhat.com. Version-Release number of selected component (if applicable): samba-4.4.4-9.el7.x86_64 kernel-3.10.0-506.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.smb.conf [global] workgroup = RHTS realm = RHQE.COM security = ads server signing = auto kerberos method = system keytab [cifs] path = /mnt/testarea/server writeable = yes 2.mount.cifs //$SERVER/cifs /mnt/testarea/client -o sec=krb5 3. Actual results: mount cifs return failed Expected results: mount cifs return successfully Additional info: Not sure why it happens on there vm machines. But nfs doesn't have this issue.