Dear Marco,
this is the intended behaviour. dh-nss maintscripts are meant to do
install the default configuration if no previous sysadmin-provided
configuration is detected. Anything more complex requires a separate
program that will take over nsswitch.conf and regenerate it on every NSS
module update. (That was the plan for dh-nss v2, but that plan is
currently on hold, see below.)
In the case you are describing, dh-nss is doing the right thing in not
adding the `systemd` module to the `shadow` DB. The rationale behind
this is: "the fact that the `systemd` module is mentioned in
nsswitch.conf means that the sysadmin knew about the `systemd` module.
The fact that it does not appear in line for the shadow DB means that
the sysadmin decided not to enable it for the shadow DB, so I will leave
it alone".
This is a slightly different issue that is better solved upstream by the
(upcoming?) introduction of nsswitch.conf dropins (see
<https://bugzilla.suse.com/show_bug.cgi?id=1215487>), a feature will
also make it possible to deprecate dh-nss (that has always been thought
as a band-aid measure: maintscripts should not modify configuration files).
Regards,