473,287 Members | 1,426 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,287 software developers and data experts.

Copy files from Novell with ASP.NET

On a W2K3 box running IIS 6 I have a web app that implements Forms
Authentication mixed with AD (the login page autheticates users against AD &
impersonates them with each page request). This means my process identity
varies, and is not necessarily "ASPNET" or "IUSR...". My process identity
for any given page request will be user1, user2, user3, etc. (there's a lot
of them)

This web app needs to copy files (Word documents) from our old Novell 5
server onto the W2K3 box, and I'm encountering what I believe is a
permissions problem. Here's what I've tried doing:

IO.File.Exists(\\NovellServer\volume\folder\file.d oc)

This is a valid path to a valid file that does exist, but the query returns
False. I assume the web app doesn't have access this
server/volume/folder/file from within the security context of the currently
executing request. Which does make sense since none of the users typically
logging into the website ever needed or were ever granted logins to the
Novell server.

I do have one Novell login that is "synchronized" with AD (the username and
password are the same). So, I attempted this:

'...code gets to the point where it is ready to play with novell files:

[impersonate as sychronized AD/Novell user]

IO.File.Exists(\\NovellServer\volume\folder\file.d oc)

But this still returns False.

I'm uncertain how to proceed. What else should I try?
May 16 '06 #1
2 2114
If you have permission on the web server box, try mapping a drive to the
novell server and accessing it via it's drive letter. The web server
will have to be running the novell client. If you are unable to map a
drive, your unc path won't work either.

Just a thought...
1388-2/HB wrote:
On a W2K3 box running IIS 6 I have a web app that implements Forms
Authentication mixed with AD (the login page autheticates users against AD &
impersonates them with each page request). This means my process identity
varies, and is not necessarily "ASPNET" or "IUSR...". My process identity
for any given page request will be user1, user2, user3, etc. (there's a lot
of them)

This web app needs to copy files (Word documents) from our old Novell 5
server onto the W2K3 box, and I'm encountering what I believe is a
permissions problem. Here's what I've tried doing:

IO.File.Exists(\\NovellServer\volume\folder\file.d oc)

This is a valid path to a valid file that does exist, but the query returns
False. I assume the web app doesn't have access this
server/volume/folder/file from within the security context of the currently
executing request. Which does make sense since none of the users typically
logging into the website ever needed or were ever granted logins to the
Novell server.

I do have one Novell login that is "synchronized" with AD (the username and
password are the same). So, I attempted this:

'...code gets to the point where it is ready to play with novell files:

[impersonate as sychronized AD/Novell user]

IO.File.Exists(\\NovellServer\volume\folder\file.d oc)

But this still returns False.

I'm uncertain how to proceed. What else should I try?

May 16 '06 #2
Well so far I'm testing this on my dev workstation which is an XPSP2 box w/
vs2003. I'm an admin on my workstation (on both win/novell sides) and I'm
always logged into Novell via Novell Client for Windows. On this dev
workstation I can type either a mapped drive or a UNC into windows explorer
or a dos window and get to \\NovellServer\volume\folder\file.doc, or,
K:\folder\file.doc. Either way.

When I run this asp.net application, on this same workstation, and
programmatically ask if either \\NovellServer\volume\folder\file.doc, or,
K:\folder\file.doc exists, it returns False either way.

Which has led me to suspect that the impersonation I'm doing in the website
is entering into a new context that isn't aware of, or doesn't have access
to, the Novell connections that were created created when I logged into my
dev machine in the morning.

I downloaded an ActiveX suite from Novell and have been able to make a
little bit of progress (I think) - I can successfully "login to Novell"
programmatically, for what it's worth:

Dim objNWSession As New NWSessLib.NWSessClass

With objNWSession
.Bindery = False
.PreferredServer = "NovellServer"
.RunScripts = True
bolLogin = .Login("NDS:\\NovellServer\[O]\[OU]", "user", "pwd", False)
End With

And this "works" (bolLogin returns True). And I can proceed to check
objNWSession.DriveMappings, for "user", etc, and everything looks ok there.

However, still after having done this,

IO.File.Exists(\\NovellServer\Volume\Folder\File.d oc)

says False.

So... I'm still having a hard time with this. The little Novell activeX
object is aware it's logged in, but the OS isn't being notified and so the
..NET framework can't see the newly acquired network resources. Or
something.

I dunno if I'm going about this the wrong way, but it seems to me my next
step is to somehow inform windows that objNWSession has logged the current
security context into Novell and obtained access to new network resources.

Not sure how/if I can do that tho...

"NumbLock" <pc*****@yahoo.com> wrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
If you have permission on the web server box, try mapping a drive to the
novell server and accessing it via it's drive letter. The web server will
have to be running the novell client. If you are unable to map a drive,
your unc path won't work either.

Just a thought...
1388-2/HB wrote:
On a W2K3 box running IIS 6 I have a web app that implements Forms
Authentication mixed with AD (the login page autheticates users against
AD &
impersonates them with each page request). This means my process
identity
varies, and is not necessarily "ASPNET" or "IUSR...". My process
identity
for any given page request will be user1, user2, user3, etc. (there's a
lot
of them)

This web app needs to copy files (Word documents) from our old Novell 5
server onto the W2K3 box, and I'm encountering what I believe is a
permissions problem. Here's what I've tried doing:

IO.File.Exists(\\NovellServer\volume\folder\file.d oc)

This is a valid path to a valid file that does exist, but the query
returns
False. I assume the web app doesn't have access this
server/volume/folder/file from within the security context of the
currently
executing request. Which does make sense since none of the users
typically
logging into the website ever needed or were ever granted logins to the
Novell server.

I do have one Novell login that is "synchronized" with AD (the username
and
password are the same). So, I attempted this:

'...code gets to the point where it is ready to play with novell files:

[impersonate as sychronized AD/Novell user]

IO.File.Exists(\\NovellServer\volume\folder\file.d oc)

But this still returns False.

I'm uncertain how to proceed. What else should I try?

May 16 '06 #3

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

Similar topics

4
by: John | last post by:
"Networking software maker Novell on Monday boosted its Linux portfolio with the acquisition of Linux software maker Ximian for an undisclosed sum. The purchase of Ximian's desktop Linux software...
0
by: JT | last post by:
UnauthorizedAccessException when trying to access a Novell network drive. The code is very simple. This is the line that fails when trying to create a new StreamWriter where _filename is a string...
0
by: John Bailo | last post by:
I'm organizing some new OSS projects on Forge Novell. These projects will be developed in mono. If you want to participate, the projects with descriptions are at: Antimeme ...
3
by: Stanley Sinclair | last post by:
Client has Novell network which has worked without failure for years in file, print sharing, and a flat database. Also has a fax server on it and Novell Groupware for messaging. He does not want...
3
by: Miro | last post by:
Hi! How can I access files on intranet. I have mapped a serverfolder to the drive letter G and try to access a file from ASP.NET, but File.Exists("G:\filename.ext") returns false. The same code...
4
by: Miro | last post by:
Hello! I have an ASP.NET application which needs to read some data from an Access database on Novell. I've found an article on Microsoft and did the following: I've created an account on...
0
by: Grey | last post by:
I have a ASP.NET web application which is required to copy file from windows server to Novell Netware server. I have used impersonation to connect to Netware server. The application works fine when...
4
by: physicsboy | last post by:
Does anyone know what programming language was Novell written in?
10
by: Jason | last post by:
I want to create a simple program with Two buttons on the form. BUTTON 1 - BACKUP PREFS this will do the following: Copy C:\Documents and Settings\%USERNAME%\Application Data\FileZilla...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

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.