What is going on is that smbd still supports the % macros in places, but the AD DC (once known as samba4) stripped that out in a rush to be rid of global variables, and never got it back, even when the two parts of the codebase were stitched back into one project.