#!/bin.sh
# Start or stop Alfresco server
# Set the following to where Tomcat is installed
ALF_HOME=/home/ecm/prod/Alfresco
cd "$ALF_HOME
APPSERVER="${ALF_HOME}/tomcat"
#export JAVA_HOME=/home/ecm/jdk1/6/0_13
-JAVA_HOME et PATH sont exportés via un autres scripts d'où le commentaire
dir.root=/home/ecm/data
dir.indexes=/home/ecm/data/lucene-indexes
db.driver=org.postgresql.Driver
db.name=alfresco
db.url=jdbc:postgresql://localhost:5432/alfresco
db.username=alfresco
db.password=alfresco
index.recovery.mode=AUTO
#db.driver=org.apache.derby.jdbc.EmbeddedDriver
#db.url=jdbc:derby:alf_data/derby_data/alfresco;create=true
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
hibernate.query.substitutions=true TRUE, false FALSE
#hibernate.dialect=org.hibernate.dialect.DerbyDialect
<config evaluator="string-compare" condition="Languages">
<languages>
<!–
<language locale="ca_ES">Catalan</language>
<language locale="hr_HR">Croatian</language>
<language locale="cs_CZ">Czech</language>
<language locale="da_DK">Danish</language>
<language locale="de_DE">German</language>
<language locale="es_ES">Spanish</language>
<language locale="el_GR">Greek</language>
<language locale="fi_FI">Finnish</language>
–>
<language locale="fr_FR">Francais</language>
<!–
<language locale="it_IT">Italian</language>
<language locale="ja_JP">Japanese</language>
<language locale="du_NL">Dutch</language>
<language locale="pl_PL">Polish</language>
<language locale="pt_PT">Portuguese</language>
<language locale="pt_BR">Portuguese (Brazilian)</language>
<language locale="ru_RU">Russian</language>
<language locale="sv_SV">Swedish</language>
<language locale="tr_TR">Turkish</language>
<language locale="zh_CN">Simplified Chinese</language>
–>
</languages>
</config>
Très léger pb ici…la langue par défaut est "english" sur la page de login mais les données écrites sont en français. Si je change la langue en "french" puis "english" j'ai bien les données de la page de login en anglais…sinon après la connexion pas de souci.
<config evaluator= “string-compare” condition= “CIFS Server”>
<serverEnable enabled=”true”/>
<host name=”${localname}A” domain=”Effitic”/>
<comment>Alfresco CIFS Server</comment>
< !–Set to the broadcast mask for the subnet –>
<broadcast>xxx.yyy.zzz.255</broadcast>
<!–Use Java socket based NetBIOS over TCP/IP and native SMB on linux –>
<!–<tcpipSMB platforms=”linux,solaris,macosx”/>
<netBIOSSMB platforms=”linux,solaris,macosx”/> –>
<!—Can be mapped to non-privileged ports, then use firewall rules to forward requests from the standard ports –>
<tcpipSMB port=”1445” platforms=”linux,solaris,macosx”/>
<netBIOSSMB sessionPort=”1139” namePort=”1137” datagramPort=”1138” platforms=”linux,solaris,macosx”/>
hostAnnounce interval=”5”/>
<!–Use Win32 NetBUIS interface on Windows –>
<Win32NetBUIS/>
<Win32Announce interval=”5”/>
<!–
<WINS>
<primary>1.2.3.4</primary>
<secondary>5.6.7.8</secondary>
</WINS>
–>
<sessionDebug flags=”Negotiate,Socket”/>
</config>
iptables -t nat -A PREROUTING -p tcp –dport 445 -j REDIRECT –to-ports 1445
iptables -t nat -A PREROUTING -p tcp –dport 139 -j REDIRECT –to-ports 1139
iptables -t nat -A PREROUTING -p udp –dport 137 -j REDIRECT –to-ports 1137
iptables -t nat -A PREROUTING -p udp –dport 138 -j REDIRECT –to-ports 1138
Iptables –t nat –n -L
me donne
Chain PREROUTING (policy ACCEPT)
Target prot opt source destination
REDIRECT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt :445 redir ports 1445
REDIRECT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt :139 redir ports 1139
REDIRECT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt :137 redir ports 1137
REDIRECT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt :138 redir ports 1138
<!–Use Java socket based NetBIOS over TCP/IP and native SMB on linux –>
<tcpipSMB platforms=”linux,solaris,macosx”/>
<netBIOSSMB platforms=”linux,solaris,macosx”/>
<!—Can be mapped to non-privileged ports, then use firewall rules to forward requests from the standard ports
<tcpipSMB port=”1445” platforms=”linux,solaris,macosx”/>
<netBIOSSMB sessionPort=”1139” namePort=”1137” datagramPort=”1138” platforms=”linux,solaris,macosx”/> –>
org.alfresco.jlan.netbios.NetBIOSException: NBREQ Called name is not this server (DEB)
at org.alfresco.jlan.smb.server.SMBSrvSession.procNetBIOSSessionRequest(SMBSrvSession.java:850)
at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1409)
at org.alfresco.jlan.smb.server.nio.NIOCIFSThreadRequest.runRequest(NIOCIFSThreadRequest.java:105)
at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:141)
at java.lang.Thread.run(Thread.java:619)
java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
at sun.nio.ch.IOUtil.read(IOUtil.java:206)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
at org.alfresco.jlan.smb.server.nio.ChannelPacketHandler.readBytes(ChannelPacketHandler.java:114)
at org.alfresco.jlan.smb.server.nio.NetBIOSSMBChannelHandler.readPacket(NetBIOSSMBChannelHandler.java:66)
at org.alfresco.jlan.smb.server.nio.NIOCIFSThreadRequest.runRequest(NIOCIFSThreadRequest.java:80)
at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:141)
at java.lang.Thread.run(Thread.java:619)
18:26:27,357 User:mvi DEBUG [smb.protocol.auth] NT Session setup NTLMSSP, MID=8, UID=0, PID=65279
18:26:27,358 User:mvi DEBUG [smb.protocol.auth] User logged on (type Normal)
18:26:27,373 User:mvi DEBUG [smb.protocol.auth] NT Session setup NTLMSSP, MID=16, UID=0, PID=65279
18:26:27,374 User:mvi DEBUG [smb.protocol.auth] Null logon
18:26:27,374 User:mvi DEBUG [smb.protocol.auth] Logged on using NTLMSSP/NTLMv2SessKey
18:26:27,374 User:mvi DEBUG [smb.protocol.auth] User logged on (type Null)
18:26:27,375 User:mvi DEBUG [smb.protocol.auth] Allocated UID=0 for VC=[0:0,[:null,Windows 2002 Service Pack 2 2600,Windows 2002 5.1,192.168.64.1],Tree=0,Searches=0]
18:26:27,379 User:mvi DEBUG [smb.protocol.auth] NT Session setup NTLMSSP, MID=32, UID=0, PID=65279
18:26:27,380 User:mvi DEBUG [smb.protocol.auth] User logged on (type Normal)
18:26:27,409 User:mvi DEBUG [smb.protocol.auth] NT Session setup NTLMSSP, MID=40, UID=0, PID=65279
18:26:27,412 User:mvi WARN [smb.protocol.auth] User does not exist, bzlltw
18:26:36,588 User:mvi DEBUG [smb.protocol.auth] NT Session setup NTLMSSP, MID=48, UID=0, PID=65279
18:26:36,589 User:mvi DEBUG [smb.protocol.auth] User logged on (type Normal)
18:26:36,590 User:mvi DEBUG [smb.protocol.auth] NT Session setup NTLMSSP, MID=56, UID=0, PID=65279
18:26:36,674 User:mvi DEBUG [smb.protocol.auth] Logged on using NTLMSSP/NTLMv2SessKey
18:26:36,678 User:mvi DEBUG [smb.protocol.auth] User mvi logged on (type Normal)
18:26:36,679 User:mvi DEBUG [smb.protocol.auth] Allocated UID=1 for VC=[1:1,[mvi:null,Windows 2002 Service Pack 2 2600,Windows 2002 5.1,192.168.64.1],Tree=0,Searches=0]
18:26:27,357 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup NTLMSSP, MID=8, UID=0, PID=65279
18:26:27,358 DEBUG [org.alfresco.smb.protocol.auth] User logged on (type Normal)
18:26:27,373 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup NTLMSSP, MID=16, UID=0, PID=65279
18:26:27,374 DEBUG [org.alfresco.smb.protocol.auth] Null logon
18:26:27,374 DEBUG [org.alfresco.smb.protocol.auth] Logged on using NTLMSSP/NTLMv2SessKey
18:26:27,374 DEBUG [org.alfresco.smb.protocol.auth] User logged on (type Null)
18:26:27,375 DEBUG [org.alfresco.smb.protocol.auth] Allocated UID=0 for VC=[0:0,[:null,Windows 2002 Service Pack 2 2600,Windows 2002 5.1,192.168.64.1],Tree=0,Searches=0]
18:26:27,379 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup NTLMSSP, MID=32, UID=0, PID=65279
18:26:27,380 DEBUG [org.alfresco.smb.protocol.auth] User logged on (type Normal)
18:26:27,409 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup NTLMSSP, MID=40, UID=0, PID=65279
18:26:27,412 WARN [org.alfresco.smb.protocol.auth] User does not exist, bzlltw
18:26:36,588 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup NTLMSSP, MID=48, UID=0, PID=65279
18:26:36,589 DEBUG [org.alfresco.smb.protocol.auth] User logged on (type Normal)
18:26:36,590 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup NTLMSSP, MID=56, UID=0, PID=65279
18:26:36,674 DEBUG [org.alfresco.smb.protocol.auth] Logged on using NTLMSSP/NTLMv2SessKey
18:26:36,678 DEBUG [org.alfresco.smb.protocol.auth] User mvi logged on (type Normal)
18:26:36,679 DEBUG [org.alfresco.smb.protocol.auth] Allocated UID=1 for VC=[1:1,[mvi:null,Windows 2002 Service Pack 2 2600,Windows 2002 5.1,192.168.64.1],Tree=0,Searches=0]
# iptables -t nat -n -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
REDIRECT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:445 redir ports 1445
REDIRECT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:139 redir ports 1139
REDIRECT udp – 0.0.0.0/0 0.0.0.0/0 udp dpt:137 redir ports 1137
REDIRECT udp – 0.0.0.0/0 0.0.0.0/0 udp dpt:138 redir ports 1138
Les ports ouverts :# netstat -an | grep LIST
tcp6 0 0 :::1445 :::* LISTEN
tcp6 0 0 :::1139 :::* LISTEN
udp6 0 0 :::1137 :::*
# mount -t cifs \\\\monserver\\alfresco /mnt/alfresco -o user=moi -o -port=1145
$ telnet ged.domain.tld 1445
Trying 87.98.XX.X12…
Connected to ged.domain.tld.
Escape character is '^]'.
Donc sur 1445 ça se connecte$ telnet ged.domain.tld 445
Trying 87.98.XX.X12…
Fini en timout sur 445.Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.