Path to files (Windows AD and webserver)
-
Hello,
I have set on Apache server access to LDAP (Windows AD).
Now I would like to access to the files from HTML, but path like:
file://///server/directory/file.pdf
doesn't work and I am not sure what is set wrongly.Could anybody help which kind of URL works in Vivaldi when I want to open file from LDAP?
Thank You
modedit tiltle changed
-
Actually the LDAP server is not mounted to the webserver.
I just have set Apache on webserver in VirtualHost conf.AuthName "AD authentication" AuthBasicProvider ldap AuthType Basic AuthLDAPGroupAttribute member AuthLDAPGroupAttributeIsDN On AuthLDAPURL "ldap://server:389/CN=Users,DC=mydomain,DC=znojmo?sAMAccountName?sub?(objectClass=*)" AuthLDAPBindDN "CN=webmaster, CN=Users, DC=mydomain, DC=znojmo" AuthLDAPBindPassword mywebmasterpassword require ldap-user webmaster
-
Gwen-Dragon...thanks for the answer
I have Webserver (Linux-Apache) and Fileserver(Windows AD)
They are on same local network.
My goal is on website create a link to open PDF from the AD. It was the reason why I started with the LDAP.
Thank You for any hint. -
@Gwen-Dragon
Thank You....
such path I already tried, but it returns:Not allowed to load local resource: file://server/directory/file.pdf
so probably the problem will be in Apache configuration about the LDAP directives.
-
@Gwen-Dragon
anyway Thank You!
for me was needed to be sure if the UNC path I set correctly.Regards ZAJDAN
-
I am sorry I am returning to this topic, but I found problem which depends on the Browser.
I am on a computer which is connected in domain.
From this computer I use Vivaldi and try open URL directly in new Tab:
file://server/mypath/test.pdf
Browser correctly open the PDF, but when this path is on DOM element:<a href="file://server/mypath/test.pdf"><span style="font-size: 14pt;">SHOW</span></a>
so the Browser doesn't open the PDF.
-
I think it is default behavior because of security.
Same behavior has Firefox and Chrome. Both has extension for it.
https://addons.mozilla.org/en-US/firefox/addon/local-filesystem-links/
https://chrome.google.com/webstore/detail/enable-local-file-links/nikfmfgobenbhmocjaaboihbeocackldThe extension allow open local link user click what is good way.
Is something similar in Vivaldi? -
@Gwen-Dragon
yeeeeees!
works..Thank You -