You don't need to write any groovy script to debug that since that feature 
is already part of the Jenkins Web Interface: 
https://wiki.jenkins-ci.org/display/JENKINS/Logging

Cheers

On Thursday, 2 April 2015 19:00:14 UTC+2, [email protected] wrote:
>
> Hello Folks,
>  
>    I would really appreciate if some one could help me. I have installed 
> jenkins 1.606 on windows,and tried to enable the global security link. I 
> configured everything correctly. When enver I tried to test the login I 
> always brought back to error page.
>  
>
> *Invalid login information. Please try again. Try again*
>
> *If you are a system administrator and suspect this to be a configuration 
> problem, see the server console output for more details.*
>  
>  
> My configuration looks like below:
>   <useSecurity>true</useSecurity>
>   <authorizationStrategy 
> class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy"/>
>   <securityRealm class="hudson.security.LDAPSecurityRealm" plugin="
> [email protected] <javascript:>">
>     <server>ldap://dev-corpldap.com:389</server>
>     <rootDN>dc=mycompany,dc=com</rootDN>
>     <inhibitInferRootDN>false</inhibitInferRootDN>
>     
> <userSearchBase>ou=internal,ou=users,dc=mycompany,dc=com</userSearchBase>
>     <userSearch>uid={0}</userSearch>
>     
> <managerDN>uid=bindid,ou=system,ou=users,dc=mycompany,dc=com</managerDN>
>     <managerPassword>UGFzc3dvcmRAMTIz</managerPassword>
>     <disableMailAddressResolver>true</disableMailAddressResolver>
>   </securityRealm>
>  
> Moreover, on the console log I could not see any log related to call going 
> for ldap auth. All I see like below
>  
> ========================================
> C:\Jenkins>
> C:\Jenkins>java -jar jenkins.war
> Running from: C:\Jenkins\jenkins.war
> webroot: $user.home/.jenkins
> Apr 02, 2015 12:41:19 PM winstone.Logger logInternal
> INFO: Beginning extraction from war file
> Apr 02, 2015 12:41:19 PM org.eclipse.jetty.util.log.JavaUtilLog info
> INFO: jetty-winstone-2.8
> Apr 02, 2015 12:41:21 PM org.eclipse.jetty.util.log.JavaUtilLog info
> INFO: NO JSP Support for , did not find 
> org.apache.jasper.servlet.JspServlet
> Jenkins home directory: C:\Users\e513788\.jenkins found at: 
> $user.home/.jenkins
> Apr 02, 2015 12:41:22 PM org.eclipse.jetty.util.log.JavaUtilLog info
> INFO: Started [email protected]:8080 <javascript:>
> Apr 02, 2015 12:41:22 PM winstone.Logger logInternal
> INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
> Apr 02, 2015 12:41:22 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Started initialization
> Apr 02, 2015 12:41:22 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Listed all plugins
> Apr 02, 2015 12:41:22 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Prepared all plugins
> Apr 02, 2015 12:41:22 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Started all plugins
> Apr 02, 2015 12:41:22 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Augmented all extensions
> Apr 02, 2015 12:41:22 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Loaded all jobs
> Apr 02, 2015 12:41:27 PM org.jenkinsci.main.modules.sshd.SSHD start
> INFO: Started SSHD at port 59175
> Apr 02, 2015 12:41:27 PM hudson.model.AsyncPeriodicWork$1 run
> INFO: Started Download metadata
> Apr 02, 2015 12:41:27 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Completed initialization
> Apr 02, 2015 12:41:28 PM 
> org.springframework.web.context.support.StaticWebApplicationContext 
> prepareRefresh
> INFO: Refreshing 
> org.springframework.web.context.support.StaticWebApplicationContext@60c6fe68 
> <javascript:>: display name [Root WebApplicationContext]; startup date 
> [Thu Apr 02 12:41:28 EDT 2015]; root of context hiera
> Apr 02, 2015 12:41:28 PM 
> org.springframework.web.context.support.StaticWebApplicationContext 
> obtainFreshBeanFactory
> INFO: Bean factory for application context 
> [org.springframework.web.context.support.StaticWebApplicationContext@60c6fe68]:
>  
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory@457d0e81 
> <javascript:>
> Apr 02, 2015 12:41:28 PM 
> org.springframework.beans.factory.support.DefaultListableBeanFactory 
> preInstantiateSingletons
> INFO: Pre-instantiating singletons in 
> org.springframework.beans.factory.support.DefaultListableBeanFactory@457d0e81 
> <javascript:>: defining beans 
> [initialDirContextFactory,bindAuthenticator,ldapUserSearch,authenticatio
> Apr 02, 2015 12:41:28 PM 
> org.acegisecurity.ldap.DefaultInitialDirContextFactory setProviderUrl
> INFO:  URL 'ldap://dev-corpldap.com:389/dc=mycompany,dc=com', root DN is 
> 'dc=mycompany,dc=com'
> Apr 02, 2015 12:41:28 PM 
> org.springframework.web.context.support.StaticWebApplicationContext 
> prepareRefresh
> INFO: Refreshing 
> org.springframework.web.context.support.StaticWebApplicationContext@21306eb2 
> <javascript:>: display name [Root WebApplicationContext]; startup date 
> [Thu Apr 02 12:41:28 EDT 2015]; root of context hiera
> Apr 02, 2015 12:41:28 PM 
> org.springframework.web.context.support.StaticWebApplicationContext 
> obtainFreshBeanFactory
> INFO: Bean factory for application context 
> [org.springframework.web.context.support.StaticWebApplicationContext@21306eb2]:
>  
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory@6ad0f4d1 
> <javascript:>
> Apr 02, 2015 12:41:28 PM 
> org.springframework.beans.factory.support.DefaultListableBeanFactory 
> preInstantiateSingletons
> INFO: Pre-instantiating singletons in 
> org.springframework.beans.factory.support.DefaultListableBeanFactory@6ad0f4d1 
> <javascript:>: defining beans [filter,legacy]; root of factory hierarchy
> Apr 02, 2015 12:41:28 PM hudson.WebAppMain$3 run
> INFO: Jenkins is fully up and running
> Apr 02, 2015 12:41:48 PM hudson.model.AsyncPeriodicWork$1 run
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/63ae3057-462f-4493-a34a-051f001f9d06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to