Commit 6fe7c9e
committed
CA-412164: XSI-1901: uid-info does not support
from https://en.wikipedia.org/wiki/Passwd#Password_file
uid_info as following format
username:password:uid:gid:gecos:homedir:shell
Regarding gecos, it is recommended as follows
Typically, this is a set of comma-separated values including the user's
full name and contact details.
However, this information comes form AD and user may mis-configure
it with `:`, which is used as seperator. In such case, the parse
would failed.
Enhance the parse function to support `:` in gecos, other fields does
not likely contain it.
Signed-off-by: Lin Liu <[email protected]>: in gecos1 parent 6fe1395 commit 6fe7c9e
File tree
2 files changed
+44
-4
lines changed- ocaml
- tests
- xapi
2 files changed
+44
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
222 | 243 | | |
223 | 244 | | |
224 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
693 | 711 | | |
| 712 | + | |
694 | 713 | | |
695 | 714 | | |
696 | 715 | | |
| |||
0 commit comments