Samba on FreeBSD with FreeIPA authentication
Notes on running Samba on FreeBSD with FreeIPA password authentication, which needs custom builds of the Samba and FreeIPA client ports.
$ cat /etc/motd
A technical blog by Adam Mendlik
Solutions on this site are pretty niche, which keeps our traffic modest. If you’re one of the few, welcome.
When I have to fix a problem that has never been solved, I use this site to share the code, the mistakes, and the lessons learned.
Notes on running Samba on FreeBSD with FreeIPA password authentication, which needs custom builds of the Samba and FreeIPA client ports.
The Python example in the CDK docs for property injectors doesn't work. This is what does, with a complete example.
Give all your FreeIPA LDAP servers one shared DNS name and add it to their TLS certificates, so clients get failover and verified connections.
Install the fish shell on Windows and set it up in Windows Terminal, VS Code, Sublime Text and Python virtual environments.
Enroll a FreeBSD 15 or newer host in FreeIPA with SSSD, covering Kerberos, sudo, PAM, OpenSSH and host-based access control.
Decrypt an EC2 Windows Administrator password on your own machine with the AWS CLI and OpenSSL, so your private key never touches a website.
Build your Git configuration from small files with includeIf, so each operating system and each folder of repositories gets the right tools and identity.
Enroll a FreeBSD 14 or older host in FreeIPA with SSSD, covering Kerberos, sudo, PAM, OpenSSH and host-based access control.
Corrections for a few errors I hit while working through Michael W. Lucas's Run Your Own Mail Server, written by a novice who followed along.
How blacklistd on FreeBSD lets network daemons report attacks so the firewall blocks the offenders, with PF and IPFW setups and per-service configuration.