Use the osx keychain to store and use your vpn password to connect.
configuration
Set the environment variable vpn_name
to the name of the vpn service as defined in the network preferences pane.
usage
vpn-up
connects to the vpn
vpn-down
disconnects from the vpn