Looks like it's an issue in the cups-pdf postinst, due to changes in cups 2.4.17 that made -h localhost no longer work without authentication. It's not related to lpadmin.
Sent a MR to drop it so that it uses a local socket instead at https://salsa.debian.org/printing-team/cups-pdf/-/merge_requests/2
