Commit Graph

5 Commits

Author SHA1 Message Date
chrisfu
7b71d80053 feat(scripts): improve Kerberos cache validation and logging in DNS sync script
- Added check for default Kerberos cache when `KRB5CCNAME` is unset.
- Enhanced logging to provide clearer guidance for missing credentials.
2026-01-03 17:31:02 -08:00
chrisfu
ab0bffb186 feat(scripts): enhance error handling and logging in Samba DNS operations
- Added error checks for `samba-tool dns add` and `update` to handle pre-existing records gracefully.
- Improved Kerberos cache validation with warnings and hints for unreadable or missing caches.
- Updated usage examples to provide better guidance for Kerberos authentication.
2026-01-02 21:43:14 -08:00
chrisfu
67fac13c55 feat(scripts): auto-detect and use Kerberos cache for sudo sessions in DNS sync
- Added logic to auto-set `KRB5CCNAME` from the sudo user's Kerberos cache, if available.
- Improved logging to indicate when the Kerberos cache is automatically utilized.
2026-01-02 21:24:47 -08:00
chrisfu
b38bd39145 feat(scripts): enforce Kerberos usage and improve validation in DNS sync script
- Replaced `-k yes` with `--use-kerberos=required` for all `samba-tool` commands.
- Added Kerberos ticket validation with warnings for unset or missing `KRB5CCNAME`.
- Updated usage example to emphasize preserving Kerberos ticket via `sudo -E`.
2026-01-02 21:18:51 -08:00
chrisfu
a3b3d83f44 feat(scripts): introduce DNS sync script for Samba AD and hosts management
- Added `init-prole-dns.sh` to sync host records to Samba AD DNS.
- Included a fallback `hosts.txt` for static entries when Postgres is unavailable.
- Script supports operations such as start, stop, sync, status, and flush.
- Integrated cron-based hourly sync functionality.
2026-01-02 20:56:44 -08:00