By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,989 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,989 IT Pros & Developers. It's quick & easy.

How to log into a domain programmatically

P: n/a
I have a client application outside of a domain developed in VB.NET.
If I want to see a shared folder from that domain into a browser I am just
typing something like:
\\10.1.1.1\FolderSharedName
At that moment it will be opened a login that asks me to log into that
domain and if I am authenticated I can see that folder content (I already
have all permissions set).
Now my problem is if there is any way I can do the same thing within VB
code. The System.IO does not give me any possibility to authenticate into a
domain. In other words, is there a way to programmatically authenticate into
a domain in order to be able to read files.

Thanks in advance,

Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi,

Here is a link to a ftp class for vb.net

http://support.microsoft.com/default...b;en-us;832679

Ken
------------------
"Adrian" <ab*****@noemail.nospam> wrote in message
news:B1**********************************@microsof t.com...
I have a client application outside of a domain developed in VB.NET.
If I want to see a shared folder from that domain into a browser I am just
typing something like:
\\10.1.1.1\FolderSharedName
At that moment it will be opened a login that asks me to log into that
domain and if I am authenticated I can see that folder content (I already
have all permissions set).
Now my problem is if there is any way I can do the same thing within VB
code. The System.IO does not give me any possibility to authenticate into a
domain. In other words, is there a way to programmatically authenticate into
a domain in order to be able to read files.

Thanks in advance,
Nov 21 '05 #2

P: n/a
Thanks for your input,

but what I need is to read a file from a regular shared folder (on NTFS
system) not from a FTP site. This is because the FTP security is too low at
this moment.
"Ken Tucker [MVP]" wrote:
Hi,

Here is a link to a ftp class for vb.net

http://support.microsoft.com/default...b;en-us;832679

Ken
------------------
"Adrian" <ab*****@noemail.nospam> wrote in message
news:B1**********************************@microsof t.com...
I have a client application outside of a domain developed in VB.NET.
If I want to see a shared folder from that domain into a browser I am just
typing something like:
\\10.1.1.1\FolderSharedName
At that moment it will be opened a login that asks me to log into that
domain and if I am authenticated I can see that folder content (I already
have all permissions set).
Now my problem is if there is any way I can do the same thing within VB
code. The System.IO does not give me any possibility to authenticate into a
domain. In other words, is there a way to programmatically authenticate into
a domain in order to be able to read files.

Thanks in advance,

Nov 21 '05 #3

P: n/a
Hi,

Have you tried impersonation?

http://www.dotnet247.com/247referenc...28/144136.aspx

Ken
-----------------------
"Adrian" <ab*****@noemail.nospam> wrote in message
news:22**********************************@microsof t.com...
Thanks for your input,

but what I need is to read a file from a regular shared folder (on NTFS
system) not from a FTP site. This is because the FTP security is too low at
this moment.
"Ken Tucker [MVP]" wrote:
Hi,

Here is a link to a ftp class for vb.net

http://support.microsoft.com/default...b;en-us;832679

Ken
------------------
"Adrian" <ab*****@noemail.nospam> wrote in message
news:B1**********************************@microsof t.com...
I have a client application outside of a domain developed in VB.NET.
If I want to see a shared folder from that domain into a browser I am just
typing something like:
\\10.1.1.1\FolderSharedName
At that moment it will be opened a login that asks me to log into that
domain and if I am authenticated I can see that folder content (I already
have all permissions set).
Now my problem is if there is any way I can do the same thing within VB
code. The System.IO does not give me any possibility to authenticate into
a
domain. In other words, is there a way to programmatically authenticate
into
a domain in order to be able to read files.

Thanks in advance,

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.