Code
RPi4:~ # cat /storage/.kodi/userdata/passwords.xml
<passwords>
<path>
<from pathversion="1">smb://NAS/MEDIA</from>
<to pathversion="1">smb://username:password@NAS/MEDIA</to>
</path>
</passwords>
^ The authentication process has evolved and you probably need to create a file like that so that older library references that don't include the authentication data are mapped to include it.