Hello again. Still trying to configure jetspeed with ldap.
I got some logs: Actually jetspeed tries to connect to ldap, and the ldap server trhows an exception and disconnects jetspeed. These are the jetspeed logs 22.06.2011 09:23:33 DEBUG [org.springframework.ldap.pool.factory.DirContextPoolableObjectFactory.makeObject ():123] Creating a new READ_ONLY DirContext 22.06.2011 09:23:34 DEBUG [org.springframework.ldap.core.support.AbstractContextSource.createContext ():259] Got Ldap context on server 'ldap://localhost:10389/ou=system' 22.06.2011 09:23:34 DEBUG [org.springframework.ldap.pool.factory.DirContextPoolableObjectFactory.makeObject ():142] Created new READ_ONLY DirContext='javax.naming.ldap.InitialLdapContext@1c7956b' 22.06.2011 09:23:34 DEBUG [org.springframework.ldap.pool.validation.DefaultDirContextValidator.validateDirContext ():169] DirContext 'javax.naming.ldap.InitialLdapContext@1c7956b' passed validation. 22.06.2011 09:23:49 ERROR [org.springframework.ldap.control.AbstractFallbackRequestAndResponseControlDirContextProcessor.postProcess ():186] No matching response control found for paged results - looking for 'class javax.naming.ldap.PagedResultsResponseControl 22.06.2011 09:23:49 ERROR [org.apache.jetspeed.security.spi.impl.OnStartupSecuritySynchronizationBean.refresh ():78] Error occured while executing JetspeedPostContextLoader org.apache.jetspeed.security.SecurityException: Unexpected security error at org.apache.jetspeed.security.mapping.ldap.dao.impl.SpringLDAPEntityDAO from getEntities: localhost:10389; socket closed; nested exception is javax.naming.ServiceUnavailableException: localhost:10389; socket closed; remaining name 'ou=Groups' at org.apache.jetspeed.security.mapping.ldap.dao.impl.SpringLDAPEntityDAO.getEntities (SpringLDAPEntityDAO.java:137) at org.apache.jetspeed.security.mapping.ldap.dao.impl.SpringLDAPEntityDAO.getAllEntities (SpringLDAPEntityDAO.java:117) at org.apache.jetspeed.security.mapping.ldap.dao.DefaultLDAPEntityManager.getAllEntities (DefaultLDAPEntityManager.java:119) at org.apache.jetspeed.security.spi.impl.DefaultJetspeedSecuritySynchronizer.synchronizePrincipalsByType (DefaultJetspeedSecuritySynchronizer.java:137) at org.apache.jetspeed.security.spi.impl.OnStartupSecuritySynchronizationBean.refresh (OnStartupSecuritySynchronizationBean.java:70) ... Caused by: org.springframework.ldap.ServiceUnavailableException: localhost:10389; socket closed; nested exception is javax.naming.ServiceUnavailableException: localhost:10389; socket closed; remaining name 'ou=Groups' at org.springframework.ldap.support.LdapUtils.convertLdapException (LdapUtils.java:210) at org.springframework.ldap.core.LdapTemplate.search (LdapTemplate.java:319) at org.springframework.ldap.core.LdapTemplate.search (LdapTemplate.java:361) at org.apache.jetspeed.security.mapping.ldap.dao.impl.SpringLDAPEntityDAO.getEntities (SpringLDAPEntityDAO.java:133) ... 40 more Caused by: javax.naming.ServiceUnavailableException: localhost:10389; socket closed; remaining name 'ou=Groups' at com.sun.jndi.ldap.Connection.readReply(Connection.java:416) These are the ldap logs (apache dir server): 09:23:34] WARN [org.apache.directory.server.ldap.LdapProtocolHandler] - Unexpected exception forcing session to close: sending disconnect notice to client. org.apache.mina.filter.codec.ProtocolDecoderException: java.lang.ArrayIndexOutOfBoundsException: 5 (Hexdump: 30 82 01 2C 02 01 03 63 81 E2 04 13 6F 75 3D 47 72 6F 75 70 73 2C 6F 75 3D 73 79 73 74 65 6D 0A 01 02 0A 01 03 02 01 00 02 01 00 01 01 00 A3 1B 04 0B 6F 62 6A 65 63 74 43 6C 61 73 73 04 0C 67 72 6F 75 70 4F 66 4E 61 6D 65 73 30 81 9E 04 06 6D 65 6D 62 65 72 04 02 63 6E 04 0B 64 65 73 63 72 69 70 74 69 6F 6E 04 0B 6F 62 6A 65 63 74 43 6C 61 73 73 04 12 6A 61 76 61 53 65 72 69 61 6C 69 7A 65 64 44 61 74 61 04 0D 6A 61 76 61 43 6C 61 73 73 4E 61 6D 65 04 0B 6A 61 76 61 46 61 63 74 6F 72 79 04 0C 6A 61 76 61 43 6F 64 65 42 61 73 65 04 14 6A 61 76 61 52 65 66 65 72 65 6E 63 65 41 64 64 72 65 73 73 04 0E 6A 61 76 61 43 6C 61 73 73 4E 61 6D 65 73 04 12 6A 61 76 61 52 65 6D 6F 74 65 4C 6F 63 61 74 69 6F 6E A0 42 30 19 04 17 32 2E 31 36 2E 38 34 30 2E 31 2E 31 31 33 37 33 30 2E 33 2E 34 2E 32 30 25 04 16 31 2E 32 2E 38 34 30 2E 31 31 33 35 35 36 2E 31 2E 34 2E 33 31 39 01 01 FF 04 08 30 06 02 02 01 00 04 00) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived (ProtocolCodecFilter.java:235) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived (DefaultIoFilterChain.java:434) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200 (DefaultIoFilterChain.java:46) ... Caused by: java.lang.ArrayIndexOutOfBoundsException: 5 at org.apache.directory.shared.ldap.codec.search.controls.pagedSearch.PagedResultsControlStatesEnum.getState (PagedResultsControlStatesEnum.java:135) at org.apache.directory.shared.asn1.ber.grammar.GrammarTransition.toString (GrammarTransition.java:95) at org.apache.directory.shared.asn1.ber.grammar.AbstractGrammar.executeAction (AbstractGrammar.java:148) at org.apache.directory.shared.asn1.ber.Asn1Decoder.treatTLVDoneState (Asn1Decoder.java:621) ... [09:23:34] WARN [org.apache.directory.server.ldap.LdapProtocolHandler] - Unexpected exception forcing session to close: sending disconnect notice to client. org.apache.mina.core.write.WriteToClosedSessionException at org.apache.mina.core.polling.AbstractPollingIoProcessor.clearWriteRequestQueue (AbstractPollingIoProcessor.java:573) at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeNow (AbstractPollingIoProcessor.java:525) at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeSessions (AbstractPollingIoProcessor.java:497) ... Then directory server closes the connnection: [09:23:34] WARN [org.apache.directory.server.ldap.LdapProtocolHandler] - Unexpected exception forcing session to close: sending disconnect notice to client. org.apache.mina.core.write.WriteToClosedSessionException at org.apache.mina.core.polling.AbstractPollingIoProcessor.clearWriteRequestQueue (AbstractPollingIoProcessor.java:573) I've used apache directory server out of the box. Is there something to initialize, a schema or something... I'm not very familiar with LDAP and I must confess the logs are a little bit esoteric for me. :-( Regards, Jérôme Exposition Richard Prince. American Prayer - du 29 mars 2011 au 26 juin 2011 - BnF - François-Mitterrand / Grande Galerie Avant d'imprimer, pensez à l'environnement. --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org For additional commands, e-mail: jetspeed-user-h...@portals.apache.org