Skip to content

make targets

Everything in the lab is driven by make. Run make help for the live list; this page groups the same targets by concern.

TargetWhat it does
make netCreate the shared external samba network (idempotent)
make buildBuild the DC image
make upBuild if needed and start the stack in the background
make downStop the stack, keep the domain database
make restartRestart the DC
make logsFollow DC logs
make psShow container status
make shellOpen a root shell inside the DC
make healthList the Samba service tasks (same check Docker uses)
make cleanStop and remove containers, keep volumes and domain data
make nukeDestroy everything including the domain database (irreversible)
TargetWhat it does
make list-usersList domain users
make add-user U=jdoe P='S3cret!'Create a single user
make seedSeed demo users with email, phone, and fax
make show-user U=jane.doeShow one user’s contact attributes
make show-homesHome attributes plus on-disk folders
make test-home U=marty.mcflyWrite then read a file in a home over SMB
make photosFetch Commons portraits into thumbnailPhoto/jpegPhoto
make show-photo U=princeExtract a stored photo back out
make list-dnsDump the AD DNS zone
make dbcheckRun an AD database consistency check
make backupTake an online domain backup into ./backups
TargetWhat it does
make orgBuild the OU tree and the manager reporting chain
make show-orgOU tree plus the user-to-manager chart
make groupsBase security groups, nesting, and gated shares
make show-groupsList group membership
make test-group-accessProve a gated share allows a member and denies a non-member
make clinicsSeed ER clinical staff plus the clinic groups, nesting, and shares
make show-clinicsClinic and admin groups, the meta-groups, and the shares
make test-clinic-accessProve the HIPAA boundary: clinician reaches PHI, admin staff denied
TargetWhat it does
make faxboxesCreate the Fax Endpoints OU and seed no-logon shared fax boxes
make show-faxboxesShow the fax boxes (mail, fax, state)
make fax-rwProvision svc-fax-rw plus the scoped DID write ACL and a test user
make rotate-svc U=svc-fax-ro [P=..] [ENVFILE=..] [KEY=..]Rotate a service password and deliver it to a consumer .env
make print-emu-creds [EMU_HOST=..] [FAXART_DIR=..]Pre-stage a member via ODJ (blob + keytab)
TargetWhat it does
make print-logsFollow the print server’s logs
make print-shellRoot shell inside the print server
make print-statusMembership plus CUPS queue count
make print-queuesList every CUPS queue (expect 77 + PDF)
make list-printersThe print server’s SMB shares a client sees
make test-printSubmit a job over SMB and show the PDF it produced
make test-print-queue Q=GH12-pLabSubmit to a specific queue and prove it routed
make test-multiqueueSubmit to three queues, prove each lands its own PDF
make publish-printersPublish CUPS queues into AD as printQueue objects
make show-printers-adWhat “Find Printers” would return
TargetWhat it does
make snmp-logsFollow the SNMP sidecar’s logs
make snmp-walk DEV=bmh12-plabWalk a printer’s Printer-MIB
make ipp-logsFollow the IPP sidecar’s logs
make ipp-validateValidate the IPP Everywhere endpoint with ipptool
make print-fault STATE=<state> [Q=<queue>]Inject a fault: offline, paused, rejecting, toner-low, paper-out, clear
make test-fault-pathProve a rejecting queue refuses a job, then clear and prove it prints
TargetWhat it does
make rodc-logsFollow the RODC’s logs
make rodc-shellRoot shell inside the RODC
make rodc-statusRODC health plus the primary’s view of replication
make rodc-testProve read-only: read locally, watch a write get referred