Skip to Content
avatar image
Former Member

External Windows File

I am trying to access a Windows file system that is external to the Portal. I need to specify the user and password to gain access.

Since the portal is running on a Windows server it would appear to be possible to execute a "net use" command to specify a drive letter which would give me access. This is not a very desirable solution since it would be open all the time and if multiple systems were to be accessed could eventually use all available drive letters.

Does anyone know of a method to access the file from within the portal application while still specifying the user name and password to gain access?

Thanks for any assistance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Jul 09, 2004 at 06:22 AM

    Hello John,

    do you need write Access to the Windows Directories? If not you can configure IIS to give HTTP access to this files. Authentification could be done by NTLM oder Kerberos. So your User won't get any authentication popups.

    Regards

    Gregor

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 09, 2004 at 06:30 AM

    Well,

    I would recommend you use ftp or suresync(or similar) in order to get the files over to the portal server.

    Otherwise I think you need to start coding the netbios standard in your java code or make a native program (Vb script is probably appropriate) which does the authentication and file copying for you.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 12, 2004 at 02:38 PM

    If you're looking to do this from Java natively, you can use the open source jCIFS library, which should support the authentication requirements you're looking for, without mapping a drive.

    http://jcifs.samba.org/

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Gregor Wolf

      We are looking at porting to SQL server. But if we do then we must be responsible for the data.

      We are working with multiple departments who each have different data storage formats. The formats include SQL Server, Oracle, Access and even Excel. It is actually easier if we just read a few data items to be used for graphing and let the department that already has the database remain responsible for all the DB headaches. They are, after all, the subject matter experts. We are just providing a method to let a wider audience view their work.