Samba ADS and off-network share access

Hoping somebody may point me in a right direction. I’m on the opensuse 12.3, it’s a work laptop and I’ll also need to run Win7 on it, I’ll use KVM for that - what I want to do is to share some of my home folders (Docs, Downloads, etc) with the Win7 guest thru samba. I joined the windows domain (used yast) and everything works great - I can log in on and offline, the only problem I have is when I try to access samba shares (my home folders) when I’m not on the windows network - everything works when I VPN into the network, but the moment I disconnect samba can’t authenticate when I try to access shares.

Any idea what should I check?

Thanks,
art

I have never tried to have it both ways before (ADS and Workgroup) and it may not work. But you could use the workgroup method to add local users to the openSUSE PC with the password you want to use. I have a bash script, not intended to work with a Domain, but with Samba as a workgroup member.

Have a look here for the bash script:

S.A.C.T. - Samba Automated Configuration Tool - Version 1.06 - Blogs - openSUSE Forums

Thank You,

Just a follow up…
Well, not exactly what I wanted, I still don’t know how to use AD login off-network with samba, but what I did was to create a local user, change the group own on the folders I want to share with Win7 to include local user and add these lines to smb.conf

    passdb backend = smbpasswd
    encrypt passwords = yes
    auth methods = guest sam_ignoredomain winbind:ntdomain 

that lets me connect to the shares in VM (on & off the windows network) with local user and keep the ADS security, not a perfect solution, but it works…

art