r23641: Put check for forbidden values in smbconf into a function.