It does not seem possible. However, I'd suggest to use Build Parameters instead, they're designed for it. Read more about it here: http://confluence.jetbrains.com/display/TCD6/Defining+and+Using+Build+Parameters+in+Build+Configuration
You'll be able to specify user/password in TeamCity UI (even on every build, if needed)