Alfresco CIFS und FreeBSD

Gespeichert von jens am/um 16. Januar 2012 - 10:59

Wer Alfresco benutzt, dem ist sicherlich aufgefallen, daß man unter FreeBSD so seine Probleme hat CIFS zum Laufen zu bringen.

Wenn die Datei webapps/alfresco/WEB-INF/classes/alfresco/subsystems/fileServers/default/file-servers-context.xml öffnet und nach 2 Codestellen sucht, die etwa so aussehen:


< property name="platforms">
  < value>linux,solaris,macosx< /value>
< /property>

Diese Zeilen sollten auskommentiert oder gelöscht werden (Sie tauchen 2x auf!).
Danach muß CIFS natürlich noch konfiguriert werden. Hilfe hierzu gibt es ausreichend im Netz (Ports > 1024 und Portweiterleitung per Firewall).

Eine beispielhafte Portweiterleitung mit PF sieht wie folgt aus:


rdr pass on $ext_if inet proto tcp from any to any port 137 -> 127.0.0.1 port 1137                                                                                                                                                             
rdr pass on $ext_if inet proto tcp from any to any port 138 -> 127.0.0.1 port 1138                                                                                                                                                             
rdr pass on $ext_if inet proto tcp from any to any port 139 -> 127.0.0.1 port 1139                                                                                                                                                             
rdr pass on $ext_if inet proto tcp from any to any port 445 -> 127.0.0.1 port 1445