cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with SHARE and Sharepoint after openLDAP

grahammills
Champ in-the-making
Champ in-the-making
After installing Alfresco successfully I tried to get open ldap to work for authentication. I did get that sort of working but I failed to get it working for CIFS access, I know what I have to do but I did not want to allow all 12,000 registered users access to alfresco well not just yet anyway. I have now removed the ldap xml files and properties files and restarted the system. However, since doing that SHARE no longer works correctly, it cannot find any sites. They still exist if I use the alfresco interface and I have no problems with that. However if I use the share web interface I get problems like:

The Web Script /share/service/components/invite/members-bar has responded with a status of 500 - Internal Error.

500 Description:   An error inside the HTTP server which prevented it from fulfilling the request.

Message:   Error during remote call. status: 500, response: { "status" : { "code" : 500, "name" : "Internal Error", "description" : "An error inside the HTTP server which prevented it from fulfilling the request." }, "message" : "Wrapped Exception (with status template): Failed to execute script '\/org\/alfresco\/repository\/site\/membership\/memberships.get.js (in classpath store file:\/opt\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': An authority was not found for GROUP_site_ccfd9_SiteManager", "exception" : "org.alfresco.web.scripts.WebScriptException - Wrapped Exception (with status template): Failed to execute script '\/org\/alfresco\/repository\/site\/membership\/memberships.get.js (in classpath store file:\/opt\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': An authority was not found for GROUP_site_ccfd9_SiteManager", "callstack" : [ "" ,"org.alfresco.repo.security.authority.UnknownAuthorityException: An authority was not found for GROUP_site_ccfd9_SiteManager" ,"org.alfresco.repo.security.authority.AuthorityDAOImpl.getContainedAuthorities(AuthorityDAOImpl.java:213)" ,"org.alfresco.repo.security.authority.AuthorityServiceImpl.getContainedAuthorities(AuthorityServiceImpl.java:285)" ,"org.alfresco.repo.site.SiteServiceImpl.listMembers(SiteServiceImpl.java:666)" ,"org.alfresco.repo.site.script.Site.listMembers(Site.java:268)" ,"sun.reflect.GeneratedMethodAccessor692.invoke(Unknown Source)" ,"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)" ,"java.lang.reflect.Method.invoke(Method.java:597)" ,"org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)" ,"org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)" ,"org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)" ,"org.mozilla.javascript.gen.c108._c0(AlfrescoScript:8)" ,"org.mozilla.javascript.gen.c108.call(AlfrescoScript)" ,"org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)" ,"org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)" ,"org.mozilla.javascript.gen.c108.call(AlfrescoScript)" ,"org.mozilla.javascript.gen.c108.exec(AlfrescoScript)" ,"org.mozilla.javascript.Context.evaluateString(Context.java:1196)" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:390)" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:122)" ,"org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:263)" ,"org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:108)" ,"org.alfresco.web.scripts.AbstractWebScript.executeScript(AbstractWebScript.java:800)" ,"org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:90)" ,"org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:319)" ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)" ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:368)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:390)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:273)" ,"org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:261)" ,"org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)" ,"org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)" ,"javax.servlet.http.HttpServlet.service(HttpServlet.java:717)" ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)" ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)" ,"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)" ,"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)" ,"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)" ,"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)" ,"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)" ,"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)" ,"org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)" ,"org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)" ,"org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)" ,"java.lang.Thread.run(Thread.java:619)" ,"org.alfresco.scripts.ScriptException: Failed to execute script '\/org\/alfresco\/repository\/site\/membership\/memberships.get.js (in classpath store file:\/opt\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': An authority was not found for GROUP_site_ccfd9_SiteManager" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:126)" ,"org.alfresco.web.scripts.WebScriptException: Wrapped Exception (with status template): Failed to execute script '\/org\/alfresco\/repository\/site\/membership\/memberships.get.js (in classpath store file:\/opt\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': An authority was not found for GROUP_site_ccfd9_SiteManager" ,"org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:595)" ], "server" : "Alfresco Labs v3.0.0 (Stable 1526) schema 1,002", "time" : "01-May-2009 11:59:21" }
Server:   Alfresco Labs v3.0.0 (Stable 1526) schema 1,002
Time:   01-May-2009 11:59:21
   
Diagnostics:   Inspect Web Script (org/alfresco/components/invite/members-bar.get)
Search for Site Members

If I try and use SharePoint to connect to the sites I get the following message:

Documents in this folder are not available. The folder may have been moved, or deleted, or network problems may be preventing a connection to the server.

Now I know that I changed several things while trying to get openLDAP to work but while I was using openLDAP to authenticate the SHARE access continued to work, its only since I switched the LDAP off that I cannot use the share access.

Anyone got any pointers or thoughts as what I can do next?

Thanks
Graham
10 REPLIES 10

mikeh
Star Contributor
Star Contributor
I suspect your LDAP sync is wiping out all the automatically-generated Share groups.

You need to set ldap.synchronisation.import.group.clearAllChildren=false in the ldap-synchronisation.properties

Please see https://issues.alfresco.com/jira/browse/ETHREEOH-1594

Thanks,
Mike

grahammills
Champ in-the-making
Champ in-the-making
Mike,

Thanks for that, I am slightly confused as I have removed my ldap files as I have decided not to use ldap for now. Do I need to switch it back on with that change and then remove the files again?

I also have a problem with share in that I cannot create any new sites. Has the database links been broken and I have to remove and start again?


Thanks
Graham

mikeh
Star Contributor
Star Contributor
Not sure why you can't create new sites - what's preventing you from doing that?

You'll have to either start again, or re-create the groups using the Explorer (/alfresco) web client. Once you can create new sites again, look at the format for the group names and create them for the sites you want to keep.

Thanks,
Mike

grahammills
Champ in-the-making
Champ in-the-making
Mike,

I'm not sure either, when I am in share if I click the create site icon and fill in the details for the new site in the window the OK button remains greyed out. Having looked at the groups management in /alfresco I do not have any groups to manage. If I look at the site description in /alfresco it again does not give and group information. It is as if the link between the /share and the files are broken.

When I search for sites within share I get the following error:

Wrapped Exception (with status template): Error during processing of the template 'Method public org.alfresco.repo.jscript.ScriptableHashMap org.alfresco.repo.site.script.Site.listMembers(java.lang.String,java.lang.String) threw an exception when invoked on org.alfresco.repo.site.script.Site@1b72690'. Please contact your system administrator.

Would it help if I downloaded the latest  LABS 3 version and install it again?

Thanks
Graham

mikeh
Star Contributor
Star Contributor
…I click the create site icon and fill in the details for the new site in the window the OK button remains greyed out.
That usually means you're trying to set some invalid values. What are the input fields you're entering?

Would it help if I downloaded the latest  LABS 3 version and install it again?
That's up to you. It depends on how attached you are to your existing data. Note that a reinstall itself won't wipe out any data, but nor will it fix the problem at hand.

Thanks,
Mike

grahammills
Champ in-the-making
Champ in-the-making
Mike,

Sorry yes not ceating a site was my problem. I have now created a site in /share but things are not acting as they should, the site appears on my dashboard but when I search for any sites I still get the error message:

Wrapped Exception (with status template): Error during processing of the template 'Method public org.alfresco.repo.jscript.ScriptableHashMap org.alfresco.repo.site.script.Site.listMembers(java.lang.String,java.lang.String) threw an exception when invoked on org.alfresco.repo.site.script.Site@1bd3e08'. Please contact your system administrator.

Also when using the SharePoint access I still get the error and cannot see the sites. The other thing is  that in my task list I have messages like:
Site Invite, Not Yet Started
Accept | Reject | cancel

I just created a site under admin and invited my account to that site, so I still cannot see any sites, even those I have created since removing LDAP from the equation.

Thanks
Graham

mikeh
Star Contributor
Star Contributor
Yes, you'll still have to fix-up the deleted groups using the Explorer client.

Up to you whether you do that, or remove them from under the Sites space and re-create using Share.

Mike

grahammills
Champ in-the-making
Champ in-the-making
Mike

Many thanks. I had to remove all sites and then try and create them again. Luckily it was a trial system and nothing has been lost. However, there is an issue with trying to change authentication methods that can cause a problem with alfresco. I now have a user that I cannot delete as it seems that it was added under open LDAP and cannot be deleted. I get the following message:

Please correct the errors below then click OK.

    * Unable to delete the User object associated with the Person. This is not an error if an external authentication mechanism such as NTLM was previously active.

It may not be an error but I cannot remove that user?

Graham

nigelwheat
Champ in-the-making
Champ in-the-making
Did you resolve the sites issue by deleteing the sites from the Alfresco web interface? Or did you go into the database and manually remove things? I am having the same problem but with AD/LDAP.