-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Example deployment using a cs3 user backend connected to ldap
This bypasses the accounts-service Co-authored-by: Willy Kloucek <wkloucek@owncloud.com>
- Loading branch information
Showing
9 changed files
with
471 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# If you're on a internet facing server please comment out following line. | ||
# It skips certificate validation for various parts of oCIS and is needed if you use self signed certificates. | ||
INSECURE=true | ||
|
||
### Traefik settings ### | ||
# Domain of Traefik, where you can find the dashboard. Defaults to "traefik.owncloud.test" | ||
TRAEFIK_DOMAIN= | ||
# Basic authentication for the dashboard. Defaults to user "admin" and password "admin" | ||
TRAEFIK_BASIC_AUTH_USERS= | ||
# Email address for obtaining LetsEncrypt certificates, needs only be changed if this is a public facing server | ||
TRAEFIK_ACME_MAIL= | ||
|
||
### oCIS settings ### | ||
# oCIS version. Defaults to "latest" | ||
OCIS_DOCKER_TAG= | ||
# Domain of oCIS, where you can find the frontend. Defaults to "ocis.owncloud.test" | ||
OCIS_DOMAIN= | ||
|
||
|
||
### LDAP server settings ### | ||
# Password of LDAP user "cn=admin,dc=owncloud,dc=test". Defaults to "admin" | ||
LDAP_ADMIN_PASSWORD= | ||
|
||
### LDAP manager settings ### | ||
# Domain of LDAP manager. Defaults to "ldap.owncloud.test" | ||
LDAP_MANAGER_DOMAIN= |
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,6 @@ | ||
--- | ||
document this deployment example in docs/ocis/deployment/cs3_users_ocis.md | ||
--- | ||
|
||
Please refer to [our documentation](https://owncloud.github.io/ocis/deployment/cs3_users_ocis/) | ||
for instructions on how to deploy this scenario. |
9 changes: 9 additions & 0 deletions
9
deployments/examples/cs3_users_ocis/config/ldap/ldif/10_owncloud_schema.ldif
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,9 @@ | ||
# This LDIF files describes the ownCloud schema and can be used to | ||
# add two optional attributes: ownCloudQuota and ownCloudUUID | ||
# The ownCloudUUID is used to store a unique, non-reassignable, persistent identifier for users and groups | ||
dn: cn=owncloud,cn=schema,cn=config | ||
objectClass: olcSchemaConfig | ||
cn: owncloud | ||
olcAttributeTypes: ( 1.3.6.1.4.1.39430.1.1.1 NAME 'ownCloudQuota' DESC 'User Quota (e.g. 2 GB)' EQUALITY caseExactMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE ) | ||
olcAttributeTypes: ( 1.3.6.1.4.1.39430.1.1.2 NAME 'ownCloudUUID' DESC 'A non-reassignable and persistent account ID)' EQUALITY uuidMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.1.16.1 SINGLE-VALUE ) | ||
olcObjectClasses: ( 1.3.6.1.4.1.39430.1.2.1 NAME 'ownCloud' DESC 'ownCloud LDAP Schema' AUXILIARY MAY ( ownCloudQuota $ ownCloudUUID ) ) |
64 changes: 64 additions & 0 deletions
64
deployments/examples/cs3_users_ocis/config/ldap/ldif/20_users.ldif
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,64 @@ | ||
dn: ou=users,dc=owncloud,dc=com | ||
objectClass: organizationalUnit | ||
ou: users | ||
|
||
# Start dn with uid (user identifier / login), not cn (Firstname + Surname) | ||
dn: uid=einstein,ou=users,dc=owncloud,dc=com | ||
objectClass: inetOrgPerson | ||
objectClass: organizationalPerson | ||
objectClass: ownCloud | ||
objectClass: person | ||
objectClass: posixAccount | ||
objectClass: top | ||
uid: einstein | ||
givenName: Albert | ||
sn: Einstein | ||
cn: Albert Einstein | ||
displayName: Albert Einstein | ||
description: A German-born theoretical physicist who developed the theory of relativity, one of the two pillars of modern physics (alongside quantum mechanics). | ||
mail: einstein@example.org | ||
uidNumber: 20000 | ||
gidNumber: 30000 | ||
homeDirectory: /home/einstein | ||
ownCloudUUID:: NGM1MTBhZGEtYzg2Yi00ODE1LTg4MjAtNDJjZGY4MmMzZDUx | ||
userPassword:: e1NTSEF9TXJEcXpFNGdKbXZxbVRVTGhvWEZ1VzJBbkV3NWFLK3J3WTIvbHc9PQ== | ||
|
||
dn: uid=marie,ou=users,dc=owncloud,dc=com | ||
objectClass: inetOrgPerson | ||
objectClass: organizationalPerson | ||
objectClass: ownCloud | ||
objectClass: person | ||
objectClass: posixAccount | ||
objectClass: top | ||
uid: marie | ||
givenName: Marie | ||
sn: Curie | ||
cn: Marie Curie | ||
displayName: Marie Skłodowska Curie | ||
description: A Polish and naturalized-French physicist and chemist who conducted pioneering research on radioactivity. | ||
mail: marie@example.org | ||
uidNumber: 20001 | ||
gidNumber: 30000 | ||
homeDirectory: /home/marie | ||
ownCloudUUID:: ZjdmYmY4YzgtMTM5Yi00Mzc2LWIzMDctY2YwYThjMmQwZDlj | ||
userPassword:: e1NTSEF9UmFvQWs3TU9jRHBIUWY3bXN3MGhHNnVraFZQWnRIRlhOSUNNZEE9PQ== | ||
|
||
dn: uid=richard,ou=users,dc=owncloud,dc=com | ||
objectClass: inetOrgPerson | ||
objectClass: organizationalPerson | ||
objectClass: ownCloud | ||
objectClass: person | ||
objectClass: posixAccount | ||
objectClass: top | ||
uid: richard | ||
givenName: Richard | ||
sn: Feynman | ||
cn: Richard Feynman | ||
displayName: Richard Phillips Feynman | ||
description: An American theoretical physicist, known for his work in the path integral formulation of quantum mechanics, the theory of quantum electrodynamics, the physics of the superfluidity of supercooled liquid helium, as well as his work in particle physics for which he proposed the parton model. | ||
mail: richard@example.org | ||
uidNumber: 20002 | ||
gidNumber: 30000 | ||
homeDirectory: /home/richard | ||
ownCloudUUID:: OTMyYjQ1NDAtOGQxNi00ODFlLThlZjQtNTg4ZTRiNmIxNTFj | ||
userPassword:: e1NTSEF9Z05LZTRreHdmOGRUREY5eHlhSmpySTZ3MGxSVUM1d1RGcWROTVE9PQ== |
95 changes: 95 additions & 0 deletions
95
deployments/examples/cs3_users_ocis/config/ldap/ldif/30_groups.ldif
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,95 @@ | ||
dn: ou=groups,dc=owncloud,dc=com | ||
objectClass: organizationalUnit | ||
ou: groups | ||
|
||
dn: cn=users,ou=groups,dc=owncloud,dc=com | ||
objectClass: groupOfUniqueNames | ||
objectClass: posixGroup | ||
objectClass: ownCloud | ||
objectClass: top | ||
cn: users | ||
description: Users | ||
gidNumber: 30000 | ||
ownCloudUUID:: NTA5YTlkY2QtYmIzNy00ZjRmLWEwMWEtMTlkY2EyN2Q5Y2Zh | ||
uniqueMember: uid=einstein,ou=users,dc=owncloud,dc=com | ||
uniqueMember: uid=marie,ou=users,dc=owncloud,dc=com | ||
uniqueMember: uid=richard,ou=users,dc=owncloud,dc=com | ||
|
||
dn: cn=sailing-lovers,ou=groups,dc=owncloud,dc=com | ||
objectClass: groupOfUniqueNames | ||
objectClass: posixGroup | ||
objectClass: ownCloud | ||
objectClass: top | ||
cn: sailing-lovers | ||
description: Sailing lovers | ||
gidNumber: 30001 | ||
ownCloudUUID:: NjA0MGFhMTctOWM2NC00ZmVmLTliZDAtNzcyMzRkNzFiYWQw | ||
uniqueMember: uid=einstein,ou=users,dc=owncloud,dc=com | ||
|
||
dn: cn=violin-haters,ou=groups,dc=owncloud,dc=com | ||
objectClass: groupOfUniqueNames | ||
objectClass: posixGroup | ||
objectClass: ownCloud | ||
objectClass: top | ||
cn: violin-haters | ||
description: Violin haters | ||
gidNumber: 30002 | ||
ownCloudUUID:: ZGQ1OGU1ZWMtODQyZS00OThiLTg4MDAtNjFmMmVjNmY5MTFm | ||
uniqueMember: uid=einstein,ou=users,dc=owncloud,dc=com | ||
|
||
dn: cn=radium-lovers,ou=groups,dc=owncloud,dc=com | ||
objectClass: groupOfUniqueNames | ||
objectClass: posixGroup | ||
objectClass: ownCloud | ||
objectClass: top | ||
cn: radium-lovers | ||
description: Radium lovers | ||
gidNumber: 30003 | ||
ownCloudUUID:: N2I4N2ZkNDktMjg2ZS00YTVmLWJhZmQtYzUzNWQ1ZGQ5OTdh | ||
uniqueMember: uid=marie,ou=users,dc=owncloud,dc=com | ||
|
||
dn: cn=polonium-lovers,ou=groups,dc=owncloud,dc=com | ||
objectClass: groupOfUniqueNames | ||
objectClass: posixGroup | ||
objectClass: ownCloud | ||
objectClass: top | ||
cn: polonium-lovers | ||
description: Polonium lovers | ||
gidNumber: 30004 | ||
ownCloudUUID:: Y2VkYzIxYWEtNDA3Mi00NjE0LTg2NzYtZmE5MTY1ZjU5OGZm | ||
uniqueMember: uid=marie,ou=users,dc=owncloud,dc=com | ||
|
||
dn: cn=quantum-lovers,ou=groups,dc=owncloud,dc=com | ||
objectClass: groupOfUniqueNames | ||
objectClass: posixGroup | ||
objectClass: ownCloud | ||
objectClass: top | ||
cn: quantum-lovers | ||
description: Quantum lovers | ||
gidNumber: 30005 | ||
ownCloudUUID:: YTE3MjYxMDgtMDFmOC00YzMwLTg4ZGYtMmIxYTlkMWNiYTFh | ||
uniqueMember: uid=richard,ou=users,dc=owncloud,dc=com | ||
|
||
dn: cn=philosophy-haters,ou=groups,dc=owncloud,dc=com | ||
objectClass: groupOfUniqueNames | ||
objectClass: posixGroup | ||
objectClass: ownCloud | ||
objectClass: top | ||
cn: philosophy-haters | ||
description: Philosophy haters | ||
gidNumber: 30006 | ||
ownCloudUUID:: MTY3Y2JlZTItMDUxOC00NTVhLWJmYjItMDMxZmUwNjIxZTVk | ||
uniqueMember: uid=richard,ou=users,dc=owncloud,dc=com | ||
|
||
dn: cn=physics-lovers,ou=groups,dc=owncloud,dc=com | ||
objectClass: groupOfUniqueNames | ||
objectClass: posixGroup | ||
objectClass: ownCloud | ||
objectClass: top | ||
cn: physics-lovers | ||
description: Physics lovers | ||
gidNumber: 30007 | ||
ownCloudUUID:: MjYyOTgyYzEtMjM2Mi00YWZhLWJmZGYtOGNiZmVmNjRhMDZl | ||
uniqueMember: uid=einstein,ou=users,dc=owncloud,dc=com | ||
uniqueMember: uid=marie,ou=users,dc=owncloud,dc=com | ||
uniqueMember: uid=richard,ou=users,dc=owncloud,dc=com |
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 @@ | ||
identifier-registration.yaml |
41 changes: 41 additions & 0 deletions
41
deployments/examples/cs3_users_ocis/config/ocis/identifier-registration.dist.yaml
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,41 @@ | ||
--- | ||
|
||
# OpenID Connect client registry. | ||
clients: | ||
- id: phoenix | ||
name: OCIS | ||
application_type: web | ||
insecure: yes | ||
trusted: yes | ||
redirect_uris: | ||
- https://ocis.owncloud.test/ | ||
- https://ocis.owncloud.test/oidc-callback.html | ||
- https://ocis.owncloud.test/oidc-silent-redirect.html | ||
origins: | ||
- https://ocis.owncloud.test | ||
|
||
- id: ocis-explorer.js | ||
name: oCIS Graph Explorer | ||
trusted: yes | ||
insecure: yes | ||
|
||
- id: xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69 | ||
secret: UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh | ||
name: ownCloud desktop app | ||
application_type: native | ||
insecure: true | ||
|
||
- id: e4rAsNUSIUs0lF4nbv9FmCeUkTlV9GdgTLDH1b5uie7syb90SzEVrbN7HIpmWJeD | ||
secret: dInFYGV33xKzhbRmpqQltYNdfLdJIfJ9L5ISoKhNoT9qZftpdWSP71VrpGR9pmoD | ||
name: ownCloud Android app | ||
application_type: native | ||
redirect_uris: | ||
- oc://android.owncloud.com | ||
|
||
- id: mxd5OQDk6es5LzOzRvidJNfXLUZS2oN3oUFeXPP8LpPrhx3UroJFduGEYIBOxkY1 | ||
secret: KFeFWWEZO9TkisIQzR3fo7hfiMXlOpaqP8CFuTbSHzV1TUuGECglPxpiVKJfOXIx | ||
name: ownCloud iOS app | ||
application_type: native | ||
redirect_uris: | ||
- oc://ios.owncloud.com | ||
- oc.ios://ios.owncloud.com |
82 changes: 82 additions & 0 deletions
82
deployments/examples/cs3_users_ocis/config/ocis/proxy-config.json
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,82 @@ | ||
{ | ||
"HTTP": { | ||
"Namespace": "com.owncloud" | ||
}, | ||
"policy_selector": { | ||
"static": { | ||
"policy": "ocis" | ||
} | ||
}, | ||
"policies": [ | ||
{ | ||
"name": "ocis", | ||
"routes": [ | ||
{ | ||
"endpoint": "/", | ||
"backend": "http://localhost:9100" | ||
}, | ||
{ | ||
"endpoint": "/.well-known/", | ||
"backend": "http://localhost:9130" | ||
}, | ||
{ | ||
"endpoint": "/konnect/", | ||
"backend": "http://localhost:9130" | ||
}, | ||
{ | ||
"endpoint": "/signin/", | ||
"backend": "http://localhost:9130" | ||
}, | ||
{ | ||
"type": "regex", | ||
"endpoint": "/ocs/v[12].php/cloud/user/signing-key", | ||
"backend": "http://localhost:9110" | ||
}, | ||
{ | ||
"endpoint": "/ocs/", | ||
"backend": "http://localhost:9140" | ||
}, | ||
{ | ||
"endpoint": "/remote.php/", | ||
"backend": "http://localhost:9140" | ||
}, | ||
{ | ||
"endpoint": "/dav/", | ||
"backend": "http://localhost:9140" | ||
}, | ||
{ | ||
"endpoint": "/webdav/", | ||
"backend": "http://localhost:9140" | ||
}, | ||
{ | ||
"endpoint": "/status.php", | ||
"backend": "http://localhost:9140" | ||
}, | ||
{ | ||
"endpoint": "/index.php/", | ||
"backend": "http://localhost:9140" | ||
}, | ||
{ | ||
"endpoint": "/data", | ||
"backend": "http://localhost:9140" | ||
}, | ||
{ | ||
"endpoint": "/api/v0/settings", | ||
"backend": "http://localhost:9190" | ||
}, | ||
{ | ||
"endpoint": "/settings.js", | ||
"backend": "http://localhost:9190" | ||
}, | ||
{ | ||
"endpoint": "/api/v0/greet", | ||
"backend": "http://localhost:9105" | ||
}, | ||
{ | ||
"endpoint": "/hello.js", | ||
"backend": "http://localhost:9105" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.