-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:orthanc-team/orthanc-auth-service i…
…nto main
- Loading branch information
Showing
15 changed files
with
410 additions
and
126 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
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
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,30 @@ | ||
# SPDX-FileCopyrightText: 2022 - 2024 Orthanc Team SRL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
# What is it about? | ||
|
||
This is a tiny setup to quickly spin up an LDAP server to perform some tests (with Keycloak). | ||
All users have the same password: | ||
``` | ||
change-me | ||
``` | ||
|
||
## Cheat code to run it aside Keycloak | ||
|
||
From the keycloak folder (minimal-setup): | ||
``` | ||
docker compose -f docker-compose.yml -f ../openldap/docker-compose.yml up -d | ||
``` | ||
|
||
## Login to the mgmt web ui | ||
``` | ||
http://localhost:6443 | ||
cn=admin,dc=myorg,dc=com | ||
change-me | ||
``` | ||
|
||
## List all the users from the terminal | ||
``` | ||
ldapsearch -x -H ldap://localhost:389 -D "cn=admin,dc=myorg,dc=com" -w "change-me" -b "OU=users,DC=myorg,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,27 @@ | ||
# SPDX-FileCopyrightText: 2022 - 2024 Orthanc Team SRL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
version: "3" | ||
services: | ||
|
||
openldap-server: | ||
image: osixia/openldap | ||
ports: | ||
- 389:389 | ||
- 636:636 | ||
environment: | ||
LDAP_ORGANISATION: "MyOrg" | ||
LDAP_DOMAIN: "myorg.com" | ||
LDAP_ADMIN_PASSWORD: "change-me" | ||
LDAP_SEED_INTERNAL_LDIF_PATH: "/home/ldif" | ||
volumes: | ||
- ../openldap/ldif:/home/ldif | ||
|
||
phpldapadmin: | ||
image: osixia/phpldapadmin | ||
ports: | ||
- 6443:80 | ||
environment: | ||
PHPLDAPADMIN_HTTPS: "false" | ||
PHPLDAPADMIN_LDAP_HOSTS: "openldap-server" |
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,110 @@ | ||
# SPDX-FileCopyrightText: 2022 - 2024 Orthanc Team SRL <[email protected]> | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
# LDIF Export for dc=myorg,dc=com | ||
# Server: openldap-server (openldap-server) | ||
# Search Scope: sub | ||
# Search Filter: (objectClass=*) | ||
# Total Entries: 9 | ||
# | ||
# Generated by phpLDAPadmin (http://phpldapadmin.sourceforge.net) on September 16, 2024 11:47 am | ||
# Version: 1.2.5 | ||
|
||
version: 1 | ||
|
||
# Entry 1: dc=myorg,dc=com | ||
# dn: dc=myorg,dc=com | ||
# dc: myorg | ||
# o: MyOrg | ||
# objectclass: top | ||
# objectclass: dcObject | ||
# objectclass: organization | ||
|
||
# Entry 2: ou=groups,dc=myorg,dc=com | ||
dn: ou=groups,dc=myorg,dc=com | ||
objectclass: organizationalUnit | ||
objectclass: top | ||
ou: groups | ||
|
||
# Entry 3: cn=developers,ou=groups,dc=myorg,dc=com | ||
dn: cn=developers,ou=groups,dc=myorg,dc=com | ||
cn: developers | ||
objectclass: top | ||
objectclass: groupOfUniqueNames | ||
uniquemember: uid=john.doe,ou=users,dc=myorg,dc=com | ||
uniquemember: uid=jane.doe,ou=users,dc=myorg,dc=com | ||
|
||
# Entry 4: cn=managers,ou=groups,dc=myorg,dc=com | ||
dn: cn=managers,ou=groups,dc=myorg,dc=com | ||
cn: managers | ||
objectclass: top | ||
objectclass: groupOfUniqueNames | ||
uniquemember: uid=alice.smith,ou=users,dc=myorg,dc=com | ||
uniquemember: uid=bob.jones,ou=users,dc=myorg,dc=com | ||
|
||
# Entry 5: ou=users,dc=myorg,dc=com | ||
dn: ou=users,dc=myorg,dc=com | ||
objectclass: organizationalUnit | ||
objectclass: top | ||
ou: users | ||
|
||
# Entry 6: uid=alice.smith,ou=users,dc=myorg,dc=com | ||
dn: uid=alice.smith,ou=users,dc=myorg,dc=com | ||
cn: Alice Smith | ||
gidnumber: 500 | ||
homedirectory: /home/alice.smith | ||
loginshell: /bin/bash | ||
mail: [email protected] | ||
objectclass: inetOrgPerson | ||
objectclass: posixAccount | ||
objectclass: top | ||
sn: Smith | ||
uid: alice.smith | ||
uidnumber: 1003 | ||
userpassword: {SSHA}gPG0Te3ggmrEBf1cFg0wgymawpCOKF85 | ||
|
||
# Entry 7: uid=bob.jones,ou=users,dc=myorg,dc=com | ||
dn: uid=bob.jones,ou=users,dc=myorg,dc=com | ||
cn: Bob Jones | ||
gidnumber: 500 | ||
homedirectory: /home/bob.jones | ||
loginshell: /bin/bash | ||
mail: [email protected] | ||
objectclass: inetOrgPerson | ||
objectclass: posixAccount | ||
objectclass: top | ||
sn: Jones | ||
uid: bob.jones | ||
uidnumber: 1004 | ||
userpassword: {SSHA}uJVNDjOzKANIzuFZusa7PfJlcTM/odaO | ||
|
||
# Entry 8: uid=jane.doe,ou=users,dc=myorg,dc=com | ||
dn: uid=jane.doe,ou=users,dc=myorg,dc=com | ||
cn: Jane Doe | ||
gidnumber: 500 | ||
homedirectory: /home/jane.doe | ||
loginshell: /bin/bash | ||
mail: [email protected] | ||
objectclass: inetOrgPerson | ||
objectclass: posixAccount | ||
objectclass: top | ||
sn: Doe | ||
uid: jane.doe | ||
uidnumber: 1002 | ||
userpassword: {SSHA}Nzle/2CA2DA7A+jFZVZiHraEKkkb+zJc | ||
|
||
# Entry 9: uid=john.doe,ou=users,dc=myorg,dc=com | ||
dn: uid=john.doe,ou=users,dc=myorg,dc=com | ||
cn: John Doe | ||
gidnumber: 500 | ||
homedirectory: /home/john.doe | ||
loginshell: /bin/bash | ||
mail: [email protected] | ||
objectclass: inetOrgPerson | ||
objectclass: posixAccount | ||
objectclass: top | ||
sn: Doe | ||
uid: john.doe | ||
uidnumber: 1001 | ||
userpassword: {SSHA}zQ/DwEuaAun5KYC7yWFc769EbbDTi/k7 |
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
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
Oops, something went wrong.