Categories
Directory Service Kerberos Linux Samba

A complete Active Directory lab without root: Samba, NFS, mail, LDAP and Apache with cwrap

A Samba AD domain with a member file server, NFS, IMAP/SMTP, OpenLDAP, Apache and a KDC proxy, set up by one script, as a normal user, without containers or VMs, if needed even without real network ports. How cwrap’s uid_wrapper, nss_wrapper and socket_wrapper make that possible, and the traps each daemon had in store.

Categories
Kerberos Samba

Your keytab is lying to you: kvno, enctypes and salts in Active Directory

kinit works, the service ticket looks fine, and the server still says 535 5.7.8 or HTTP 401. Almost always the server’s keytab does not hold the key the KDC used. Six traps in Active Directory and Samba, each reproduced in a lab with real output: RC4 tickets, RC4-only exports, AES salts, kvno drift, same kvno with a different key, and SPNs on the wrong account. Plus a flowchart to find the cause.