CIFS Quick Start

CIFS Quick Start

There are few steps to quickly run the server in tomcat or other appliction server.

  1. Put cifs configuration in exo-configuration.xml:
<component>
	<key>org.exoplatform.services.cifs.CIFSService</key>
	<type>org.exoplatform.services.cifs.CIFSServiceImpl</type>
	<init-params>

		<!-- Repository configuration -->
		
		<value-param>
			<name>repository-name</name>
			<value>repository</value>
		</value-param>

		<value-param>
			<name>jndi-repository-name</name>
			<value>repository</value>
		</value-param>

		<!-- Enable server -->
		<value-param>
			<name>enable_smb</name>
			<value>true</value>
		</value-param>
			
		<!-- Broadcast mask, if not specified 255.255.255.0 assign -->
		<value-param>
			<name>broadcast_mask</name>
			<value>255.255.255.255</value>
		</value-param>
			
		<!--Host name-->
		<value-param>
			<name>host_name</name>
			<value>SmbUniqSs</value>
		</value-param>

		<!--Worgroup - if not determined used local domain name-->
		<value-param>
			<name>workgroup</name>
			<value>office</value>
		</value-param>

		<!--Comment - set server comment-->
		<value-param>
			<name>comment</name>
			<value>This server is specific SMB server which works with JCR repository.</value>
		</value-param>
			
		<!-- NetBIOS transport (Java impl) configuration - for Linux-->
		<properties-param>
			<name>netbios_java</name>
			<property name="enabled" value="false"/>
			<property name="session_port" value="139"/>
			<property name="datagram_port" value="138"/>
			<property name="name_port" value="137"/>
			<!-- NetBIOS host announce config -->
			<property name="announce_enabled" value="true"/>
			<property name="announce_interval" value = "5"/>
		</properties-param>
 	
		<!--use JNI NetBIOS SMB transport layer - only for Windows-->
		<properties-param>
			<name>winnetbios</name>
			<property name="enabled" value="true"/>
			<property name="netbiosname" value="UniqCIFS"/>
			<!--LANA - if not determined or equal -1 used all available -->
			<property name="lanas" value="-1"/>
			<!-- native API for Win NetBIOS : netbios or winsock -->
			<property name="nativeapi" value="netbios"/>
			<!-- Win32 NetBIOS host announce config -->
			<property name="announce_enabled" value ="true"/>
			<property name="announce_interval" value = "5"/>
		</properties-param>
 		        
		<!-- set security mode -->
		<!-- security signatures is not suported -->
 		        			
		<properties-param>
			<name>security_param</name>
			<property name="challenge_response" value="true"/>
		</properties-param>
 		        
	</init-params>
</component>

  • For Windows: set the server name winnetbios->"netbiosname". Set the winnetbios->"enabled" as "true".
  • For Linux (and other non-Windows systems):
    • set the server name (property "host_name");
    • set the property netbios_java->"enabled" as "true", and set "session_port", "datagram_port", "name_port" as you need.
Check that server name is unique in your network!!! In our case its SmbServer (Linux) and UniqCIFS (Windows).

NOTE. The server name is case insensitive.

2. For Windows systems! Put Win32NetBIOS.dll to C:WINDOWSsystem32, or set path to dll.

3. Run the application server

4. Use the cifs server

There are different ways: First look for the server using its name as a search criterium in the workgroup which you specified in configuration. Second, if you can't find your server (it's possible when the required server is Master Browser), you should search for the server using its name directly, like

>>\\<your server name>

In the same way you can get any available resource on the server

>>\\<your server name>\<device\service name>\<file or folder>

For Linux you can use such path:

smb://UniqCifs/

Tags:
Created by Sergey Karpenko on 07/02/2007
Last modified by Sören Schmidt on 08/13/2009

Products

generated on Thu Sep 02 15:29:14 UTC 2010

eXo Optional Modules

eXo Core Foundations


Copyright (c) 2000-2010. All Rights Reserved - eXo platform SAS
2.4.30451