[JBoss JIRA] Created: (JBPORTAL-1366) LDAPStaticGroupMembershipModuleImpl membershipAttributeIsDN Problem
by Matt Petteys (JIRA)
LDAPStaticGroupMembershipModuleImpl membershipAttributeIsDN Problem
-------------------------------------------------------------------
Key: JBPORTAL-1366
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1366
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal Identity
Affects Versions: 2.6.Beta1
Environment: Debian Linux Etch, java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
Reporter: Matt Petteys
When i enter the portal admin, view the roles, and select view membership. An error is generated that says, "Wrong dn format: mpetteys" where mpetteys is the uid in the memberUid attribute of the ldap group. I have the MembershipModule configured per the below.
<option>
<name>membershipAttributeIsDN</name>
<value>false</value>
</option>
The error is..
2007-04-28 21:25:12,414 DEBUG [org.jboss.portal.identity.ldap.LDAPStaticGroupMembershipModuleImpl] findUsers(): role = cn=user,ou=groups,ou=JbossPor$
2007-04-28 21:25:12,442 ERROR [org.jboss.portal.portlet.container.org_jboss_portal_core_portlet_role_RolePortlet] The portlet threw an exception
java.lang.IllegalArgumentException: Wrong dn format: mpetteys
at org.jboss.portal.identity.ldap.helper.LDAPTools.stripDnToName(LDAPTools.java:53)
at org.jboss.portal.identity.ldap.LDAPStaticGroupMembershipModuleImpl.getUsers(LDAPStaticGroupMembershipModuleImpl.java:180)
at org.jboss.portal.identity.ldap.LDAPStaticGroupMembershipModuleImpl.findRoleMembers(LDAPStaticGroupMembershipModuleImpl.java:402)
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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy221.findRoleMembers(Unknown Source)
This ties back to..
http://anonsvn.jboss.org/repos/portal/tags/JBoss_Portal_2_6_0_BETA1/ident...
In "Set getUsers(Role role, String userNameFilter) throws IdentityException" is the following code segment
//if user is pointed as DN get only it's name
if (!isUidAttributeIsDN())
{
name = LDAPTools.stripDnToName(name);
users.add(getUserModule().findUserByUserName(name));
}
else
{
users.add(getUserModule().findUserByDN(name));
}
I think the not should be removed from the if. If it is DN then stripDnToName should be used.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 2 months
[JBoss JIRA] Created: (JGRP-478) SFC changes
by Bela Ban (JIRA)
SFC changes
-----------
Key: JGRP-478
URL: http://jira.jboss.com/jira/browse/JGRP-478
Project: JGroups
Issue Type: Feature Request
Affects Versions: 2.4.1 SP1
Reporter: Bela Ban
Assigned To: Bela Ban
Fix For: 2.5
Various changes described in the subtasks:
1. Your FC2 is essentially SFC plus (a) credits replenishments only return the bytes read *not* the full credits (OK), (b) they are sent before available credits have been exhausted and (c) with unicast flow control.
2. (a) makes a lot of sense, I'll add it to SFC. (BTW: FC used to do this, but then I changed it to make it simpler :-))
3. (b) Not sure this makes sense; this can be achieved (e.g. in FC) by setting max_credits to a smaller value and increasing min_threshold. I agree that sending smaller number of credits in smaller interval is better, I measured this in my perf tests with SFC. OK, I'll likely implement (b) in SFC as well
4. (c) The reason I didn't do unicast flow control was that SFC was simpler than FC, and I thought we don't need unicast flow control as there are not many unicast messages. Enter Buddy Replication with anycast, and that argument is flawed... :-)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 2 months
[JBoss JIRA] Created: (JBPORTAL-1352) IdentityException Thrown On Startup When Using LDAPExtUserModuleImpl
by Matt Petteys (JIRA)
IdentityException Thrown On Startup When Using LDAPExtUserModuleImpl
--------------------------------------------------------------------
Key: JBPORTAL-1352
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1352
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal Identity
Affects Versions: 2.6.Beta1
Environment: Debian Linux i386
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
Reporter: Matt Petteys
I am attempting to use the LDAPExtUserModuleImpl class for looking up LDAP information in an LDAP source. I have the UserModule configured like the following..
...
<modules>
<module>
<!--type used to correctly map in IdentityContext registry-->
<type>User</type>
<implementation>LDAP</implementation>
<class>org.jboss.portal.identity.ldap.LDAPExtUserModuleImpl</class>
<config/>
</module>
...
When the server starts the following error is thrown and logged in the jboss server.log..
Caused by: java.lang.IllegalArgumentException: Property UserCount has two getters public int org.jboss.portal.identity.ldap.LDAPExtUserModuleImpl.getUserCount() thr
ows org.jboss.portal.identity.IdentityException,java.lang.IllegalArgumentException and public int org.jboss.portal.identity.ldap.LDAPUserModuleImpl.getUserCount() t
hrows org.jboss.portal.identity.IdentityException,java.lang.IllegalArgumentException
at org.jboss.portal.common.mx.JavaBeanModelMBeanBuilder.<init>(JavaBeanModelMBeanBuilder.java:118)
at org.jboss.portal.common.mx.JavaBeanModelMBeanBuilder.build(JavaBeanModelMBeanBuilder.java:288)
at org.jboss.portal.jems.as.system.JBossServiceModelMBean.<init>(JBossServiceModelMBean.java:77)
... 117 more
When I configure it to use LDAPUserModuleImpl, the server starts successfully.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 2 months