help needed accessing a password protected samba shares

Started by CaveGuy, October 01, 2014, 12:54:11 PM

Previous topic - Next topic

CaveGuy

I need help accessing a password protected samba share from windows.



If I log in to the share with my username/password from explorer before starting newlisp



(directory "//server/share") works just fine

as does (open "//server/share/file ....



but when windows decides to reboot, I loose the share and things go south....



I have tried "username:password@//server/share..."

along with a bunch of other wild guesses, none have worked :(



Please any help will be appreciated, getting paged at night is getting old.
Bob the Caveguy aka Lord High Fixer.

CaveGuy

solved my problem on windows side with:



(define (login-share sharepath username password)

           (exec (string "net use " sharepath " /user:" username " " password)))



for the UNIX equivalent ... I expect I will use smbclient to do the same sort of thing.
Bob the Caveguy aka Lord High Fixer.