Skip to content
Advertisement

Tag: authentication

Spring authentication using ActiveDirectoryLdapAuthenticationProvider and embedded ldif

one of my clients requirement was to authenticate users against his corporate ActiveDirectory (LDAP). So I used standard ActiveDirectoryLdapAuthenticationProvider and it works like a charm. Problem is that clients AC is hidden behind firewall. It works after deployment, but I cannot reach AC during local development due to cleints security policy. So, I had an idea that maybe for dev

How to handle authentication popup in Chrome with Selenium WebDriver using Java

I am trying to handle an authentication pop-up in one of my new Webdriver scripts. I have a working solution for IE, but I am struggling with Chrome. IE was as simple as following the advice on [this page]:How to handle authentication popup with Selenium WebDriver using Java. That thread doesn’t show a great solution for Chrome, although several commentors

Limit login attempt in Java

I am trying to limit the maximum login attempts to 3. However, my code below uses all the attempts before the user can get a chance to press the login button again. How would I fix this? Answer Whenever, the executeLogin() will be invoked, the previous value of totalAttempts will be erased and it will be again initialized to 3.

Unable to import certificate to cacerts

My requirement is to import a certificate for maven repositories into the global keystore. The certificate file is named maven-cacert.cer . I am using following command from C:Program FilesJavajdk1.6.0_20bin from cmd as maven-cacert.cer file is in C directory after pressing enter it asked to put password and after giving password it is saying like I also tried but getting same

Advertisement