Why can't you just use the normal procedure for mounting a server volume at startup available in the Chooser. You know, the little checkbox that asks if you want to mount every startup, and a second that asks whether or not to remember your password?