A user runs a .NET application that authenticates them against active
directory (they're coming in over VPN so they don't log on to the network
normally). Once they log in, I want to take their user id, & run a batch
file on their PC with that user id actually inside the batch file.
(The objective here is to map a user to a drive on the network when they
come in thru VPN -- and that can only be done with a batch file we have,
customized with their network user id in the file).
1. I'm not sure whether to do this in asp.net or C#.NET (c/s).
2. Actually the first thing I need to know is: how do I authenticate a
user against active directory? I mean, I give them a username & password.
They type it in. Can I somehow go against AD and verify if this is them.
3. How do I dynamically run a batch file on the user's PC ?
TY,
Jason Shohet 4 2096
That sounds do-able. What you are wanting to create is a
logon script. You should be able to create a generic
batch file that will find the user information. Once you
have your batch file working correctly, attach it the VPN
connection. There should be a section in it just for
logon scripts. -----Original Message----- A user runs a .NET application that authenticates them
against activedirectory (they're coming in over VPN so they don't log
on to the networknormally). Once they log in, I want to take their user
id, & run a batchfile on their PC with that user id actually inside the
batch file. (The objective here is to map a user to a drive on the
network when theycome in thru VPN -- and that can only be done with a
batch file we have,customized with their network user id in the file).
1. I'm not sure whether to do this in asp.net or C#.NET
(c/s).2. Actually the first thing I need to know is: how do
I authenticate auser against active directory? I mean, I give them a
username & password.They type it in. Can I somehow go against AD and verify
if this is them.3. How do I dynamically run a batch file on the user's
PC ? TY, Jason Shohet
.
The first part i'm missing, is how to do a logon, that hits ActiveDirectory
on our network. Should I just search around the ng? (ie, its a common
thing)?
I wonder if .NET has a function, like.... callADlogon( ); that
automatically brings up the network logon control, validates against AD and
returns a boolean true or false :) ?? wishful thinking?
Unfortunately, I do not enough of AD to be any use to you
there. -----Original Message----- The first part i'm missing, is how to do a logon, that
hits ActiveDirectoryon our network. Should I just search around the ng?
(ie, its a commonthing)?
I wonder if .NET has a function, like.... callADlogon
( ); thatautomatically brings up the network logon control,
validates against AD andreturns a boolean true or false :) ?? wishful thinking?
.
search MDSN or TechNet for:
longon script.
there is somewhere an example that does exactly what you want. I also have
it somewhere. If I find I will post it here.
To assing a longon script for a group of users the best way is to create a
group policy for that. Your network Admin must know how to do that.
"Jeremy Ames" <an*******@discussions.microsoft.com> wrote in message
news:67****************************@phx.gbl... Unfortunately, I do not enough of AD to be any use to you there.
-----Original Message----- The first part i'm missing, is how to do a logon, that hits ActiveDirectoryon our network. Should I just search around the ng? (ie, its a commonthing)?
I wonder if .NET has a function, like.... callADlogon ( ); thatautomatically brings up the network logon control, validates against AD andreturns a boolean true or false :) ?? wishful thinking?
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Herb Stevenson |
last post by:
Hello all. I need to set up a batch file to work w/ the Visual Studio.NET
2003 command prompt. However, when I run the batch file it uses the
standard command prompt. Is there a way to...
|
by: Viviana Vc |
last post by:
How can I programatically do the equivalent of the following:
cacls "C:\Program Files\test" /T /G Everyone:f ?
Thanks,
Viv
|
by: Mark C. |
last post by:
I'm trying to call a batch file that I've built using the FileSystemObject
and CreateObject("Wscript.Shell"), oShell.Run... in an asp script.
Naturally, I can get the script to work from a command...
|
by: Keith Wilby |
last post by:
I have some code in my app that updates data by interrogating data from
Artemis. It works fine, but I wondered if I'd be able to write a batch file
which, at a predetermined time each day, would...
|
by: dog |
last post by:
I've seen plenty of articles on this topic but none of them have been
able to solve my problem.
I am working with an Access 97 database on an NT4.0 machine, which has
many Access reports.
I...
|
by: emman_54 |
last post by:
Hi every one,
I am trying to run a batch file using my asp.net application.
I am using the Process class to run the batch file. When I run my web
application, In the task manager, i could see...
|
by: abcd |
last post by:
I am using Python to create a process on another computer. Both
computers are on the same domain with admin privileges.
On computer B I have a batch script which starts a python script. From...
|
by: barb |
last post by:
So that the world at large benefits from our efforts, here is one fully
documented way to use Windows Irfanview freeware to create thumbnail web
galleries (http://www.irfanview.com).
STEP 1:...
|
by: =?Utf-8?B?R2lkaQ==?= |
last post by:
Hi,
In my windows applicationm, i need to excute a batch file.
this batch file throws some text and questions to the screen, i need to
catch the standard Output, check if it's a question, in...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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
|
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...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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: 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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
| |