Each recipe includes the problem, solution code, and rationale.
Configurable base URL for mocks
Problem: Test connector against mock server without hitting production.
Solution:
Usage:
Why: Without configurable base URL, you can’t test without hitting production. This breaks CI/CD and risks exposing production data.
Insecure TLS for local testing
Problem: Test against mock server with self-signed certificate.
Solution:
Usage:
Why: Mock servers often use self-signed certificates. The --insecure flag enables testing without installing custom CAs.
Never use --insecure in production. This flag is strictly for local testing with mock servers.
LDAP server-side paging
Problem: Paginate large LDAP result sets.
Solution:
Why: LDAP servers handle pagination server-side with cookies. The cookie must be base64-encoded to fit in the string token.
Problem: Paginate children within paginated parents (e.g., members within each group).
Solution:
Why: The Bag type is a stack that manages nested pagination state. Push when entering a nested level, pop when done.