There is no 'new-line' flag in the last line of file ocserv/ocpasswd. So when I add a new user, it will appear at the same line with user holly.
Like this:
qy@RAPH:~/ocserv-docker/ocserv$ sudo cat ocpasswd
wyatt::$5$ExKuUh1w1v/67AQt$tg/mf33OOJ2bMvLtSdX55v0wF2BLfxgm7YPlVPAcCX0
holly::$5$HCRJ7HmiQZrc5Amp$iU2G4TDDaL1/TGZKaksGJeGp7A.Nffs0BiObZ6SFttBqy:*:$5$rqNn/fV1MevxT/Yl$ZV/eW4Q/Sng.s3oCcjREMAMAm4zXsHQg8VKql1fwmD2
Thereby, it will result in the user holly and the newly added user unusable.
There is no 'new-line' flag in the last line of file ocserv/ocpasswd. So when I add a new user, it will appear at the same line with user holly. Like this: qy@RAPH:~/ocserv-docker/ocserv$ sudo cat ocpasswd wyatt::$5$ExKuUh1w1v/67AQt$tg/mf33OOJ2bMvLtSdX55v0wF2BLfxgm7YPlVPAcCX0 holly::$5$HCRJ7HmiQZrc5Amp$iU2G4TDDaL1/TGZKaksGJeGp7A.Nffs0BiObZ6SFttBqy:*:$5$rqNn/fV1MevxT/Yl$ZV/eW4Q/Sng.s3oCcjREMAMAm4zXsHQg8VKql1fwmD2
Thereby, it will result in the user holly and the newly added user unusable.
This commit fix the issue.