On Oct 22, 2013 6:08 PM, "Daniel Beck" <m...@beckweb.net> wrote:
>
> What's shown on /whoAmI ?
Are you refering to the *nix command or is that a Jenkins plugin?
> 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 jenkinsci-use...@googlegroups.com.
It says that I'm log as anonymous
On Oct 22, 2013 6:49 PM, "Daniel Beck" <m...@beckweb.net> wrote:
>
> On 22.10.2013, at 23:21, Mauricio <fuentes...@gmail.com> 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
>
> --
> 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 jenkinsci-use...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
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(""); }
--
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 jenkinsci-use...@googlegroups.com.
Hi Stephen,
Thanks of answering...
2013/10/24 Stephen Connolly <stephen.al...@gmail.com>
>
> 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
> RemoteIpAddress: 127.0.0.1;
Is Jenkins behind a reverse proxy?
What happens when you try to access it directly?
When you go to 'Manage Jenkins', does an error about your reverse proxy setup appear?
Did you configure the URL to Jenkins in the global configuration?
--
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 jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
2013/10/24 Daniel Beck <m...@beckweb.net>> RemoteIpAddress: 127.0.0.1;
Is Jenkins behind a reverse proxy?Yes and using SSL.What happens when you try to access it directly?The application is running on the port 8080, I can't access it directly. I just can access it through the port 80.When you go to 'Manage Jenkins', does an error about your reverse proxy setup appear?No, no message there.Did you configure the URL to Jenkins in the global configuration?Yes, I've configured the HTTPS URL on the global configuration page.
Thanks of answer!
--
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 jenkinsci-users+unsubscribe@googlegroups.com.
--
Saludos!
Mauricio