Closed PaliPalo closed 9 months ago
Thanks for the bug report and suggested fix.
I might also look into using nm_utils_str_utf8safe_escape()
from NetworkManager's libnma to backslash escape the username as some other VPN clients are also using nm_utils_str_utf8safe_escape()
.
Hello,
VPN Connection failed when the username contains a space within. The solution should be to enclose the username between double quotes (e.g. "user name") as stated in pppd man page:
The source code line should be changed as
write_config_option(fd, "user \"%s\"\n", value);
https://github.com/nm-l2tp/NetworkManager-l2tp/blob/fdf5d98e86c5f0a97f9649fa3e23b3c001a93340/src/nm-l2tp-service.c#L1328
I tried this modification with a personal version from this repository and succeed to connect with a such username.
Thanks for your work !