Hello,
little question about the UNC mapping....
As far as I know now is that we can use for example \\server\shared_folder AS LONG AS this folder remains on the same server where the FileVista is installed, BUT can we use UNC address for example to list out the files and folders from ANOTHER server on the network ??
\\remote_server\remote_share ??
because now I know that these works:
c:\shared_folder
or
\\server\shared_folder
but this is wokring just fine BECAUSE the \\server is the same fysical server as c:\ but I was not able to use UNC for remote server...
\\remote_server\shared _folder
is this possible at all ? if yes how can I configure it ? I really tryed but it`s not working... the script is telling me ahole time that location I`ll view via UNS address is not on the same fysical server....
Any idea ??
Thank You
Best regards
Amel
Amel
10/4/2009 6:25 AM
Hi there,
Here is a link that may help:
http://www.gleamtech.com/support/forums/3911/unc-path
Also, try surfing the forums for "UNC"
Thanks,
All the best,
Rob
Robert
10/5/2009 1:05 PM
Hi again Rob,
You`re fast with answers ;)
Thank You very much again dude !!!
Will read trough the link You just sent me and I`ll fix it.
Thank You again !
Best regards
Amel
Amel
10/5/2009 1:09 PM
No problem.
Have a great day today,
Rob
Robert
10/5/2009 1:12 PM
I just tried to reconfigure the web.config file, but when I added the command from the link You sent me, than I got the error:
"Number of users exceeds the license limit"
Does it means that FileVista is now using the Windows users database ??
instead of the local FileVista user database ??
Amel
Amel
10/5/2009 1:38 PM
Hi,
This means you are at or over your 5 user license limit. Login as an admin and delete a user and try again.
Also, have you tried using a mapped drive to your drive share?
Thanks,
Rob
Robert
10/5/2009 1:43 PM
hmm no there is only ADMIN user on the FileVista user database....
But I have over 100 users on the AD....
I think that this command tells the FileVista to use AD user database instead of the FileVista user database.
Because the FileVista in my case is installed on the IIS where I am running IIS web server...
<authentication mode="Windows" />
<identity impersonate="true" userName="SomeUserX" password="Password123" />
Amel
Amel
10/5/2009 1:46 PM
correction:
Because the FileVista in my case is installed on the IIS where I am running IIS web server...
Because the FileVista in my case is installed on the AD server where I am running IIS web server...
Amel
Amel
10/5/2009 1:47 PM
Yep you are correct. Sorry about that.
Have you tried the mapped drive option yet?
Thanks,
Rob
Robert
10/5/2009 1:51 PM
"mapped drive option" do You have any explanation how do I configure it ?
I havn`t tryed it no...
Amel
Amel
10/5/2009 1:54 PM
I tryed to configure it as following in the web.config file:
<authentication mode="None" /> if I use "windows" than I get the license problems ....because AD have 100 users..
<identity impersonate="true" />
and I am able to log on to FileVista using FileVista user form and database, BUT I still cannot add the remote server
unc address \\server\shared_folder
Amel
Amel
10/5/2009 2:00 PM
Hi Amel,
Is there a what to create a "mapped network drive" to your remote server and use that?
Just exploring....
Thanks!
Rob
Robert
10/5/2009 2:05 PM
You mean following:
create NETWORK MAP DRIVE and point it to some server \\remote_server_ip\remote_shared_folder
and than I get for example y:\ and use y:\ in the FileVista instead of : \\remote_server_ip\remote_shared_folder
I tryed this but the FileVista is telling me that location is not on the physical drive.....
Amel
Amel
10/5/2009 2:08 PM
Hi Amel,
I do recall getting that error as well..... This may be a job for a third-party piece of software.
Maybe try searching www.downloads.com for mapped drive software and/or something like http://www.digitalwidget.net/virdir/index.html.
Let me know what you find,
Thanks,
Rob
Robert
10/5/2009 2:31 PM
I think we need to have either same number of the user accounts in AD as our license have OR
purchase the unlimited license in order to use windows auth:
<authentication mode="Windows" />
<identity impersonate="true" userName="SomeUserX" password="Password123" />
Amel
Amel
10/5/2009 2:32 PM
I think you are correct when it comes to the license limit error...
Hopefully Cem can get you your coupon code asap.
Thanks Amel!
Robert
10/5/2009 2:36 PM
You`re welcome Rob...
I`ll wait for Cem.......
Best regards
Amel
Amel
10/5/2009 2:38 PM
No problem!
Looks like Cem is back!
http://www.gleamtech.com/support/forums/4022/share-your-support-experience
Thanks Amel!
Rob
Robert
10/5/2009 2:48 PM
well don`t ask me how but I did it ....
what I did is:
1. removed the FileVista from the server (from Active Directory server where I run IIS)
2. installed the application again from begining
3. edited web.config file, added following line:
<customErrors mode="Off"/>
<authentication mode="Windows" />
<identity impersonate="true" userName="Administrator" password="my_password" />
4. logged on the FileVista
5. added the purchased license with 5 users at the begining
BUT what is wired here is:
when I opened the FileVista I got the FORM login and NOT windows auth login
and this time I have not received the ERROR about the license (number of the usres)
Wired isn`t it ? I should not see the FileVista FORM login but Windows auth login NLM ?
Amel
Amel
10/5/2009 3:00 PM
Hmmmm that is weird.
I would think that you should not see the login box. However, I have seen other apps where there is a long box that is not the windows auth box. Its integrated...
After you purchase the unlimited version that might definitely help ya. You can also try it on another server with less AD users before you purchase the unlimited license.
Thanks!
Rob
Robert
10/5/2009 3:06 PM
Thanks for advice Rob....
But this is wired :-)
Amel
Amel
10/5/2009 3:10 PM
1. Accessing network shares (UNC paths) is different than local folders in regards to user context.
By default, ASP.NET applications run under the context of NETWORK SERVICE or ASPNET users but when accessing a network resource, the other machine will not recognize those users as they are local users. So you need to run the application under the context of a common user which you can add to the ACL of the network share with the required permissions.
If there is a domain, you can use a domain user for this purpose. When you include the below settings in web.config:
<authentication mode="Windows" />
<identity impersonate="true" userName="SomeUserX" password="Password123" />
FileVista will be executed directly under the identity of SomeUserX and not under system accounts like NETWORK SERVICE or ASPNET. So, you need to make sure SomeUserX can access the share. If you are connected to a domain, this would be easy because you would go to the other machine and give permissions directly to this domain user as you can select him in the list.
However, you can not select and add a user of another computer if there is no domain. In this case you need to create a user with same name (eg. SomeUserX) and password on the other server and use this common user for the impersonation setting above. FileVista is dependant on Windows permissions so you should first try in Windows if you can access the share with the user SomeUserX that is created on both machines. If Windows can access then FileVista will be able to access too.
2. Drive letter mapping is not possible as it is an option only for the interactively logged in users and it’s not available to ASP.NET applications like FileVista.
3. FileVista will not count the number of users in your AD database. I guess you opened the FileVista database (mdb file) and tried to add a new record (6th user) in the User table manually. Even if you delete this extra record, you need to restart FileVista so that it can recount the actual users in the table and recover from error state. You can restart FileVista by touching (opening and saving) the web.config file. Note that if you need AD integration, you will need to create corresponding users in FileVista for each AD user. This means, if 100 AD users will log into FileVista, then you will need at least 100 users license for FileVista.
4. The showing of FileVista's own login page is dependant on the IIS's authentication settings. If you turn off Anonymous authentication, then browser's own authentication dialog will be displayed instead of FileVista's login page. So when you turn off Anonymous authentication and add these line to web.config:
<authentication mode="Windows" />
<identity impersonate="true" />
you will be authenticated against AD and FileVista will run under the context of the credentials you supply. This means FileVista will be limited by the NTFS permissions of this AD user.
So when you uninstalled and installed FileVista, I guess the only difference was the IIS's authentication setting. You also got rid of the "users exceeded" error message because you started with the new unmodified database.
Cem Alacayir
10/6/2009 9:34 AM
Hello Cem,
Thank You very much for very nice explanation.
Right now I use the following config in the web.config file:
<authentication mode="Windows" />
<identity impersonate="true" userName="SomeUserX" password="Password123" />
and Anonymous authentication is "on" on the IIS web server, so the filevista now displays FileVista Log-in form
instead of the browser auth dialog box so this is ok.
But as You can see I have only used ONE Domain user in the web.config file,
which have access to all shared folders, but than I created 5 another users in the FileVista and each user
have it`s own share on the AD server, BUT how can one user which exist only in the FileVista database and not on the
Domain how can this user than access the shared folder on the AD server ?? since this user exist only in the FileVista DB ?
Thank You
Best regards
Amel
Amel
10/6/2009 10:22 AM
Hi Amel,
If you use the above settings, then you will using one common AD user (SomeUserX) under which FileVista will be executed.
It's the impersonated identity used to access files and resources so whichever FileVista user logs in, Windows will allow or deny file access requests according to this underlying Windows user (SomeUserX).
If you use these settings instead:
<authentication mode="Windows" />
<identity impersonate="true" />
and turn off Anonymous authentication, then you will prompted with browser's login dialog instead of FileVista's login page.
Note that there is no user name mentioned in <identity> setting. This time, FileVista will be executed under whatever Windows user you enter in the browser's login dialog. So there will be no common underlying Windows user.
Cem Alacayir
10/27/2009 2:25 PM
Hi Cem,
Ok, I see, have just tested it.
understand it now....
Thank You for reply
Best regards
Amel
Amel
10/27/2009 2:58 PM