Skip to main content
NetApp Knowledge Base

Receiving required key not available error when mounting cifs share using Kerberos

Views:
2,479
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:
4/23/2024, 5:55:38 PM

Applies to

  • ONTAP 9 and later
  • CIFS mount on Linux clients

Issue

  • When mounting a CIFS share using kerberos authentication from a Unix client, the mount fails with a "Required key not available" error.

Example:

[root@client ~]# mount -t cifs -o username=user@domain.com,password='xxxx',sec=krb5,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 //cifserver/share /mnt
mount error(126): Required key not available
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

 

  • When mounting cifs share  without using sec=krb5 option(where password needs to typed manually for username), scripts folder is accessible.
  • When mounting cifs share using with sec=krb5 option(where password is not typed manually), scripts folder is not accessible.

Error seen:
abdcd@xyz:~$ ls -la /mnt/test/dev-krb/scripts
ls: cannot access '/mnt/test/dev-krb/scripts': Required key not available

symlink details
Vserver   UNIX Path CIFS Share CIFS Path Remote NetBIOS Server Name Local or Wide Symlink Home Directory
netapp /h/abc/ abc  /  netapp  widelink  falseCollect traces while mounting with and without sec=krb5 for review.

 

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.