【问题标题】:Create user group as subgroup in WebSphere 7 (Portal)在 WebSphere 7 (Portal) 中创建用户组作为子组
【发布时间】:2011-02-07 21:54:15
【问题描述】:

在 websphere 7 门户服务器上运行的 portlet 中,我想创建一个新用户组,它是现有组的子组。

这里是代码(我尽可能缩短以保持焦点):

/* vars */
final PumaController controller = ...;
final PumaLocator locator = ...;
final PumaProfile pumeProfile = ...;
final groupCn = ... ;

/* code to add group */
final List<Group> parent = locator.findGroupsByAttribute("cn", CN_OF_GROUP);
final String parentDn = pumaProfile.getIdentifier(parent.get(0));
log.debug("creating new group with cn=" + groupCn + ", parentDn=" + parentDn);
newGroup = controller.createGroup(groupCn, parentDn, new HashMap<String, Object>(0));

调试语句打印:

创建新组 cn=[groupCn], parentDn=cn=[CN_OF_GROUP],o=defaultWIMFileBasedRealm

代码确实创建了一个组。但看起来 parentDN 参数被忽略了。该组不是作为父组的子组创建的,而是作为顶级组创建的。 (如果我将 null 作为 parentDn 传递,会发生同样的事情)。

我在这里做错了什么?

【问题讨论】:

    标签: user-management websphere-portal websphere-7


    【解决方案1】:

    可能什么都没有。如果我是你,我会提出 PMR。

    如果您配置了联合安全性而不是独立安全性,请顺便删除基于文件的领域。在配置联合安全性时,您应该始终将其删除。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-08
      • 1970-01-01
      相关资源
      最近更新 更多