Store options
Validated LDAP identity store configuration
import { buildLdapIdentityStore } from "@.../caddy-api-client/plugins/caddy-security";
const store = buildLdapIdentityStore({
name: "ldapdb",
servers: [{ address: "ldap.example.com", port: 389 }],
bindUsername: "cn=admin,dc=example,dc=com",
bindPassword: "secret",
searchBaseDn: "ou=users,dc=example,dc=com",
searchUserFilter: "(uid={username})",
});
Build an LDAP identity store configuration
Creates an LDAP-based identity store for user authentication. Uses the authcrunch wrapper structure: name, kind, params