-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
1,659 additions
and
1,405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,51 @@ | ||
GroupByID: | ||
"11111": '{"Name":"group1","GID":11111,"UGID":"group1"}' | ||
"22222": '{"Name":"group2","GID":22222,"UGID":"group2"}' | ||
"33333": '{"Name":"group3","GID":33333,"UGID":"group3"}' | ||
"99999": '{"Name":"commongroup","GID":99999,"UGID":"commongroup"}' | ||
GroupByName: | ||
commongroup: '{"Name":"commongroup","GID":99999,"UGID":"commongroup"}' | ||
group1: '{"Name":"group1","GID":11111,"UGID":"group1"}' | ||
group2: '{"Name":"group2","GID":22222,"UGID":"group2"}' | ||
group3: '{"Name":"group3","GID":33333,"UGID":"group3"}' | ||
GroupToUsers: | ||
"11111": '{"GID":11111,"UIDs":[1111]}' | ||
"22222": '{"GID":22222,"UIDs":[2222]}' | ||
"33333": '{"GID":33333,"UIDs":[3333]}' | ||
"99999": '{"GID":99999,"UIDs":[2222,3333]}' | ||
UserByID: | ||
"1111": '{"Name":"user1","UID":1111,"GID":11111,"Gecos":"User1 gecos\nOn multiple lines","Dir":"/home/user1","Shell":"/bin/bash","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2001-01-01T01:01:01Z"}' | ||
"2222": '{"Name":"user2","UID":2222,"GID":22222,"Gecos":"User2","Dir":"/home/user2","Shell":"/bin/dash","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2002-02-02T02:02:02Z"}' | ||
"3333": '{"Name":"user3","UID":3333,"GID":33333,"Gecos":"User3","Dir":"/home/user3","Shell":"/bin/zsh","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2003-03-03T03:03:03Z"}' | ||
UserByName: | ||
user1: '{"Name":"user1","UID":1111,"GID":11111,"Gecos":"User1 gecos\nOn multiple lines","Dir":"/home/user1","Shell":"/bin/bash","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2001-01-01T01:01:01Z"}' | ||
user2: '{"Name":"user2","UID":2222,"GID":22222,"Gecos":"User2","Dir":"/home/user2","Shell":"/bin/dash","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2002-02-02T02:02:02Z"}' | ||
user3: '{"Name":"user3","UID":3333,"GID":33333,"Gecos":"User3","Dir":"/home/user3","Shell":"/bin/zsh","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2003-03-03T03:03:03Z"}' | ||
UserToGroups: | ||
"1111": '{"UID":1111,"GIDs":[11111]}' | ||
"2222": '{"UID":2222,"GIDs":[22222,99999]}' | ||
"3333": '{"UID":3333,"GIDs":[33333,99999]}' | ||
UserToBroker: | ||
"1111": '"broker-id"' | ||
"2222": '"broker-id"' | ||
"3333": '"broker-id"' | ||
users: | ||
- name: user1 | ||
uid: 1111 | ||
gid: 11111 | ||
gecos: |- | ||
User1 gecos | ||
On multiple lines | ||
home: /home/user1 | ||
shell: /bin/bash | ||
broker_id: broker-id | ||
last_login: 2001-01-01T01:01:01Z | ||
- name: user2 | ||
uid: 2222 | ||
gid: 22222 | ||
gecos: User2 | ||
home: /home/user2 | ||
shell: /bin/dash | ||
broker_id: broker-id | ||
last_login: 2002-02-02T02:02:02Z | ||
- name: user3 | ||
uid: 3333 | ||
gid: 33333 | ||
gecos: User3 | ||
home: /home/user3 | ||
shell: /bin/zsh | ||
broker_id: broker-id | ||
last_login: 2003-03-03T03:03:03Z | ||
groups: | ||
- name: group1 | ||
gid: 11111 | ||
ugid: group1 | ||
- name: group2 | ||
gid: 22222 | ||
ugid: group2 | ||
- name: group3 | ||
gid: 33333 | ||
ugid: group3 | ||
- name: commongroup | ||
gid: 99999 | ||
ugid: commongroup | ||
users_to_groups: | ||
- uid: 1111 | ||
gid: 11111 | ||
- uid: 2222 | ||
gid: 22222 | ||
- uid: 2222 | ||
gid: 99999 | ||
- uid: 3333 | ||
gid: 33333 | ||
- uid: 3333 | ||
gid: 99999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
GroupByID: | ||
GroupByName: | ||
GroupToUsers: | ||
UserByID: | ||
UserByName: | ||
UserToGroups: | ||
UserToBroker: | ||
users: [] | ||
groups: [] | ||
users_to_groups: [] |
80 changes: 50 additions & 30 deletions
80
internal/services/pam/testdata/TestGetPreviousBroker/get-previous-broker.db
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,50 @@ | ||
GroupByID: | ||
"11111": '{"Name":"group1","GID":11111,"UGID":"group1"}' | ||
"22222": '{"Name":"group2","GID":22222,"UGID":"group2"}' | ||
"33333": '{"Name":"group3","GID":33333,"UGID":"group3"}' | ||
"99999": '{"Name":"commongroup","GID":99999,"UGID":"commongroup"}' | ||
GroupByName: | ||
commongroup: '{"Name":"commongroup","GID":99999,"UGID":"commongroup"}' | ||
group1: '{"Name":"group1","GID":11111,"UGID":"group1"}' | ||
group2: '{"Name":"group2","GID":22222,"UGID":"group2"}' | ||
group3: '{"Name":"group3","GID":33333,"UGID":"group3"}' | ||
GroupToUsers: | ||
"11111": '{"GID":11111,"UIDs":[1111]}' | ||
"22222": '{"GID":22222,"UIDs":[2222]}' | ||
"33333": '{"GID":33333,"UIDs":[3333]}' | ||
"99999": '{"GID":99999,"UIDs":[2222,3333]}' | ||
UserByID: | ||
"1111": '{"Name":"userwithbroker","UID":1111,"GID":11111,"Gecos":"userwithbroker gecos\nOn multiple lines","Dir":"/home/userwithbroker","Shell":"/bin/bash","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2001-01-01T01:01:01Z"}' | ||
"2222": '{"Name":"userwithinactivebroker","UID":2222,"GID":22222,"Gecos":"userwithinactivebroker","Dir":"/home/userwithinactivebroker","Shell":"/bin/dash","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2002-02-02T02:02:02Z"}' | ||
"3333": '{"Name":"userwithoutbroker","UID":3333,"GID":33333,"Gecos":"userwithoutbroker","Dir":"/home/userwithoutbroker","Shell":"/bin/zsh","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2003-03-03T03:03:03Z"}' | ||
UserByName: | ||
userwithbroker: '{"Name":"userwithbroker","UID":1111,"GID":11111,"Gecos":"userwithbroker gecos\nOn multiple lines","Dir":"/home/userwithbroker","Shell":"/bin/bash","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2001-01-01T01:01:01Z"}' | ||
userwithinactivebroker: '{"Name":"userwithinactivebroker","UID":2222,"GID":22222,"Gecos":"userwithinactivebroker","Dir":"/home/userwithinactivebroker","Shell":"/bin/dash","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2002-02-02T02:02:02Z"}' | ||
userwithoutbroker: '{"Name":"userwithoutbroker","UID":3333,"GID":33333,"Gecos":"userwithoutbroker","Dir":"/home/userwithoutbroker","Shell":"/bin/zsh","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2003-03-03T03:03:03Z"}' | ||
UserToGroups: | ||
"1111": '{"UID":1111,"GIDs":[11111]}' | ||
"2222": '{"UID":2222,"GIDs":[22222,99999]}' | ||
"3333": '{"UID":3333,"GIDs":[33333,99999]}' | ||
UserToBroker: | ||
"1111": '"MOCKBROKERID"' | ||
"2222": '"inactive-broker-id"' | ||
users: | ||
- name: userwithbroker | ||
uid: 1111 | ||
gid: 11111 | ||
gecos: |- | ||
userwithbroker gecos | ||
On multiple lines | ||
home: /home/userwithbroker | ||
shell: /bin/bash | ||
broker_id: MOCKBROKERID | ||
last_login: 2001-01-01T01:01:01Z | ||
- name: userwithinactivebroker | ||
uid: 2222 | ||
gid: 22222 | ||
gecos: userwithinactivebroker | ||
home: /home/userwithinactivebroker | ||
shell: /bin/dash | ||
broker_id: inactive-broker-id | ||
last_login: 2002-02-02T02:02:02Z | ||
- name: userwithoutbroker | ||
uid: 3333 | ||
gid: 33333 | ||
gecos: userwithoutbroker | ||
home: /home/userwithoutbroker | ||
shell: /bin/zsh | ||
last_login: 2003-03-03T03:03:03Z | ||
groups: | ||
- name: group1 | ||
gid: 11111 | ||
ugid: group1 | ||
- name: group2 | ||
gid: 22222 | ||
ugid: group2 | ||
- name: group3 | ||
gid: 33333 | ||
ugid: group3 | ||
- name: commongroup | ||
gid: 99999 | ||
ugid: commongroup | ||
users_to_groups: | ||
- uid: 1111 | ||
gid: 11111 | ||
- uid: 2222 | ||
gid: 22222 | ||
- uid: 2222 | ||
gid: 99999 | ||
- uid: 3333 | ||
gid: 33333 | ||
- uid: 3333 | ||
gid: 99999 |
32 changes: 16 additions & 16 deletions
32
internal/services/pam/testdata/TestIsAuthenticated/cache-with-user.db
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
GroupByID: | ||
"88888": '{"Name":"group-success","GID":88888,"UGID":"ugid-success"}' | ||
GroupByName: | ||
group-success: '{"Name":"group-success","GID":88888,"UGID":"ugid-success"}' | ||
GroupByUGID: | ||
ugid-success: '{"Name":"group-success","GID":88888,"UGID":"ugid-success"}' | ||
GroupToUsers: | ||
"88888": '{"GID":88888,"UIDs":[77777]}' | ||
UserByID: | ||
"77777": '{"Name":"otheruser","UID":77777,"GID":88888,"Gecos":"gecos for other user","Dir":"/home/otheruser","Shell":"/bin/sh/otheruser","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2001-01-01T01:01:01Z"}' | ||
UserByName: | ||
otheruser: '{"Name":"otheruser","UID":77777,"GID":88888,"Gecos":"gecos for other user","Dir":"/home/otheruser","Shell":"/bin/sh/otheruser","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2001-01-01T01:01:01Z"}' | ||
UserToGroups: | ||
"77777": '{"UID":77777,"GIDs":[88888]}' | ||
UserToBroker: | ||
"77777": '"broker-id"' | ||
users: | ||
- name: otheruser | ||
uid: 77777 | ||
gid: 88888 | ||
gecos: gecos for other user | ||
home: /home/otheruser | ||
shell: /bin/sh/otheruser | ||
broker_id: broker-id | ||
last_login: 2001-01-01T01:01:01Z | ||
groups: | ||
- name: group-success | ||
gid: 88888 | ||
ugid: ugid-success | ||
users_to_groups: | ||
- uid: 77777 | ||
gid: 88888 |
122 changes: 79 additions & 43 deletions
122
internal/services/pam/testdata/TestSetDefaultBrokerForUser/set-default-broker.db
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,79 @@ | ||
GroupByID: | ||
"11111": '{"Name":"group1","GID":11111,"UGID":"group1"}' | ||
"22222": '{"Name":"group2","GID":22222,"UGID":"group2"}' | ||
"33333": '{"Name":"group3","GID":33333,"UGID":"group3"}' | ||
"44444": '{"Name":"group4","GID":44444,"UGID":"group4"}' | ||
"55555": '{"Name":"group5","GID":55555,"UGID":"group5"}' | ||
"99999": '{"Name":"commongroup","GID":99999,"UGID":"commongroup"}' | ||
GroupByName: | ||
commongroup: '{"Name":"commongroup","GID":99999,"UGID":"commongroup"}' | ||
group1: '{"Name":"group1","GID":11111,"UGID":"group1"}' | ||
group2: '{"Name":"group2","GID":22222,"UGID":"group2"}' | ||
group3: '{"Name":"group3","GID":33333,"UGID":"group3"}' | ||
group4: '{"Name":"group4","GID":44444,"UGID":"group4"}' | ||
group5: '{"Name":"group5","GID":55555,"UGID":"group5"}' | ||
GroupToUsers: | ||
"11111": '{"GID":11111,"UIDs":[1111]}' | ||
"22222": '{"GID":22222,"UIDs":[2222]}' | ||
"33333": '{"GID":33333,"UIDs":[3333]}' | ||
"44444": '{"GID":44444,"UIDs":[4444]}' | ||
"55555": '{"GID":55555,"UIDs":[5555]}' | ||
"99999": '{"GID":99999,"UIDs":[2222,3333,4444,5555]}' | ||
UserByID: | ||
"1111": '{"Name":"userwithbroker","UID":1111,"GID":11111,"Gecos":"userwithbroker gecos\nOn multiple lines","Dir":"/home/userwithbroker","Shell":"/bin/bash","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2001-01-01T01:01:01Z"}' | ||
"2222": '{"Name":"userwithinactivebroker","UID":2222,"GID":22222,"Gecos":"userwithinactivebroker","Dir":"/home/userwithinactivebroker","Shell":"/bin/dash","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2002-02-02T02:02:02Z"}' | ||
"3333": '{"Name":"userlocalbroker","UID":3333,"GID":33333,"Gecos":"userlocalbroker","Dir":"/home/userlocalbroker","Shell":"/bin/zsh","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2003-03-03T03:03:03Z"}' | ||
"4444": '{"Name":"usersetbroker","UID":4444,"GID":44444,"Gecos":"usersetbroker","Dir":"/home/usersetbroker","Shell":"/bin/dash","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2004-04-04T04:04:04Z"}' | ||
"5555": '{"Name":"userupdatebroker","UID":5555,"GID":55555,"Gecos":"userupdatebroker","Dir":"/home/userupdatebroker","Shell":"/bin/zsh","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2005-05-05T05:05:05Z"}' | ||
UserByName: | ||
userwithbroker: '{"Name":"userwithbroker","UID":1111,"GID":11111,"Gecos":"userwithbroker gecos\nOn multiple lines","Dir":"/home/userwithbroker","Shell":"/bin/bash","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2001-01-01T01:01:01Z"}' | ||
userwithinactivebroker: '{"Name":"userwithinactivebroker","UID":2222,"GID":22222,"Gecos":"userwithinactivebroker","Dir":"/home/userwithinactivebroker","Shell":"/bin/dash","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2002-02-02T02:02:02Z"}' | ||
userlocalbroker: '{"Name":"userlocalbroker","UID":3333,"GID":33333,"Gecos":"userlocalbroker","Dir":"/home/userlocalbroker","Shell":"/bin/zsh","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2003-03-03T03:03:03Z"}' | ||
usersetbroker: '{"Name":"usersetbroker","UID":4444,"GID":44444,"Gecos":"usersetbroker","Dir":"/home/usersetbroker","Shell":"/bin/zsh","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2004-04-04T04:04:04Z"}' | ||
userupdatebroker: '{"Name":"userupdatebroker","UID":5555,"GID":55555,"Gecos":"userupdatebroker","Dir":"/home/userupdatebroker","Shell":"/bin/zsh","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2005-05-05T05:05:05Z"}' | ||
UserToGroups: | ||
"1111": '{"UID":1111,"GIDs":[11111]}' | ||
"2222": '{"UID":2222,"GIDs":[22222,99999]}' | ||
"3333": '{"UID":3333,"GIDs":[33333,99999]}' | ||
"4444": '{"UID":4444,"GIDs":[44444,99999]}' | ||
"5555": '{"UID":5555,"GIDs":[55555,99999]}' | ||
UserToBroker: | ||
"1111": '"broker-id"' | ||
"2222": '"inactive-broker-id"' | ||
"5555": '"tobereplaced-broker-id"' | ||
users: | ||
- name: userwithbroker | ||
uid: 1111 | ||
gid: 11111 | ||
gecos: |- | ||
userwithbroker gecos | ||
On multiple lines | ||
home: /home/userwithbroker | ||
shell: /bin/bash | ||
broker_id: broker-id | ||
last_login: 2001-01-01T01:01:01Z | ||
- name: userwithinactivebroker | ||
uid: 2222 | ||
gid: 22222 | ||
gecos: userwithinactivebroker | ||
home: /home/userwithinactivebroker | ||
shell: /bin/dash | ||
broker_id: inactive-broker-id | ||
last_login: 2002-02-02T02:02:02Z | ||
- name: userlocalbroker | ||
uid: 3333 | ||
gid: 33333 | ||
gecos: userlocalbroker | ||
home: /home/userlocalbroker | ||
shell: /bin/zsh | ||
last_login: 2003-03-03T03:03:03Z | ||
- name: usersetbroker | ||
uid: 4444 | ||
gid: 44444 | ||
gecos: usersetbroker | ||
home: /home/usersetbroker | ||
shell: /bin/dash | ||
last_login: 2004-04-04T04:04:04Z | ||
- name: userupdatebroker | ||
uid: 5555 | ||
gid: 55555 | ||
gecos: userupdatebroker | ||
home: /home/userupdatebroker | ||
shell: /bin/zsh | ||
broker_id: tobereplaced-broker-id | ||
last_login: 2005-05-05T05:05:05Z | ||
groups: | ||
- name: group1 | ||
gid: 11111 | ||
ugid: group1 | ||
- name: group2 | ||
gid: 22222 | ||
ugid: group2 | ||
- name: group3 | ||
gid: 33333 | ||
ugid: group3 | ||
- name: group4 | ||
gid: 44444 | ||
ugid: group4 | ||
- name: group5 | ||
gid: 55555 | ||
ugid: group5 | ||
- name: commongroup | ||
gid: 99999 | ||
ugid: commongroup | ||
users_to_groups: | ||
- uid: 1111 | ||
gid: 11111 | ||
- uid: 2222 | ||
gid: 22222 | ||
- uid: 2222 | ||
gid: 99999 | ||
- uid: 3333 | ||
gid: 33333 | ||
- uid: 3333 | ||
gid: 99999 | ||
- uid: 4444 | ||
gid: 44444 | ||
- uid: 4444 | ||
gid: 99999 | ||
- uid: 5555 | ||
gid: 55555 | ||
- uid: 5555 | ||
gid: 99999 |
41 changes: 20 additions & 21 deletions
41
internal/services/pam/testdata/golden/TestIDGeneration/Generate_ID/cache.db
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
GroupByID: | ||
"1111": '{"Name":"TestIDGeneration_separator_success","GID":1111,"UGID":"TestIDGeneration_separator_success"}' | ||
"2222": '{"Name":"group-success","GID":2222,"UGID":"ugid-success"}' | ||
GroupByName: | ||
TestIDGeneration_separator_success: '{"Name":"TestIDGeneration_separator_success","GID":1111,"UGID":"TestIDGeneration_separator_success"}' | ||
group-success: '{"Name":"group-success","GID":2222,"UGID":"ugid-success"}' | ||
GroupByUGID: | ||
TestIDGeneration_separator_success: '{"Name":"TestIDGeneration_separator_success","GID":1111,"UGID":"TestIDGeneration_separator_success"}' | ||
ugid-success: '{"Name":"group-success","GID":2222,"UGID":"ugid-success"}' | ||
GroupToUsers: | ||
"1111": '{"GID":1111,"UIDs":[1111]}' | ||
"2222": '{"GID":2222,"UIDs":[1111]}' | ||
UserByID: | ||
"1111": '{"Name":"TestIDGeneration_separator_success","UID":1111,"GID":1111,"Gecos":"gecos for success","Dir":"/home/success","Shell":"/bin/sh/success","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2020-01-01T00:00:00Z"}' | ||
UserByName: | ||
TestIDGeneration_separator_success: '{"Name":"TestIDGeneration_separator_success","UID":1111,"GID":1111,"Gecos":"gecos for success","Dir":"/home/success","Shell":"/bin/sh/success","LastPwdChange":-1,"MaxPwdAge":-1,"PwdWarnPeriod":-1,"PwdInactivity":-1,"MinPwdAge":-1,"ExpirationDate":-1,"LastLogin":"2020-01-01T00:00:00Z"}' | ||
UserToBroker: {} | ||
UserToGroups: | ||
"1111": '{"UID":1111,"GIDs":[1111,2222]}' | ||
UserToLocalGroups: | ||
"1111": "null" | ||
users: | ||
- name: TestIDGeneration_separator_success | ||
uid: 1111 | ||
gid: 1111 | ||
gecos: gecos for success | ||
home: /home/success | ||
shell: /bin/sh/success | ||
last_login: 2020-01-01T00:00:00Z | ||
groups: | ||
- name: TestIDGeneration_separator_success | ||
gid: 1111 | ||
ugid: TestIDGeneration_separator_success | ||
- name: group-success | ||
gid: 2222 | ||
ugid: ugid-success | ||
users_to_groups: | ||
- uid: 1111 | ||
gid: 1111 | ||
- uid: 1111 | ||
gid: 2222 |
12 changes: 3 additions & 9 deletions
12
.../testdata/golden/TestIsAuthenticated/Denies_authentication_when_broker_times_out/cache.db
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
GroupByID: {} | ||
GroupByName: {} | ||
GroupByUGID: {} | ||
GroupToUsers: {} | ||
UserByID: {} | ||
UserByName: {} | ||
UserToBroker: {} | ||
UserToGroups: {} | ||
UserToLocalGroups: {} | ||
users: [] | ||
groups: [] | ||
users_to_groups: [] |
12 changes: 3 additions & 9 deletions
12
...ices/pam/testdata/golden/TestIsAuthenticated/Error_on_empty_data_even_if_granted/cache.db
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
GroupByID: {} | ||
GroupByName: {} | ||
GroupByUGID: {} | ||
GroupToUsers: {} | ||
UserByID: {} | ||
UserByName: {} | ||
UserToBroker: {} | ||
UserToGroups: {} | ||
UserToLocalGroups: {} | ||
users: [] | ||
groups: [] | ||
users_to_groups: [] |
Oops, something went wrong.