This repository has been archived by the owner on Jan 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
use physicist demo users #9
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Change: use physicist demo users | ||
|
||
Demo users like admin, demo and test don't allow you to tell a story. Which is why we changed the set of hard coded demo users to `einstein`, `marie` and `feynman`. You should know who they are. This also changes the ldap domain from `dc=owncloud,dc=com` to `dc=example,dc=org` because that is what these users use as their email domain. There are also `konnectd` and `reva` for technical purposes, eg. to allow konnectd and reva to bind to glauth. | ||
|
||
https://github.com/owncloud/ocis-glauth/issues/5 |
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 |
---|---|---|
|
@@ -160,25 +160,89 @@ func Server(cfg *config.Config) *cli.Command { | |
// TODO read users for the config backend from config file | ||
Users: []glauthcfg.User{ | ||
glauthcfg.User{ | ||
Name: "admin", | ||
Name: "einstein", | ||
GivenName: "Albert", | ||
SN: "Einstein", | ||
UnixID: 20000, | ||
PrimaryGroup: 30000, | ||
Mail: "[email protected]", | ||
PassSHA256: "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918", // admin | ||
OtherGroups: []int{30001, 30002, 30007}, | ||
Mail: "[email protected]", | ||
PassSHA256: "69bf3575281a970f46e37ecd28b79cfbee6a46e55c10dc91dd36a43410387ab8", // relativity | ||
}, | ||
glauthcfg.User{ | ||
Name: "demo", | ||
Name: "marie", | ||
GivenName: "Marie", | ||
SN: "Curie", | ||
UnixID: 20001, | ||
PrimaryGroup: 30000, | ||
Mail: "[email protected]", | ||
PassSHA256: "2a97516c354b68848cdbd8f54a226a0a55b21ed138e207ad6c5cbb9c00aa5aea", // demo | ||
OtherGroups: []int{30003, 30004, 30007}, | ||
Mail: "[email protected]", | ||
PassSHA256: "149a807f82e22b796942efa1010063f4a278cf078ff56ef1d3fc6c156037cef9", // radioactivity | ||
}, | ||
glauthcfg.User{ | ||
Name: "feynman", | ||
GivenName: "Richard", | ||
SN: "Feynman", | ||
UnixID: 20002, | ||
PrimaryGroup: 30000, | ||
OtherGroups: []int{30005, 30006, 30007}, | ||
Mail: "[email protected]", | ||
PassSHA256: "1e2183d3a6017bb01131e27204bb66d3c5fa273acf421c8f9bd4bd633e3d70a8", // superfluidity | ||
}, | ||
|
||
// technical users for ocis | ||
glauthcfg.User{ | ||
Name: "konnectd", | ||
UnixID: 10000, | ||
PrimaryGroup: 15000, | ||
Mail: "[email protected]", | ||
PassSHA256: "e1b6c4460fda166b70f77093f8a2f9b9e0055a5141ed8c6a67cf1105b1af23ca", // konnectd | ||
}, | ||
glauthcfg.User{ | ||
Name: "reva", | ||
UnixID: 10001, | ||
PrimaryGroup: 15000, | ||
Mail: "[email protected]", | ||
PassSHA256: "60a43483d1a41327e689c3ba0451c42661d6a101151e041aa09206305c83e74b", // reva | ||
}, | ||
}, | ||
Groups: []glauthcfg.Group{ | ||
glauthcfg.Group{ | ||
Name: "users", | ||
UnixID: 30000, | ||
}, | ||
glauthcfg.Group{ | ||
Name: "sailing-lovers", | ||
UnixID: 30001, | ||
}, | ||
glauthcfg.Group{ | ||
Name: "violin-haters", | ||
UnixID: 30002, | ||
}, | ||
glauthcfg.Group{ | ||
Name: "radium-lovers", | ||
UnixID: 30003, | ||
}, | ||
glauthcfg.Group{ | ||
Name: "polonium-lovers", | ||
UnixID: 30004, | ||
}, | ||
glauthcfg.Group{ | ||
Name: "quantum-lovers", | ||
UnixID: 30005, | ||
}, | ||
glauthcfg.Group{ | ||
Name: "philosophy-haters", | ||
UnixID: 30006, | ||
}, | ||
glauthcfg.Group{ | ||
Name: "physics-lovers", | ||
UnixID: 30007, | ||
}, | ||
glauthcfg.Group{ | ||
Name: "sysusers", | ||
UnixID: 15000, | ||
}, | ||
}, | ||
} | ||
server, err := glauth.NewServer( | ||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@butonic shouldn't name be
curie
here to be aligned with the rest? food for thought