General discussion

Locked

How can I give an app rights & not user

By jblastic ·
I wrote a VB program for our Digital Photo Archive. It allows death investigators to assign pictures taken at a death scene or during an autopsy, etc. to case files. We want the application to be able to write from the digital camera media to a secure directory that only a few can access, but anyone should be able to input the photos to this secure directory.

Those of you that are familiar with Novell and Zen Works know that you can create an NDS Application object that has rights to directories and files that the user would not have rights to outside the application.

If I was programming for a Windows Peer to Peer setup, I could just share the directory with a password that could be "hard coded" in my program to map the directory like so:
shell("net use R: PhotoDir Password") and then access the photos using the share.

Unfortunately the files I need my app to access are on a W2K Server. The users are on Windows 98 workstations. The Windows 98 NET USE command does not allow a username as a parameter as the W2K NET USE command does.

I downloaded countless Platform SDK files and ADSI files, etc. I found nothing that would allow my app to supply a logon to a directory.

Now my program saves the files to a directory that everyone has access to and then another program on a computer with a user called "photo" that has WR rights to 2 directories moves them to a second directory that is secure. I thought of using the FTP server that comes with W2K, but it also uses W2K USER authentication for access to directories. Also .. to my dismay, W2K does not allow you to create a directory that has only Write, modify, create and file scan rights. -- How can I program - in either VB or C++ an Application to have access rights?

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

How can I give an app rights & not user

by elmagoal In reply to How can I give an app rig ...

The only way to do so is by using a service with a secure logon id that will write to the directory with out letting the user in. You may code a dll in VB that will do just that.

Collapse -

How can I give an app rights & not user

by jblastic In reply to How can I give an app rig ...

This application runs on a Windows 98 workstation. I don't think a Windows 98 service can access Windows 2000 directories that the user logged in to the Windows 98 workstation /W2K server can't. There are other solutions. Are you suggesting that the "service" running on the W2K server will act as a gatekeeper to the directories for my application? Running an FTP server or getting rid of W2K entirely and storing the files a a real NOS (Novell NDS) might be better solutions, but thanks for the suggestion.

Jim

Collapse -

How can I give an app rights & not user

by jblastic In reply to How can I give an app rig ...

I appreciated the thought about programming a service, but that shouldn't be necessary. I should be able to program the application to logon with it's own user ID. If my office would purchase one of the LDAP SDKs, I assume that I could access Active Directory and Logon as this special user - do the file transfers - log back on as the original user. Or possibly even supply a valid username and password to access the secure directory. I am a Network Administrator, my knowledge of programmming -- Especially programming for Windows 2000 is limited. I am looking for a more complete resourse than a vague one line suggestion with no how-to information or references.

Back to Windows Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums