BackupPC-users

[BackupPC-users] SmbClient for Workgroup and Domain authentication

2012-07-09 07:49:08
Subject: [BackupPC-users] SmbClient for Workgroup and Domain authentication
From: "Bryan Keadle (.net)" <bkeadle AT keadle DOT net>
To: backuppc-users <BackupPC-users AT lists.sourceforge DOT net>
Date: Mon, 9 Jul 2012 06:47:18 -0500
I'm in an environment where some workstation may be in the domain, others not.  However, either way, we'll have a "backuppc" user account for connecting to the machine for smb backup.

Instead of having to choose one or the other username (backuppc vs. Domain/backuppc) and having to do a client override for the other, I was hoping to be able to create/define a wrapper script such that it will attempt connection using the domain credentials:

$smbClientPath \\$host\$shareName $I_option -U Domain/backuppc

and if that fails, try connecting with the local user account

$smbClientPath \\$host\$shareName $I_option -U backuppc

Do any of you creative geniuses know how I can make that happen?


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
<Prev in Thread] Current Thread [Next in Thread>