Foren

Document Library - How to turn off Authentication?

thumbnail
Sushil Mayengbam, geändert vor 13 Jahren.

Document Library - How to turn off Authentication?

Junior Member Beiträge: 53 Beitrittsdatum: 17.02.10 Neueste Beiträge
Hi,

I'm sorry if this question is already answered.

When I uploaded a new document ( through Document Library ) from a community, a community member gets an authentication prompt (username/password) when accessing the document for the first time. Is there any way to turn off this authentication prompt especially for its community members?

The community members accessed the document through its Webdav URL.

Best regards,
Sushil
Sultee khan, geändert vor 13 Jahren.

RE: Document Library - How to turn off Authentication?

Regular Member Beiträge: 145 Beitrittsdatum: 31.10.09 Neueste Beiträge
so you want to turn off webdav authentication
thumbnail
Sushil Mayengbam, geändert vor 13 Jahren.

RE: Document Library - How to turn off Authentication?

Junior Member Beiträge: 53 Beitrittsdatum: 17.02.10 Neueste Beiträge
Sultee khan:
so you want to turn off webdav authentication


Hi,

Thanks for your quick reply.
Yes, we would like to turn off webdav authentication. I tried to find any relevant theads at the forum but couldn't see it any ( or may be I've missed it).

Let me rephrase our requirement:-

We've a community oriented idea sharing portal. Each community administrator can upload documents for their own community. When a community administrator (of say, community 'x') uploads a document, a webdav URL is generated and when this webdav URL is accessed by members of the community('x'), a webdav authentication is promting.
Is there any way to turn off this authentication especially for the community members? the reason being - they belong to this community and we would like to give access directly w/o any authentication.

Best regards,
Sushil
Sultee khan, geändert vor 13 Jahren.

RE: Document Library - How to turn off Authentication?

Regular Member Beiträge: 145 Beitrittsdatum: 31.10.09 Neueste Beiträge
Hi,
Whether it is good to turnoff authentication for webdav or not, that I can't say..
To turn off the authentication go to your webserver deploy directory and than to tunnel-web\WEB-INF\web.xml. Find the code below

<filter>
		<filter-name>Secure WebDAV Servlet Filter</filter-name>
		<filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
		<init-param>
			<param-name>filter-class</param-name>
			<param-value>com.liferay.portal.servlet.filters.secure.SecureFilter</param-value>
		</init-param>
		<init-param>
			<param-name>basic_auth</param-name>
			<param-value>true</param-value>
		</init-param>
		<init-param>
			<param-name>portal_property_prefix</param-name>
			<param-value>webdav.servlet.</param-value>
		</init-param>
	</filter>


change the true for basic_auth to false. This is what working for me. There could be different other solutions too...
For our own community based logic, you can program or extend the filter denoted as filter-class. Hope it helps
thumbnail
Sushil Mayengbam, geändert vor 13 Jahren.

RE: Document Library - How to turn off Authentication?

Junior Member Beiträge: 53 Beitrittsdatum: 17.02.10 Neueste Beiträge
Sultee khan:
Hi,
Whether it is good to turnoff authentication for webdav or not, that I can't say..
To turn off the authentication go to your webserver deploy directory and than to tunnel-web\WEB-INF\web.xml. Find the code below

<filter>
		<filter-name>Secure WebDAV Servlet Filter</filter-name>
		<filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
		<init-param>
			<param-name>filter-class</param-name>
			<param-value>com.liferay.portal.servlet.filters.secure.SecureFilter</param-value>
		</init-param>
		<init-param>
			<param-name>basic_auth</param-name>
			<param-value>true</param-value>
		</init-param>
		<init-param>
			<param-name>portal_property_prefix</param-name>
			<param-value>webdav.servlet.</param-value>
		</init-param>
	</filter>


change the true for basic_auth to false. This is what working for me. There could be different other solutions too...
For our own community based logic, you can program or extend the filter denoted as filter-class. Hope it helps



Hi Sultee,

Thanks for your reply. However, I did the same thing as you'd suggested but still the authentication prompt is still coming up. Please find the attached screenshot of the same. May be my authentication prompt is different from what you've understood. Your any suggestion is highly appreciated.

Best regards,
Sushil
Sultee khan, geändert vor 13 Jahren.

RE: Document Library - How to turn off Authentication?

Regular Member Beiträge: 145 Beitrittsdatum: 31.10.09 Neueste Beiträge
this is how the code looks like..works perfectly with me...tested just now. perhaps you should restart your container.


<filter>
		<filter-name>Secure WebDAV Servlet Filter</filter-name>
		<filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
		<init-param>
			<param-name>filter-class</param-name>
			<param-value>com.liferay.portal.servlet.filters.secure.SecureFilter</param-value>
		</init-param>
		<init-param>
			<param-name>basic_auth</param-name>
			<param-value>false</param-value>
		</init-param>
		<init-param>
			<param-name>portal_property_prefix</param-name>
			<param-value>webdav.servlet.</param-value>
		</init-param>
	</filter>
thumbnail
Sushil Mayengbam, geändert vor 13 Jahren.

RE: Document Library - How to turn off Authentication?

Junior Member Beiträge: 53 Beitrittsdatum: 17.02.10 Neueste Beiträge
Sultee khan:
this is how the code looks like..works perfectly with me...tested just now. perhaps you should restart your container.


<filter>
		<filter-name>Secure WebDAV Servlet Filter</filter-name>
		<filter-class>com.liferay.portal.kernel.servlet.PortalClassLoaderFilter</filter-class>
		<init-param>
			<param-name>filter-class</param-name>
			<param-value>com.liferay.portal.servlet.filters.secure.SecureFilter</param-value>
		</init-param>
		<init-param>
			<param-name>basic_auth</param-name>
			<param-value>false</param-value>
		</init-param>
		<init-param>
			<param-name>portal_property_prefix</param-name>
			<param-value>webdav.servlet.</param-value>
		</init-param>
	</filter>




Hi Sultee,

Sorry for the late reply .
It's working!!!
I applied the changes last time on a wrong 'web.xml' file :-(.
Thank you very much.

Best regards,
Sushil
thumbnail
Domingo Piña, geändert vor 9 Jahren.

RE: Document Library - How to turn off Authentication?

Junior Member Beiträge: 28 Beitrittsdatum: 03.04.09 Neueste Beiträge
For Liferay 6.2, the WebDAV Servlet Filter is defined into the file
ROOT/WEB-INF/liferay-web.xml
thumbnail
Clay Banks, geändert vor 7 Jahren.

RE: Document Library - How to turn off Authentication?

Regular Member Beiträge: 141 Beitrittsdatum: 11.12.13 Neueste Beiträge
Is there a setting available to configure this for portal-ext.properties?