Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    LDAP Authentication succeeds without a password

    • Product: Primo
    • Product Version: Primo August 2016
    • Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care

     

    Symptoms

    • Not using the New UI
    • Using the new Primo User Authentication with an LDAP profile
    • Entering a username and no password results in a successful login

    Defect Status

    Development

    Workaround

    1. Add the code found below to custom signin_tips.html files (one for each View)
    2. Upload the signin_tips.html files to the server under the appropriate View
    3. Update all Views to use the custom signin_tips.html file
    <script>
            var formCtrl = app.controller('usernamePasswordLoginFormControl', ['$scope', function($scope) {
                $scope.login = {
                    submit: function() {
                        document.forms[0].submit();
                    }
                }
            }]);
            document.onkeydown=function(event){ return true; }
            angular.element(document.forms.usernamePasswordLoginForm.children[1].children[1].children[0].children[1]).attr("ng-model","login.user");
            angular.element(document.forms.usernamePasswordLoginForm.children[1].children[1].children[1].children[1]).attr("ng-model","login.password");
            angular.element(document.forms.usernamePasswordLoginForm).attr("ng-controller","usernamePasswordLoginFormControl");
            angular.element(document.forms.usernamePasswordLoginForm).attr("ng-submit","usernamePasswordLoginForm.$valid && login.submit()");
            angular.element(document.forms.usernamePasswordLoginForm.children[1].children[2].children[0]).removeAttr("ng-href");
            angular.element(document.forms.usernamePasswordLoginForm.children[1].children[2].children[0]).removeAttr("onclick");
            angular.element(document.forms.usernamePasswordLoginForm.children[1].children[2].children[0]).attr("ng-disabled","usernamePasswordLoginForm.$invalid");
            angular.element(document.forms.usernamePasswordLoginForm.children[1].children[2].children[0]).attr("type","submit");
    </script>
    <style type="text/css">
    .EXLPRMLoginButtonSubmit{
        background-color:transparent;
        color:#0075b0;
    }
     

     


    • Article last edited: 19-Sept-2016