cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 1.4, JBOSS, JAAS and Cifs Help required

mattc
Champ in-the-making
Champ in-the-making
Hi

We are running alfresco on jboss on solaris and are having problems getting the CIFS server to run when we enable JAAS to authenticate users to the web interface.

Our configurations are similar to the posting http://forums.alfresco.com/viewtopic.php?p=15413&sid=59b9f09eadae37dcc5418f8c38cec46e

but we have run into two problems. The first we have worked around in that we had to modify the /<jboss>/server/default/conf/login-config.xml to enable  JAAS.

So now we can login to web pages via JAAS and webdav but when alfresco starts we get the following error

17:23:38,905 ERROR [protocol] CIFS server configuration error, Wrong authentication setup for alfresco authenticator
org.alfresco.error.AlfrescoRuntimeException: Wrong authentication setup for alfresco authenticator
        at org.alfresco.filesys.server.config.ServerConfiguration.processSecurityConfig(ServerConfiguration.java:1777)
        at org.alfresco.filesys.server.config.ServerConfiguration.init(ServerConfiguration.java:514)
        at org.alfresco.filesys.server.config.ServerConfiguration.onBootstrap(ServerConfiguration.java:3351)


It seems as if the file-servers-custom.xml file is not having any effect on the cifs server. Is this our problem in that we should be editing the default configuration files in the application WAR or is it another case of jboss setup being different.

The other issue I have is how to integrate cifs with AD when the server is a unix box. How do I add the box to the domain (samba?) so that I can run the setspn -a alfresco-cifs/<server-name> <server-name> command from http://wiki.alfresco.com/wiki/Configuring_the_CIFS_server_for_Kerberos/Active_Directory_integration


Cheers

Matt
3 REPLIES 3

mattc
Champ in-the-making
Champ in-the-making
Hi

I managed to figure it out (well most of it). The first problem was that the default configuration directory had a copy of file-server-custom.xml file in the extension directory (<alfresco>/jboss/server/default/tmp/deploy/tmp*alfresco.war/WEB-INF/classes/alfresco/extension). So the one in the normal extension folder (<alfresco>/jboss/server/default/conf/alfresco/extension) was never being read.  We expanded the alfresco.war  file, deleted the extra file-server-custom.xml file and remade the war. Now the cifs server starts up using the file-server-custom.xml file from the normal extension folder (we also needed to remove the .sample extension from network-protocol-context.xml.sample).

Not all fixed yet but at least the cifs server is now trying to connect to the AD servers. Now I just need to configure the AD connector (which I now have working for our tomcat/alfresco install).


Is this a Bug?

Cheers

Matt

paul_jacobs
Champ in-the-making
Champ in-the-making
I have the same issue.  Can you describe your war rebuilding solution in more detail?

prototribe
Champ in-the-making
Champ in-the-making
Paul,

Based on the above comments there are two file-server-custom.xml files. One in the standard "extension" directory that should be there and one that appears accidentally (maybe intentionally) bundled into the alfresco.war file. Actually there may be three if your jboss explodes war files upon deployment.

You can cheat and just edit "file-servers.xml" file, though most will say not to do that (by the time you upgrade you will have forgotten that you made that change, plus a re-deploy of the war could over-write the file).

The second is removing the offending file entirely. The exact jar commands maybe a bit off as i'm going by memory.
1. Find "alfresco.war".
2a. On unix extract the archive with "jar -xvf alfresco.war" this assumes you have your path correctly set to run the jar command.
2b. On windows, open the archive the same way via a command prompt or use an archive tool like 7-zip (my preference when I have to windows).
3. Find the file "file-server-custom.xml" and delete it.
4a. On unix re-create the alfresco.war file with "jar -cvf alfresco.war alfresco"
4b.  On windows if using jar see step 4a otherwise just close the archive in 7-zip and it will prompt then save the updated version.
5. Restart jboss.

The offending path will be "alfresco\WEB-INF\classes\alfresco\extension\file-server-custom.xml" in the webapp root of jboss.

That should do the trick.