Skip to content

Typo in Security Server Windows Auth Sample Doc #278

@ioplex

Description

@ioplex

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/[email protected]
        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/[email protected]
    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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions