Well we have reached the limit of my LDAP foo... Kohsuke?

On Thursday, 24 October 2013, Mauricio wrote:

> Hi Stephen,
>
> Thanks of answering...
>
> 2013/10/24 Stephen Connolly 
> <[email protected]<javascript:_e({}, 'cvml', 
> '[email protected]');>
> >
> >
> > Copy and paste the following into the script console, changing the names
> to ones appropriate to your LDAP server
> >
> >   String[] names = ["a group name","a user name","a name that does not
> exist"];
> >     for (name in names) {
> >       println("Checking the name '" + name + "'...")
> >       try {
> >         println("  It is an USER: " +
> Jenkins.instance.securityRealm.loadUserByUsername(name))
> >       } catch (Exception e) {
> >           try {
> >             println("  It is a GROUP: " +
> Jenkins.instance.securityRealm.loadGroupByGroupname(name))
> >             continue
> >           } catch (Exception e1) {
> >             println("  It is NOT a group, reason: " + e1.getMessage())
> >           }
> >         println("  It is NOT an user, reason: " + e.getMessage())
> >       }
> >       println("");
> >     }
> >
> >
> >
> > See what output you get... I suspect that you need to tweak some of the
> filters and queries to get auth working...
> >
>
> I got the following output
>
> <RESULT>
> Checking the name 'exisinggroup'...
>   It is a GROUP: hudson.security.LDAPSecurityRealm$1@17c5050
> Checking the name 'existinguser'...
>   It is an USER:
> org.acegisecurity.userdetails.ldap.LdapUserDetailsImpl@2d7c9e
>
> Checking the name 'nonexistinguser'...
>   It is NOT a group, reason: nonexistinguser
>   It is NOT an user, reason: User nonexistinguser not found in directory.
> </RESULT>
>
> >
> > Also
> >
> > IS YOUR LDAP SERVER CALLED ACTIVE DIRECTORY?
>
> No
>
>
> >
> >
> > If it is, please try the "Active Directory" plugin as it should "just
> work"... the LDAP one is really for real LDAP servers not that fake LDAP
> server known as Active Directory
> >
> > On 23 October 2013 14:43, Mauricio 
> > <[email protected]<javascript:_e({}, 'cvml', 
> > '[email protected]');>>
> wrote:
> >>
> >>
> >>
> >>
> >> 2013/10/22 Mauricio <[email protected] <javascript:_e({},
> 'cvml', '[email protected]');>>
> >>>
> >>>
> >>> On Oct 22, 2013 6:49 PM, "Daniel Beck" 
> >>> <[email protected]<javascript:_e({}, 'cvml', '[email protected]');>>
> wrote:
> >>> >
> >>> > On 22.10.2013, at 23:21, Mauricio 
> >>> > <[email protected]<javascript:_e({}, 'cvml', 
> >>> > '[email protected]');>>
> wrote:
> >>> >
> >>> > > Are you refering to the *nix command or is that a Jenkins plugin?
> >>> >
> >>> > That's a URL path to a Jenkins page with some diagnostic information
> about your user account. Open http://jenkinshost/whoAmI or
> http://jenkinshost/jenkins/whoAmI (depending on your configuration) in
> your browser after logging in.
> >>>
> >>> It says that I'm log as anonymous
> >>>
> >>>
> >>
> >> Do know you know any other way to debug this?
> >>
> >> Thanks!
> >>
> >>
> >>>
> >>> >
> >>> > --
> >>> > You received this message because you are subscribed to a topic in
> the Google Groups "Jenkins Users" group.
> >>> > To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/aP-2C5vuS3A/unsubscribe.
> >>> > To unsubscribe from this group and all its topics, send an email to
> [email protected] <javascript:_e({}, 'cvml',
> 'jenkinsci-users%[email protected]');>.
> >>> > For more options, visit https://groups.google.com/groups/opt_out.
> >>
> >>
> >>
> >>
> >> --
> >> Saludos!
> >> Mauricio
> >>
> >> --
> >> 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]<javascript:_e({}, 
> 'cvml',
> 'jenkinsci-users%[email protected]');>.
> >>
> >> For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> > --
> > You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> > To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/aP-2C5vuS3A/unsubscribe.
> > To unsubscribe from this group and all its topics, send an email to
> [email protected] <javascript:_e({}, 'cvml',
> 'jenkinsci-users%[email protected]');>.
> > For more options, visit https://groups.google.com/groups/opt_out.
>
>
> --
> Saludos!
> Mauricio
>
> --
> 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] <javascript:_e({},
> 'cvml', 'jenkinsci-users%[email protected]');>.
> For more options, visit https://groups.google.com/groups/opt_out.
>


-- 
Sent from my phone

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to