Портал WebSphere не может обнаружить группы пользователей IBM LDAP - PullRequest
0 голосов
/ 21 сентября 2018

Я интегрирую WebSphere Portal с сервером IBM LDAP (сервером каталогов IBM Tivoli).Я делаю это с помощью мастера настройки портала.В мастере настройки есть шаг «Замените пользователей и группы на основе файлов WebSphere Portal и WebSphere Application Server пользователями и группами с вашего сервера LDAP».На этом шаге произошел сбой мастера. Я нашел следующий журнал ошибок ----

    /home/portal/WebSphere/ConfigEngine/config/includes/wp_security_internal.xml:90: Given user group 'cn=portaladmins,cn=groups,dc=ibm,dc=co
    m' does not exist.
            at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:139)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
            at org.apache.tools.ant.Task.perform(Task.java:364)
            at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
            at com.ibm.wps.config.If.execute(If.java:67)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
            at org.apache.tools.ant.Task.perform(Task.java:364)
            at org.apache.tools.ant.Target.execute(Target.java:341)
            at org.apache.tools.ant.Target.performTasks(Target.java:369)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
            at com.ibm.wps.config.tasks.AntCallTask.execute(AntCallTask.java:133)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
            at org.apache.tools.ant.Task.perform(Task.java:364)
            at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
            at com.ibm.wps.config.If.execute(If.java:75)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
            at org.apache.tools.ant.Task.perform(Task.java:364)
            at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
            at com.ibm.wps.config.If.execute(If.java:75)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
            at org.apache.tools.ant.Task.perform(Task.java:364)
            at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
            at com.ibm.wps.config.If.execute(If.java:67)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
            at org.apache.tools.ant.Task.perform(Task.java:364)
            at org.apache.tools.ant.Target.execute(Target.java:341)
            at org.apache.tools.ant.Target.performTasks(Target.java:369)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
            at org.apache.tools.ant.Main.runBuild(Main.java:668)
            at org.apache.tools.ant.Main.startAnt(Main.java:187)
            at org.apache.tools.ant.Main.start(Main.java:150)
    at com.ibm.wps.config.ConfigEngine.process(ConfigEngine.java:981)
            at com.ibm.wps.config.ConfigEngine.main(ConfigEngine.java:219)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
            at java.lang.reflect.Method.invoke(Method.java:618)
            at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
            at org.python.core.PyMethod.__call__(PyMethod.java)
            at org.python.core.PyObject.__call__(PyObject.java)
            at org.python.core.PyInstance.invoke(PyInstance.java)
            at org.python.pycode._pyx50.f$0(<string>:78)
            at org.python.pycode._pyx50.call_function(<string>)
            at org.python.core.PyTableCode.call(PyTableCode.java)
            at org.python.core.PyCode.call(PyCode.java)
            at org.python.core.Py.runCode(Py.java)
            at org.python.core.Py.exec(Py.java)
            at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
            at com.ibm.bsf.engines.jython.JythonEngine$BSFPythonInterpreter.exec(Unknown Source)
            at com.ibm.bsf.engines.jython.JythonEngine.exec(Unknown Source)
            at com.ibm.bsf.BSFManager$6.run(Unknown Source)
            at java.security.AccessController.doPrivileged(AccessController.java:330)
            at com.ibm.bsf.BSFManager.exec(Unknown Source)
            at com.ibm.ws.scripting.AbstractShell.executeScript(AbstractShell.java:1214)
            at com.ibm.ws.scripting.AbstractShell.run(AbstractShell.java:2271)
            at com.ibm.ws.scripting.WasxShell.main(WasxShell.java:1108)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
            at java.lang.reflect.Method.invoke(Method.java:618)
            at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:234)
            at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:96)
            at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:77)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
            at java.lang.reflect.Method.invoke(Method.java:618)
            at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
            at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
            at java.lang.reflect.Method.invoke(Method.java:618)
            at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
            at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
            at org.eclipse.core.launcher.Main.run(Main.java:981)
            at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:380)
            at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:151)


    Failed ANT script: /home/portal/WebSphere/ConfigEngine/config/includes/wp_security_internal.xml:90:
    Failed target: wp-validate-group-exists
    Failed task: Task name could not be determined.  Please check the line number below for target details.
    Probable failed component: ConfigEngine
    ------ Target Stack Trace  ------
    wp-validate-group-exists
    wp-change-portal-admin-user
    ------Target Excerpt ------
    40:           </wplc-create-user>
    41:        </target>
    42:
    43:        <target name="wp-create-file-user">
    44:           <wplc-create-fileregistry-user
    45:                wasuser="${WasUserid}"
    46:                waspassword="${WasPassword}"
    47:                ignoreDuplicateIDs="${ignoreDuplicateIDs}"
    48:                userId="${userId}"
    49:                password="&lt;pw>${password}&lt;/pw>">
    50:           </wplc-create-fileregistry-user>
    51:        </target>
    52:
    53:        <target name="wp-create-file-group">
    54:           <wplc-create-fileregistry-group
    55:                wasuser="${WasUserid}"
    56:                waspassword="${WasPassword}"
    57:                ignoreDuplicateIDs="${ignoreDuplicateIDs}"
    58:                cn="${cn}">
    59:           </wplc-create-fileregistry-group>
    60:        </target>
    61:
    62:
    63:        <target name="wp-validate-user-exists">
    64:
    65:            <wplc-validate-user-exists
    66:                cell="${CellName}"
    67:                wasuser="${WasUserid}"
    68:                waspassword="${WasPassword}"
    69:                cn="${userCN}">
    70:            </wplc-validate-user-exists>
    71:            <echo message="Validating if user '${userCN}' exists." />
    72:            <if firstValue="${userExists}" operator="==" secondValue="false">
    73:                <then>
    74:                    <fail message="Given user '${userCN}' does not exist." />
    75:                </then>
    76:            </if>
    77:        </target>
    78:
    79:        <target name="wp-validate-group-exists">
    80:
    81:            <wplc-validate-user-group-exists
    82:                cell="${CellName}"
    83:                wasuser="${WasUserid}"
    84:                waspassword="${WasPassword}"
    85:                cn="${groupCN}">
    86:            </wplc-validate-user-group-exists>
    87:            <echo message="Validating if group '${groupCN}' exists." />
    88:            <if firstValue="${groupExists}" operator="==" secondValue="false">
    89:                <then>
    90:**>                 <fail message="Given user group '${groupCN}' does not exist." />
    91:                </then>
    92:            </if>
    93:        </target>
    94:
    95:        <target name="wp-create-group">
    96:           <wplc-create-user-group
    97:                wasuser="${WasUserid}"
    98:                waspassword="${WasPassword}"
    99:                ignoreDuplicateIDs="true"
    100:                cn="${adminGroupCN}">
    101:                <attribute name="memberUniqueName" value="${memberUniqueName}"/>
    102:           </wplc-create-user-group>
    103:        </target>
    104:
    105:        <target name="wp-add-member">
    106:           <wplc-add-group-member
    107:                wasuser="${WasUserid}"
    108:                waspassword="${WasPassword}"
    109:                groupUniqueName="${groupUniqueName}"
    110:                memberUniqueName="${memberUniqueName}">
    111:           </wplc-add-group-member>
    112:        </target>
    113:
    114:        <target name="wp-get-groups">
    115:           <wplc-get-user-groups
    116:                wasuser="${WasUserid}"
    117:                waspassword="${WasPassword}">
    118:                <attribute name="cn" value="${group.cn}"/>
    119:           </wplc-get-user-groups>
    120:        </target>
    121:
    122:        <target name="wp-get-members">
    123:           <wplc-get-group-members
    124:                wasuser="${WasUserid}"
    125:                waspassword="${WasPassword}"
    126:                uniqueName="${group.uniqueName}">
    127:           </wplc-get-group-members>
    128:        </target>
    129:
    130:        <target name="wp-map-role">
    131:           <wplc-map-group-to-adminrole
    132:                wasuser="${WasUserid}"
    133:                waspassword="${WasPassword}"
    134:                roleName="${roleName}"
    135:                groupids="${adminGroupCN}">
    136:           </wplc-map-group-to-adminrole>
    137:        </target>
    138:
    139:        <target name="wp-admin-users">
    140:
    ------- Properties and values used in the failed target -------
    os.arch=amd64
    WasUserid=wasadmin
    groupCN=cn=portaladmins,cn=groups,dc=ibm,dc=com
    WasPassword=PASSWORD_REMOVED
    ConfigEngineSoapTimeout=${ConfigEngineSoapTimeout}
    EngineRootDir=/home/portal/WebSphere/ConfigEngine
    groupExists=false
    enableAawsiTrace=${enableAawsiTrace}
    EngineInstallLocation=/home/portal/WebSphere/wp_profile/ConfigEngine
    WasRemoteHostName=172.16.100.31
    WasSoapPort=8879
    CellName=dmgrCell01

Я уже создал необходимую группу пользователей и проверил ее запись в LDAP.Но все равно мой портал не может его найти.Кто-нибудь может сказать мне решение для этого?

...