Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in Security Server Windows Auth Sample Doc #278

Open
ioplex opened this issue Jan 31, 2025 · 0 comments
Open

Typo in Security Server Windows Auth Sample Doc #278

ioplex opened this issue Jan 31, 2025 · 0 comments

Comments

@ioplex
Copy link

ioplex commented Jan 31, 2025

Disclaimer: I have very little knowledge of Spring

Running:

$ java -jar sec-server-win-auth-2.1.1.jar --spring.config.location=sec-server-win-auth.yaml

with sec-server-win-auth.yaml contents of:

server:
    port: 8080
    app:
        ad-domain: EXAMPLE.ORG
        ad-server: ldap://WIN-EKBO0EQ7TS7.example.org/
        service-principal: HTTP/neo.example.org@EXAMPLE.ORG
        keytab-location: /tmp/tomcat.keytab
        ldap-search-base: dc=example,dc=org
        ldap-search-filter: "(| (userPrincipalName={0}) (sAMAccountName={0}))"

with values substituted appropriately of course, yields the following error:

Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'app.ad-domain' in value "${app.ad-domain}"
	at org.springframework.util.PropertyPlaceholderHel..

Changing the yaml, by removing some leading spaces, to:

server:
    port: 8080
app:
    ad-domain: EXAMPLE.ORG
    ad-server: ldap://WIN-EKBO0EQ7TS7.example.org/
    service-principal: HTTP/neo.example.org@EXAMPLE.ORG
    keytab-location: /tmp/tomcat.keytab
    ldap-search-base: dc=example,dc=org
    ldap-search-filter: "(| (userPrincipalName={0}) (sAMAccountName={0}))"

appears to fix the issue.

From looking at the other configs, this appears to be a typo in the documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant