Using version 1.461.
We have our security using Active Directory, but it's the same issue I
have with LDAP setup.
We are using basic Matrix security. The idea is that everyone in the
"MFX-CM" group is an administrator, and everyone who can log in is
authenticated. I am a member of the mfx-cm group.
I have my Active Directory setup like this:
Domain Name: MFXServices.intr
Domain controller: (blank)
Site: (blank)
Bind DN: CN=MFXCM SubVersion,OU=Users,OU=Roanoke,OU=Accounts,
DC=mfxservices,DC=intr
Bind Password: ******************************
Jenkins accepts this.
When I fill in the matrix based security table, I see the "double
person" icon when I put in Authenticated and when I put in "mfx-cm". I
see a "single person" icon when I put in "dweintraub".
As long as I have "authenticated" setup as an administrator, I can do
administration. Setting user "dweintraub" and group "mfx-cm" as
administrators will not work. As soon as I uncheck the administrator
box in "authenticated" and save, I can log in, but not change the
configuration.
I then noticed that if I click on my name I get the URL
http://builds/jenkins/user/David%20Weintraub/? and not "dweintraub". I
enter the user "David Weintraub" into the matrix based security and
that shows the red circle with the "X" through it icon as if "David
Weintraub" is an invalid user. However, if I give this invalid user
administrator privileges, I can once again act as an administrator
without authenticated having administrator permissions too.
To Summarize:
* Jenkins takes "dweintraub" as my login.
* User "dweintraub" shows up as a valid group in the matrix based security box
* I'm a member of the mfx-cm group
* Both "dweintraub" and "mfx-cm" are administrators in the matrix
based security scheme.
* I login with "dweintraub" and not "David Weintraub"
* I lose all administrator privileges unless "David Weintraub" in the
matrix based security table is also entered.
* User "David Weintraub" shows an invalid user icon when entered into
the Matrix Based Security table.
Somehow, Jenkins is reading our AD or LDAP to know that my login
"dweintraub" is good, but then thinks I'm user "David Weintraub". Yet,
in the matrix based security table, user "David Weintraub" isn't a
valid user.
I downgraded to the Active Directory 1.26 plugin, and that solved the
"dweintraub" vs. "David Weintraub". The 1.26 version understands I'm
user "dweintraub" when I log in as "dweintraub". However, it still
can't figure out I'm in the mfx-cm group.
And, I notice I get the following error when I go into the
configuration page (
http://jenkins/jenkins/configure):
Apr 27, 2012 3:47:04 PM
hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider
retrieveUser
WARNING: Credential exception tying to authenticate against
MFXServices.intr domain
org.acegisecurity.userdetails.UsernameNotFoundException:
Authentication was successful but cannot locate the user information
for mfx-cm
at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:198)
at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:130)
at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:95)
at hudson.plugins.active_directory.AbstractActiveDirectoryAuthenticationProvider.loadUserByUsername(AbstractActiveDirectoryAuthenticationProvider.java:27)
at hudson.plugins.active_directory.ActiveDirectorySecurityRealm.loadUserByUsername(ActiveDirectorySecurityRealm.java:551)
at hudson.security.GlobalMatrixAuthorizationStrategy$DescriptorImpl.doCheckName_(GlobalMatrixAuthorizationStrategy.java:304)
at hudson.security.GlobalMatrixAuthorizationStrategy$DescriptorImpl.doCheckName(GlobalMatrixAuthorizationStrategy.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Note that this is complaining about the USER mfx-cm, but this is an
active directory group and not a user. Also notice that this group
shows up correctly (i.e. it shows the group icon) when I'm looking in
the security matrix table.
While I am at it, I also noticed this error when I go into the
configuration. Anyone have any idea what's causing it?
Apr 27, 2012 3:47:01 PM hudson.ExpressionFactory2$JexlExpression evaluate
WARNING: Caught exception evaluating:
descriptor.getPropertyType(instance,field).itemTypeDescriptorOrDie.
Reason: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125)
at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314)
at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185)
--
David Weintraub
qaz...@gmail.com