Skip to content

Commit

Permalink
CA-195426: Add 'guest' to CIFS mount options to avoid password prompt
Browse files Browse the repository at this point in the history
Signed-off-by: Chandrika Srinivasan <chandrika.srinivasan@citrix.com>
Reviewed-by: Robert Breker <robert.breker@citrix.com>

GitHub: closes #294
  • Loading branch information
chandrikas committed Apr 22, 2016
1 parent dd3e818 commit f4136a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/ISOSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def appendCIFSMountOptions(self, mountcmd):
try:
options.append(self.getCIFSPasswordOptions())
options.append(self.getCacheOptions())
options.append('guest')
except:
util.SMlog("Exception while attempting to append mount options")
raise
Expand Down
3 changes: 2 additions & 1 deletion drivers/SMBSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def mount(self, mountpoint=None):
'sec=ntlm',
'cache=none',
'vers=3.0',
'credentials=%s' % self.credentials
'credentials=%s' % self.credentials,
'guest'
])

dom_username = self.dconf['username'].split('\\')
Expand Down

0 comments on commit f4136a2

Please sign in to comment.