Authentication 将Mobilefirst CLI 7.1与ldap集成时面临的问题

Authentication 将Mobilefirst CLI 7.1与ldap集成时面临的问题,authentication,ldap,ibm-mobilefirst,mobilefirst-server,mobilefirst-cli,Authentication,Ldap,Ibm Mobilefirst,Mobilefirst Server,Mobilefirst Cli,我正在使用mobile first CLI 7.1并尝试与LDAP集成 我正在执行以下文件。首次在浏览器中加载应用程序时,我收到401错误(加载资源失败:服务器响应状态为401(未经授权))。我收到500个错误(POST)http://localhost:10080/Project/apps/services/j_security_check 500(内部服务器错误))当我尝试登录时。我已经取消了wl.client.connect的注释,并在stackoverflow上进行了以下对话,及 服务器

我正在使用mobile first CLI 7.1并尝试与LDAP集成

我正在执行以下文件。首次在浏览器中加载应用程序时,我收到401错误(
加载资源失败:服务器响应状态为401(未经授权)
)。我收到500个错误(
POST)http://localhost:10080/Project/apps/services/j_security_check 500(内部服务器错误)
)当我尝试登录时。我已经取消了wl.client.connect的注释,并在stackoverflow上进行了以下对话,及

服务器日志

 [ERROR   ] SESN0008E: A user authenticated as anonymous has attempted to access a session owned by user:BasicRegistry/admin.
 [ERROR   ] SESN0008E: A user authenticated as anonymous has attempted to access a session owned by user:BasicRegistry/admin.
 [ERROR   ] SESN0008E: A user authenticated as anonymous has attempted to access a session owned by user:BasicRegistry/admin.
 [ERROR   ] SESN0008E: A user authenticated as anonymous has attempted to access a session owned by user:BasicRegistry/admin.
我的方案是什么?

用户最初被带到登录页面,稍后当他单击登录时,我将收集详细信息,并在抛出质询和提交时自动设置为j_secutity_表单。当我打开应用程序时得到401,当我点击登录时得到500。哪个叫

var reqURL = '/j_security_check';
        var options = {};
        options.parameters = {
            j_username : loginData.email,
            j_password : loginData.password
        };
        options.headers = {};
        ldapRealmChallengeHandler.submitLoginForm(reqURL, options,ldapRealmChallengeHandler.submitLoginFormCallback);   
我有以下问题:

var ldapRealmChallengeHandler = WL.Client.createChallengeHandler("LDAPRealm");

ldapRealmChallengeHandler.isCustomResponse = function(response) {
    if (!response || response.responseText === null) {
        return false;
    }
    var indicatorIdx = response.responseText.search('j_security_check');

    if (indicatorIdx >= 0){
        return true;
    }  
    return false;
};


ldapRealmChallengeHandler.handleChallenge = function(response){
};

ldapRealmChallengeHandler.submitLoginFormCallback = function(response) {
    var isLoginFormResponse = ldapRealmChallengeHandler.isCustomResponse(response);
    if (isLoginFormResponse){
        ldapRealmChallengeHandler.handleChallenge(response);
    } 
    else {
        ldapRealmChallengeHandler.submitSuccess();
    }
};  

logout = function(){
    WL.Client.logout('LDAPRealm',{});
}
1) 我下面的文档是完整的还是需要做一些补充工作

2) 出现上述错误的原因是什么

这是我的代码:

var ldapRealmChallengeHandler = WL.Client.createChallengeHandler("LDAPRealm");

ldapRealmChallengeHandler.isCustomResponse = function(response) {
    if (!response || response.responseText === null) {
        return false;
    }
    var indicatorIdx = response.responseText.search('j_security_check');

    if (indicatorIdx >= 0){
        return true;
    }  
    return false;
};


ldapRealmChallengeHandler.handleChallenge = function(response){
};

ldapRealmChallengeHandler.submitLoginFormCallback = function(response) {
    var isLoginFormResponse = ldapRealmChallengeHandler.isCustomResponse(response);
    if (isLoginFormResponse){
        ldapRealmChallengeHandler.handleChallenge(response);
    } 
    else {
        ldapRealmChallengeHandler.submitSuccess();
    }
};  

logout = function(){
    WL.Client.logout('LDAPRealm',{});
}

我认为这可能与会话独立模式有关,该模式在MFP7.1中默认打开。我认为这可以解释为什么会出现SESN0008E错误。是一篇文章的链接,该文章解释了如何禁用会话独立性

有关SESN0008E错误的更多信息

请告诉我你进展如何