473,385 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to log into a domain programmatically

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
3 1997
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: steve.anon | last post by:
Hi - Any help or pointer on this would be greatly appreciated. I'm working on something similar to blogger.com. Users sign up and they get their own webpage, with a domain name of...
1
by: steve.anon | last post by:
Hi - Any help or pointer on this would be greatly appreciated. I'm working on something similar to blogger.com. Users sign up and they get their own webpage, with a domain name of...
5
by: perspolis | last post by:
Hi every body I want to know that it's possible to create a sub domain in my domain with c#? I own a site and want to create sub domain programmatically.. thx in advance
4
by: Arjen | last post by:
Hello, How can I get the current host/domain name? I my website is hosted at this http://www.mydomain.com or http://mysub.mydomain.com/dir/ then I want to get this: http://www.mydomain.com or...
5
by: Dany C. | last post by:
We have install a valid SSL certificate issued to www.mycompany.com on our web server running IIS 6.0 / win2003 SP1. Then we have created a sub domain pointing to the same server for our web...
0
by: Kooki | last post by:
Hi, I am developing a small programme to add ACTIVE DIRECTORY users to another server. everything works fine .. I get the users from AD using LDAP but while adding users I need to get the user...
16
by: Terry Burns | last post by:
Hi Guys, I know this is a bit off topic, but im not having any luck googling it. I want to know where I can go programatically to get a list of all registered domains on the internet. ...
1
by: Sergey via DotNetMonster.com | last post by:
Is it possible to programmatically create a sub-domain in the MS DNS server? -- Message posted via http://www.dotnetmonster.com
3
by: Anonymous | last post by:
The C# code below throws System.Runtime.InteropServices.COMException (0x80070005) when accessing an IIS-server on a different domain/computer where the current user doesn't have any permissions...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.