473,473 Members | 1,415 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Getting users names and restricting Internet access for Users

Hi all,

How to retrieve Users Names and also restrict internet access to a specific
users using C# ?

Thanks.

Regards,
C.C.Chakkaradeep
Sep 18 '06 #1
3 2228
I'm sorry, but this question is so vague I'm not even going to attempt
to answer.

1. What type of "User Names" system are you using? Active Directory?

2. If you are using Microsoft/Active Directory you can restrict
internet access via AD, or even better, use a proxy server and block
them there.

Sounds like you are trying to re-invent the wheel. but without more
details its hard to say.

Chakkaradeep wrote:
Hi all,

How to retrieve Users Names and also restrict internet access to a specific
users using C# ?

Thanks.

Regards,
C.C.Chakkaradeep
Sep 18 '06 #2
Hi Sean,

Sorry to be not clear.

I want to retrieve the Active Directory Users in my system and list them in
my GUI.I saw System.Windows.Forms.SystemInformation.UserName where I can
retrieve the currently logged in User. I want to retrieve all Active
Directory Users in my Domain.

And regarding Internet Access, whichever Users I select through GUI, they
should be restricted from browsing.Users are already connected to Internet
via Proxy. I am writing an ISP software for my Firm, so , whichever Users
have crossed the Internet Usage Time for the day/month should be
disconnected. So, am looking for a way to handle it via program wherein the
User will be checked and restricted to the Internet.

Hope am clear.

Thanks for the reply.

Regards,
C.C.Chakkaradeep

"Sean Chambers" wrote:
I'm sorry, but this question is so vague I'm not even going to attempt
to answer.

1. What type of "User Names" system are you using? Active Directory?

2. If you are using Microsoft/Active Directory you can restrict
internet access via AD, or even better, use a proxy server and block
them there.

Sounds like you are trying to re-invent the wheel. but without more
details its hard to say.
Sep 18 '06 #3
If you are using Microsoft ISA Server for your proxy, it already does
this "timed" internet access.

To access AD information for Csharp, look at the following link:

http://msdn.microsoft.com/library/de...ryservices.asp

the classes to access AD information can be located in
System.DirectoryServices.

hope this helps!

Sean

Chakkaradeep wrote:
Hi Sean,

Sorry to be not clear.

I want to retrieve the Active Directory Users in my system and list them in
my GUI.I saw System.Windows.Forms.SystemInformation.UserName where I can
retrieve the currently logged in User. I want to retrieve all Active
Directory Users in my Domain.

And regarding Internet Access, whichever Users I select through GUI, they
should be restricted from browsing.Users are already connected to Internet
via Proxy. I am writing an ISP software for my Firm, so , whichever Users
have crossed the Internet Usage Time for the day/month should be
disconnected. So, am looking for a way to handle it via program wherein the
User will be checked and restricted to the Internet.

Hope am clear.

Thanks for the reply.

Regards,
C.C.Chakkaradeep

"Sean Chambers" wrote:
I'm sorry, but this question is so vague I'm not even going to attempt
to answer.

1. What type of "User Names" system are you using? Active Directory?

2. If you are using Microsoft/Active Directory you can restrict
internet access via AD, or even better, use a proxy server and block
them there.

Sounds like you are trying to re-invent the wheel. but without more
details its hard to say.
Sep 18 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: FAQPoster | last post by:
An HTML version of this document is available at: http://www.mvps.org/access/netiquette.htm Feeling left out? Alone? Wondering why everyone's ignoring you? Or why you're being flamed for what...
0
by: FAQPoster | last post by:
An HTML version of this document is available at: http://www.mvps.org/access/netiquette.htm Feeling left out? Alone? Wondering why everyone's ignoring you? Or why you're being flamed for what...
0
by: FAQPoster | last post by:
An HTML version of this document is available at: http://www.mvps.org/access/netiquette.htm Feeling left out? Alone? Wondering why everyone's ignoring you? Or why you're being flamed for what...
0
by: FAQPoster | last post by:
An HTML version of this document is available at: http://www.mvps.org/access/netiquette.htm Feeling left out? Alone? Wondering why everyone's ignoring you? Or why you're being flamed for what...
0
by: FAQPoster | last post by:
An HTML version of this document is available at: http://www.mvps.org/access/netiquette.htm Feeling left out? Alone? Wondering why everyone's ignoring you? Or why you're being flamed for what...
1
by: Mike Spike | last post by:
HI all, How do I go about getting the permmisions of a file. I have been able to get a list of access control rules and tell if they are restricting or permiting a permmision but I cant tell...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.