only set slaveof and masterauth if the variables have been set