corrected samba config function