Four agent-native read-only harnesses that census the identity & directory trust surface: the config layers a Linux host actually uses to decide who you are and what a directory or Kerberos client actually trusts — SSSD's fragment-merge domain layer, krb5.conf's profile-include realm grammar, OpenLDAP's multi-candidate client conf law, and nslcd's multi-instance directive census. Each grammar is a place where one mis-typed line quietly hands remote principals more access than intended. Adjacent, not overlapping: SSH-client trust (Bundle #48), CA trust (#45), and mail trust (#46) cover different surfaces — no other bundle owns these four configs.
[domain/<name>] block anywhere in the layer); the secret law: ldap_default_authtok = AUTHTOK_PRESENT with the token NEVER printed (length only) under AUTHTOK_PLAINTEXT (password type) or AUTHTOK_OBFUSCATED; URI census PLAINTEXT_URI vs STARTTLS_ENABLED vs LDAPS_URI (start_tls in the same section-scope honestly avoids the plaintext finding); DEBUG_LEVEL_EXCESSIVE (levels 9-10); access_provider ACCESS_PERMIT / ACCESS_PROVIDER_ABSENT; FILE_WORLD_WRITABLE/FILE_GROUP_WRITABLE stat law on the main file and every fragment; honest absence rc6.[realms] block), REALM_CONFIGURED; the weak-enctype census (des/des3/arcfour/rc4 in default_tgs_enctypes, default_tkt_enctypes, permitted_enctypes) = WEAK_ENCTYPE, allow_weak_crypto = true = WEAK_CRYPTO_ENABLED; DNS_LOOKUP_REALM_ON/DNS_LOOKUP_KDC_ON, FORWARDABLE_ON/PROXIABLE_ON; realm census with per-realm kdc/admin_server counts and the honest REALM_WITHOUT_KDC row; DOMAIN_REALM mapping census (cap 25); stat law on main + fragments; honest absence rc6.ssl off/on/start_tls; bindpw = BINDPW_DORMANT with the value NEVER printed (length only; empty = BINDPW_EMPTY); CA paths are statted, never trusted: TLS_CACERT/CACERTDIR missing = CACERT_PATH_MISSING/CACERTDIR_MISSING, and a present CA dir gets CACERTDIR_ENTRIES counted via scandir with names never printed; stat law on the winning conf.uri/base/map/filter directives accumulate as lists (the documented nslcd multi-instance law), other repeats later-wins with SHADOWED_LOSER; bindpw/rootpwmodpw = BINDPW_DORMANT/ROOTPWPW_DORMANT length-only, DNs carried as data; ldap_version 2 = LDAPV2_OBSOLETE; ssl off/on/start_tls with the STARTTLS + ldap:// compose honestly named STARTTLS_URI; TLS_REQCERT laws (default demand noted); zero uri directives in a parseable file = URI_ABSENT; pam_authz_search carried as data (a search filter, not a secret); stat law; honest absence rc6.Contract: rc0 clean / rc4 findings / rc6 nothing readable / rc2 usage, --json emits one report object per tool with the --conf main-path override flag so an agent can point the census laws at any tree or fixture. Pure Python stdlib; zero subprocesses, zero writes, zero sockets; identity and directory configs are only ever READ, and secret-named values are masked (authtok/bindpw/rootpwmodpw are length-only) — the census never "fixes" an exposed posture, it names it.
Self-test battery: 729 fixture-based executed assertions inside (runner_count.py) — verified fired twice consecutively from this exact tree plus two clean-room fires from this shipping zip, 0 failed.
MIT license · stdlib-only · Python 3.8+. Read-only by construction: nothing is enabled, disabled, or written by the census.