Thanks for reply the vpn i am using is built into app the passfile is in same location as ovpn file but it wont use it.
openvpn_inc wrote
Hello DanW,
First of all you're on the forum for OpenVPN Connect for Android. That is not the same as Arne Schwabe's OpenVPN for Android app. I can tell you about OpenVPN Connect for Android in this forum post, so I'll assume you're using that and give advice accordingly.
I expect that that feature won't work on Android because that file would have to be stored in the same location as the profile. And in the import process the profile gets moved to another location to secure it, but that additional file won't be. You might be able to have the passfile.txt stored in some other location and change the reference in the openvpn connection profile to that new location... it might work. Probably not due to file permissions and such.
But I think we're on the wrong path here. The auth-user-pass function's goal is to ensure that you don't have to enter username and password to connect. OpenVPN Connect has this already built-in, you don't need auth-user-pass at all to do this. Remove that line from your connection profile, re-import it into the OpenVPN Connect app, and then tap the pencil button to edit the profile's properties, and check the 'save password' button. It will then remember it and you don't have to enter it for subsequent connections.
Hope that helps,
Johan