Commit Graph
30 Commits
Author SHA1 Message Date
dietrich f14d4b34ee fix some warnings 2020-10-09 12:11:23 +02:00
dietrich b6eb9972d2 restructuring
Fix (remove) lifetimes and restructure the code

Co-authored-by: Dietrich <dietrich@teilgedanken.de>
Reviewed-on: http://git.teilgedanken.de/Rust/useradd/pulls/2
2020-10-07 15:11:10 +00:00
dietrich 180934b789 Make shadow an entry of the passwd struct 2020-10-03 21:07:47 +02:00
dietrich 4af05c1134 initial parsing and testing for a shadow line 2020-10-03 15:18:45 +02:00
dietrich 4db597c058 initial parsing of shadow file 2020-10-02 18:13:15 +02:00
dietrich c6af13f3af Add is system user 2020-10-02 12:40:03 +02:00
dietrich 9b4956c78a Restructure the passwd file 2020-10-02 11:55:56 +02:00
dietrich 24db3e2579 Add warning on unconventional usernames 2020-10-02 09:50:02 +02:00
dietrich d4d3c0f0cf Merge pull request 'make the username part of the invalid message.' (#1) from local into master
Reviewed-on: http://git.teilgedanken.de/Rust/useradd/pulls/1
2020-10-02 07:46:59 +00:00
dietrich a95fa96d08 Adding a testcase for the ubuntu special user 2020-10-02 09:45:08 +02:00
dietrich b030045355 make the username part of the invalid message. 2020-10-02 09:45:08 +02:00
dietrich 063fb41708 restructure 2020-10-01 09:38:13 +02:00
dietrich 1ab0adbc06 user validation and tests 2020-09-30 20:58:24 +02:00
dietrich 5000fba6e7 doc update for enum Gecos 2020-09-30 18:23:44 +02:00
dietrich 676a5218e6 rename shell_dir -> shell_path 2020-09-30 18:02:02 +02:00
dietrich 2094bb7549 fix switched values 2020-09-30 17:35:39 +02:00
dietrich ee04fa30af Fix failing tests because ubuntu has no comment field 2020-09-30 11:09:43 +02:00
dietrich 0761afa6a0 ignore non ascii characters in tests 2020-09-30 08:40:19 +02:00
dietrich b72449eb88 partially fix clippy warnings regarding umlauts 2020-09-29 20:10:01 +02:00
dietrich 020a95920e Make the other field variable length, it can now be many fields or be missing entirely 2020-09-29 14:19:40 +02:00
dietrich a25092c7a0 Add getters for the attributes 2020-09-29 12:26:49 +02:00
dietrich 5d83f1264f Add custom errors 2020-09-29 12:26:43 +02:00
dietrich 3232f2b1da add test case if gecos has no other field. 2020-09-23 10:57:04 +02:00
dietrich 4e80b7128a fix tests ubuntu 2020-09-23 10:52:36 +02:00
dietrich 670f4d2a96 comments 2020-09-23 09:37:32 +02:00
dietrich 8c1a0a52f6 make the parser use the TryFrom trait. 2020-09-22 20:09:53 +02:00
dietrich c9cba38f2f remove pw_prefix 2020-09-22 13:08:15 +02:00
dietrich a68f0800cc more tests 2020-09-22 12:51:28 +02:00
dietrich 1bd6031e5a Adding tests 2020-09-21 14:37:21 +02:00
dietrich cd19cb7115 Parsing the passwd file 2020-09-21 09:05:38 +02:00