[ 
http://jira.codehaus.org/browse/MRM-711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129124#action_129124
 ] 

Maria Odea Ching commented on MRM-711:
--------------------------------------

Looking further into this, it wasn't a problem with the registry.. but 
originates in the GuestUserEnvironmentCheck when it looks up the guest user. 
For some reason the basedn is not set in the LdapUserMapper where the user is 
searched, resulting to the NPE.

18992 [WrapperSimpleAppMain] INFO  
org.apache.maven.archiva.scheduled.executors.ArchivaRepositoryScanningTaskExecutor
  - Initialized 
org.apache.maven.archiva.scheduled.executors.ArchivaRepositoryScanningTaskExecutor
18992 [WrapperSimpleAppMain] INFO  taskQueueExecutor#repository-scanning  - 
Starting task executor, thread name 'repository-scanning'.
19008 [WrapperSimpleAppMain] INFO  
org.apache.maven.archiva.web.startup.SecuritySynchronization  - Running 
Environment Check: required-roles
19008 [WrapperSimpleAppMain] INFO  
org.apache.maven.archiva.security.ArchivaStandardRolesCheck  - Checking the 
existance of required roles.
19051 [WrapperSimpleAppMain] INFO  
org.apache.maven.archiva.security.ArchivaStandardRolesCheck  - Checking the 
existance of required operations.
19082 [WrapperSimpleAppMain] INFO  
org.apache.maven.archiva.web.startup.SecuritySynchronization  - Running 
Environment Check: ExpectedJsps
19082 [WrapperSimpleAppMain] INFO  
org.apache.maven.archiva.web.startup.SecuritySynchronization  - Running 
Environment Check: locked-admin-check
19902 [WrapperSimpleAppMain] INFO  
org.apache.maven.archiva.web.startup.SecuritySynchronization  - Running 
Environment Check: guest-user-check
19921 [WrapperSimpleAppMain] INFO  ldapController  - Searching for user: guest
19922 [WrapperSimpleAppMain] INFO  ldapController  - Searching for users with 
filter: '(&(objectClass=inetOrgPerson)(cn=guest))' from base dn: null
20802 [WrapperSimpleAppMain] INFO org.quartz.simpl.RAMJobStore - RAMJobStore 
initialized.
20802 [WrapperSimpleAppMain] INFO org.quartz.impl.StdSchedulerFactory - Quartz 
scheduler 'defaultScheduler' initialized from an externally provided properties 
instance.
20802 [WrapperSimpleAppMain] INFO org.quartz.impl.StdSchedulerFactory - Quartz 
scheduler version: 1.4.5
20803 [WrapperSimpleAppMain] INFO org.quartz.core.QuartzScheduler - Scheduler 
defaultScheduler_$_NON_CLUSTERED started.
22067 [WrapperSimpleAppMain] ERROR org.mortbay.log - Failed startup of context 
[EMAIL 
PROTECTED]/archiva,file:/home/deng/Projects/archiva-new-trunk/archiva-jetty/target/apache-archiva-1.1-SNAPSHOT/apps/archiva/}
java.lang.NullPointerException
        at javax.naming.InitialContext.getURLScheme(InitialContext.java:228)
        at 
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:277)
        at 
javax.naming.directory.InitialDirContext.getURLOrDefaultInitDirCtx(InitialDirContext.java:87)
        at 
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
        at 
org.codehaus.plexus.redback.users.ldap.ctl.DefaultLdapController.searchUsers(DefaultLdapController.java:141)
        at 
org.codehaus.plexus.redback.users.ldap.ctl.DefaultLdapController.getUser(DefaultLdapController.java:193)
        at 
org.codehaus.plexus.redback.users.ldap.LdapUserManager.findUser(LdapUserManager.java:217)
        at 
org.codehaus.plexus.redback.users.configurable.ConfigurableUserManager.findUser(ConfigurableUserManager.java:111)
        at 
org.codehaus.plexus.redback.xwork.checks.security.GuestUserEnvironmentCheck.validateEnvironment(GuestUserEnvironmentCheck.java:82)
        at 
org.apache.maven.archiva.web.startup.SecuritySynchronization.executeEnvironmentChecks(SecuritySynchronization.java:151)
        at 
org.apache.maven.archiva.web.startup.SecuritySynchronization.startup(SecuritySynchronization.java:125)
        at 
org.apache.maven.archiva.web.startup.ArchivaStartup.contextInitialized(ArchivaStartup.java:61)
        at 
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:539)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
        at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1216)
        at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:509)
        at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:447)
        at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
        at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
        at 
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
        at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
        at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
        at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
        at 
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
        at org.mortbay.jetty.Server.doStart(Server.java:222)
        at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
        at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:977)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.mortbay.start.Main.invokeMain(Main.java:194)
        at org.mortbay.start.Main.start(Main.java:509)
        at org.mortbay.start.Main.main(Main.java:119)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
        at java.lang.Thread.run(Thread.java:595)
22071 [WrapperSimpleAppMain] INFO org.mortbay.log - Opened 
/home/deng/Projects/archiva-new-trunk/archiva-jetty/target/apache-archiva-1.1-SNAPSHOT/logs/2008_03_29.request.log

> Security using ldap throws NullPointerException
> -----------------------------------------------
>
>                 Key: MRM-711
>                 URL: http://jira.codehaus.org/browse/MRM-711
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security
>    Affects Versions: 1.0.1
>         Environment: Ubuntu Linux, Open-ldap
>            Reporter: Lucas Vilela de Souza Gonçalves
>            Assignee: Maria Odea Ching
>            Priority: Critical
>             Fix For: 1.1
>
>
> I configured ~/.m2/security.properties with ldap information.
> In DefaultArchivaConfiguration the Registry load all informations of 
> security.properties.
> When i was loggin throws this Exception:
> java.lang.NullPointerException
>       
> org.codehaus.plexus.redback.common.ldap.connection.LdapConnection.<init>(LdapConnection.java:58)
>       
> org.codehaus.plexus.redback.common.ldap.connection.ConfigurableLdapConnectionFactory.getConnection(ConfigurableLdapConnectionFactory.java:123)
>       
> org.codehaus.plexus.redback.authentication.ldap.LdapBindAuthenticator.authenticate(LdapBindAuthenticator.java:92)
> I got redback source code, and i see that any information of ldap was there 
> in LdapConnection!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to