• Adjust code to work with users who have no access to the NAB ( example below )

    By sean cull 1 decade ago

    The code has names.nsf hardcoded as the database to authenticate against.

    If you replace this code


                    dojo.xhrPost({
                    url: '/names.nsf?login',
                    handleAs : "text",
                    content: {

    with this code


                    dojo.xhrPost({
                    url: window.location.href.split('.nsf')[0] + '.nsf?Login',
                    handleAs : "text",
                    content: {

    the login can be used where users do not have access to names.nsf which is the case in many of our applications

    Sean

    • Thank,will be added in next release.

      By F. Kranenburg 1 decade ago

      Thanks for your input Sean.

      I will add your request to the control in the next release. Maybe I should make it a programable property. We use multiple directories ourself, so I expect developers could use that functionality.

      • Yes and No

        By sean cull 1 decade ago

        In my scheme the users cannot log onto any directory - there is no need for them to do do as they are just using applications.

        The database that the login is being tested against is the CURRENT database. In your new scheme I passed the following value into the new urlLoginNSF parameter in 1.2 - facesContext.getExternalContext().getRequestContextPath()

        BUT - the trigger to test for a failed login is not the CURRENT database but names.nsf i.e

        if (response.indexOf('action="/names.nsf?Login"')==-1){

        I could be wrong but even with cascading adress books will it not always be names.nsf ?

        Sean

    • You're right,I'll fix this.

      By F. Kranenburg 1 decade ago

      The code to check if a user is succesfully logged in must be :


      if ( dojo.cookie('DomAuthSessId') != null || dojo.cookie('LtpaToken') != null ) {