Azure/kubernetes-volume-drivers

Unable to use domain credentials

bbgobie opened this issue · 1 comments

What happened:
Trying to mount a SMB share with domain credentials.

Issue seems to be with entering the user

tried these formats with the following errors

domain\user
Mon Aug 26 18:04:52 UTC 2019 ERROR: { "status": "Failure", "message": "Failed to mount device at /var/lib/kubelet/pods/f4503852-c82b-11e9-a8e9-f6ed739c7faf/volumes/microsoft.com~smb/test, user:domain\user, //share_location/folder, error log:Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)" }

domain\user
Mon Aug 26 18:00:02 UTC 2019 ERROR: { "status": "Failure", "message": "Failed to mount device at /var/lib/kubelet/pods/fd35abc0-c82a-11e9-a8e9-f6ed739c7faf/volumes/microsoft.com~smb/test, user:domain\user, //share_location/folder, error log:Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)" }

user@domain.local
Mon Aug 26 18:06:34 UTC 2019 ERROR: { "status": "Failure", "message": "Failed to mount device at /var/lib/kubelet/pods/3798d463-c82c-11e9-a8e9-f6ed739c7faf/volumes/microsoft.com~smb/test, user:user@domain.local, //share_location/folder, error log:Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)"
What you expected to happen:
Mount successfully mounted
How to reproduce it:

  1. Create SMB share with domain credentials
  2. kubectl -n mike-test create secret generic smbcreds --from-literal username='domain\user' --from-literal password='pass' --type="microsoft.com/smb"
  3. Standard Nginx sample

Create an SMB share with Domain Credential access

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version):
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

Closing as I think the issue might be a network one instead.
So the ticket and the script that adds domain if its in smbcreds.

Tried mounting it manually and was unable to.