Username not saved when profile imported from MobileConfig file

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
shaolo
OpenVpn Newbie
Posts: 2
Joined: Sun Feb 03, 2019 8:44 am

Username not saved when profile imported from MobileConfig file

Post by shaolo » Sun Feb 03, 2019 8:53 am

I created a mobileconfig file for various settings including wifi and Openvpn.

My issues is, the profile that's created comes in with no username and no password. Ok, put in the username, put in the password, select save password. Hit save. I can login. But as soon as I logout... It throws away the username. The password is still saved. But no username. Every single time.

I don't know if this is an issue with my mobileconfig file. Or of it's an issue with all mobileconfig files that user auth-user-pass authentication.

Does anyone else have this issue? I've been searching and can't find a single instance of someone reporting that the username gets tossed after logging out.

If I install a regular .ovpn file profile, everything works as expected.

Code: Select all

		<dict>
			<key>IPv4</key>
			<dict>
				<key>OverridePrimary</key>
				<integer>0</integer>
			</dict>
			<key>PayloadDescription</key>
			<string>Configures VPN settings</string>
			<key>PayloadDisplayName</key>
			<string>VPN</string>
			<key>PayloadIdentifier</key>
			<string>com.apple.vpn.managed.34708BF8-52D9-4E53-B748-04805C1483DD</string>
			<key>PayloadType</key>
			<string>com.apple.vpn.managed</string>
			<key>PayloadUUID</key>
			<string>34708BF8-52D9-4E53-B748-04805C1483DD</string>
			<key>PayloadVersion</key>
			<integer>1</integer>
			<key>Proxies</key>
			<dict>
				<key>HTTPEnable</key>
				<integer>0</integer>
				<key>HTTPSEnable</key>
				<integer>0</integer>
			</dict>
			<key>UserDefinedName</key>
			<string>Home/HA - OpenVPN</string>
			<key>VPN</key>
			<dict>
				<key>AuthName</key>
				<string>DEFAULT</string>
				<key>AuthenticationMethod</key>
				<string>Password</string>
				<key>PayloadCertificateUUID</key>
				<string>2E2B65DD-EF23-462A-B5CF-C0781A4A04E1</string>
				<key>RemoteAddress</key>
				<string>DEFAULT</string>
			</dict>
			<key>VPNSubType</key>
			<string>net.openvpn.connect.app</string>
			<key>VPNType</key>
			<string>VPN</string>
			<key>VendorConfig</key>
			<dict>
				<key>AuthenticationMethod</key>
				<string>Password</string>
				<key>auth</key>
				<string>SHA512</string>
				<key>auth-user-pass</key>
				<string>NOARGS</string>
				<key>cipher</key>
				<string>AES-256-CBC</string>
				<key>dev</key>
				<string>tun</string>
				<key>proto</key>
				<string>udp</string>
				<key>pull</key>
				<string>NOARGS</string>
				<key>remote</key>
				<string>home.server.com 1194</string>
				<key>reneg-sec</key>
				<string>0</string>
				<key>script-security</key>
				<string>2</string>
				<key>tls-client</key>
				<string>NOARGS</string>
				<key>vpn-on-demand</key>
				<string>0</string>
			</dict>
		</dict>

Post Reply