spring-guides / gs-authenticating-ldap

Authenticating a User with LDAP :: Learn how to secure an application with LDAP.

Home Page:https://spring.io/guides/gs/authenticating-ldap/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Authentication enabled too early in guide

coryfklein opened this issue · comments

I was just going through the "Getting Started" guides linked from the Spring home page and ran into an issue with this one.

The initial build.gradle file has the following lines:

compile("org.springframework.boot:spring-boot-starter-security")
compile("org.springframework.security:spring-security-ldap:3.2.0.RC1")

This causes an authentication dialog to appear when going to http://localhost:8080 as instructed later:

If you open your browser and visit http://localhost:8080, you should see the following plain text:

Welcome to the home page!

So when the user gets to that point, a dialog appears asking for a username and password, and they assume that they did something incorrectly because they are unable to see that text. Newbies like me may take some time to isolate the problem to those two lines in the build.gradle file.

Thank for spotting this. We had migrated to all the guides generally have the completed build files in the initial settings, but didn't factor in this guide, which starts unsecured.