[Mono-osx] How to logon to Win or Mac using credentials through code?
Matt Emson
memsom at interalpha.co.uk
Thu Jan 22 11:26:11 EST 2009
d_v wrote:
> I should be more specific, besides I have not heard any ideas yet :)
>
> When I say "logon" I really mean that I am trying to copy a file over the
> network and I would like to supply the username and password and
> (domain). At this point I don't even know if a Mac requires a domain
> name...
>
> If you can point me in the right direction I would be grateful. even a
> link/bone :)
Doesn't look like there's a lot of a chance that'll work as it just a
load of P/Invokes to a Windows specific library. Does Wine implement the
library? Otherwise, what, exactly, are you trying to do? Copy a file
across a network using a specific protocol? Copy between Windows/SAMBA
shares? I would put forward that using Sockets would be simpler. Also,
using Remoting and file streams is possible, though security is still an
issue (but not tied to Win32 platform specific DLL's). A Mac does not
have a "domain" in the Windows sense of the word, at best it'll have
some kind of Windows domain emulation (or workgroup) via the SMB/CIFS
protocols implemented within it (hint, just as you can do
smb://myserver, cifs://myserver works too - not sure if they use the
same subsystem, but it works much the same in Leopard.) A "lowest common
denominator", such as a socket server, would work more successfully IMO.
M
More information about the Mono-osx
mailing list