file access with different user name - example samba

Jul 22 2005 3:21 AM

hello all!

i´ve the following problem: my .net c# windows service on win2003 runs with an local admin user.
this service has to connect to samba shares. this samba server isn´t in the same domain, the
global-security entry in smb.conf  is set to "user", which means, that every request is authenticated against the
samba-local smbpasswd file.  

is is possible to programmatically define a user/password for each file access in .net? i know a workaround:  
run the service with an user which exists in the smbpasswd file. but maybe i have
to access multiple shares and each share needs an special user account in future.

thanks for each answer!!