Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Command line to get passwd, group and shadow entries from local cache. #56

Merged
merged 21 commits into from Sep 5, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f89b24b
Adding String() functions to the structs
denisonbarbosa Aug 31, 2022
fca3b70
Initial implementation of the cli to query the local aad cache.
denisonbarbosa Aug 31, 2022
dcf72d9
Adding some tests for the aad_auth cli, along with their golden files.
denisonbarbosa Aug 31, 2022
27ed7ce
Adding tests for String() in internal/nss/(passwd|group|shadow)
denisonbarbosa Sep 1, 2022
a60a4d4
Improving debug message in errToCStatus
denisonbarbosa Sep 1, 2022
2394948
Adding checks for invalid arguments, -help and usage msg in main func.
denisonbarbosa Sep 1, 2022
621691e
Addressing PR comments and refactoring getent.go
denisonbarbosa Sep 1, 2022
db9c623
Improving the internal tests for fmtOutput
denisonbarbosa Sep 1, 2022
2e5a46c
Merging some previous integration test cases into aadauth_test
denisonbarbosa Sep 1, 2022
dfec000
Adding the golden files for the new test cases and the renamed ones.
denisonbarbosa Sep 1, 2022
09858e8
Fixing a typo in a test case and updating its golden file.
denisonbarbosa Sep 1, 2022
2f10aad
Changing the returned error from trying to get a shadow entry by id.
denisonbarbosa Sep 1, 2022
0234106
Adding test case that tries to get a shadow entry by id.
denisonbarbosa Sep 1, 2022
272e55c
Addressing PR comments part 1: non-test related.
denisonbarbosa Sep 2, 2022
2b4f6cd
Addressing PR comments part 2: test related.
denisonbarbosa Sep 2, 2022
9346c00
Updating golden files.
denisonbarbosa Sep 2, 2022
fc27659
Fixing the error returned for trying to list empty databases.
denisonbarbosa Sep 2, 2022
4155227
Addressing PR comments
denisonbarbosa Sep 5, 2022
0129a7b
Fixing returned values for nss.ErrNotFoundSuccess
denisonbarbosa Sep 5, 2022
236b5cb
Updating golden files to reflect the latest code changes.
denisonbarbosa Sep 5, 2022
d6b7d48
Addressing PR comments
denisonbarbosa Sep 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions nss/aad_auth/getent.go
Expand Up @@ -113,11 +113,11 @@ func getAllEntries(ctx context.Context, dbName string, cacheOpts ...cache.Option
return nil, err
}

if len(entries) != 0 {
err = nil
if len(entries) == 0 {
return nil, nss.ErrNotFoundSuccess
didrocks marked this conversation as resolved.
Show resolved Hide resolved
}

return entries, err
return entries, nil
}

func initIterationForDB(dbName string) (func(ctx context.Context, opts ...cache.Option) error, func(ctx context.Context) error) {
Expand Down
@@ -1,2 +1,2 @@
|
didrocks marked this conversation as resolved.
Show resolved Hide resolved
0:2
1:2
@@ -1,2 +1,2 @@
|
didrocks marked this conversation as resolved.
Show resolved Hide resolved
0:2
1:2
@@ -1,2 +1,2 @@
|
0:2
1:2
@@ -1,2 +1,2 @@
|
0:2
1:2
@@ -1,2 +1,2 @@
|
0:2
1:2
@@ -1,2 +1,2 @@
|
0:2
1:2