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 directorylike 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?