mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Ludovic Poitou
26.49.2015 f0b6206ddeacaa986a0bc24e8b972eb1eaffad12
OPENDJ-1908: Apply best practices and optimize search filters.
2 files modified
12 ■■■■ changed files
opendj-rest2ldap-servlet/src/main/webapp/WEB-INF/classes/opendj-rest2ldap-config.json 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/resource/config/http-config.json 10 ●●●● patch | view | raw | blame | history
opendj-rest2ldap-servlet/src/main/webapp/WEB-INF/classes/opendj-rest2ldap-config.json
@@ -128,7 +128,7 @@
        // client-provided username, using LDAP filter string character escaping.
        "searchBaseDN"         : "ou=people,dc=example,dc=com",
        "searchScope"          : "sub", // Or "one".
        "searchFilterTemplate" : "(&(objectClass=inetOrgPerson)(uid=%s))"
        "searchFilterTemplate" : "(&(uid=%s)(objectClass=inetOrgPerson))"
        // TODO: support for HTTP sessions?
    },
opendj-server-legacy/resource/config/http-config.json
@@ -9,21 +9,21 @@
    "authenticationFilter" : {
        // Indicates whether the filter should allow HTTP BASIC authentication.
        "supportHTTPBasicAuthentication" : true,
        // Indicates whether the filter should allow alternative authentication
        // and, if so, which HTTP headers it should obtain the username and
        // password from.
        "supportAltAuthentication"        : true,
        "supportAltAuthentication"        : true,
        "altAuthenticationUsernameHeader" : "X-OpenIDM-Username",
        "altAuthenticationPasswordHeader" : "X-OpenIDM-Password",
        // The search parameters to use for "search-simple" authentication. The
        // %s filter format parameters will be substituted with the
        // client-provided username, using LDAP filter string character escaping.
        "searchBaseDN"         : "ou=people,dc=example,dc=com",
        "searchScope"          : "sub", // Or "one".
        "searchFilterTemplate" : "(&(objectClass=inetOrgPerson)(uid=%s))"
        "searchFilterTemplate" : "(&(uid=%s)(objectClass=inetOrgPerson))"
        // TODO: support for HTTP sessions?
    },