-
Notifications
You must be signed in to change notification settings - Fork 18
add support for Keycloak / UCS 5.2 #207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
39a8e49
6084461
2446d3d
4d3aea3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,8 @@ | |
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
. /usr/share/univention-lib/base.sh | ||
|
||
NC_PERMCONFDIR="/var/lib/univention-appcenter/apps/nextcloud/data/integration" | ||
|
||
NC_UCR_FILE="$NC_PERMCONFDIR/ucr" | ||
|
@@ -28,8 +30,8 @@ if [ ! -d "$NC_PERMCONFDIR" ]; then | |
fi | ||
|
||
cat >"$NC_UCR_FILE" <<EOL | ||
export NC_HOST_IPS="`ucr dump | grep interfaces | grep address | cut -d ":" -f2`" | ||
export NC_TRUSTED_PROXY_IP="`ucr get docker/daemon/default/opts/bip | cut -d "/" -f 1`" | ||
export NC_HOST_IPS="$(get_default_ip_address)" | ||
export NC_TRUSTED_PROXY_IP="$(ucr get docker/daemon/default/opts/bip | cut -d "/" -f 1)" | ||
Comment on lines
+33
to
+34
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are we sure this change does not have potential to cause a regression? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think so. The current code is broken and randomly uses the first found interface, regardless of whether it's IPv4 or IPv6. At least it would be deterministic now. |
||
EOL | ||
|
||
chmod +x "$NC_UCR_FILE" | ||
|
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.
On my test run with #208 the joinscript ran through, but the IDP certificate was not set. Actually non of the key material was set, only:
Seems like the
univention-keycloak
commands did not succeed?What's the best way to invoke it manually for testing? I forgot what was passed with
$@
🙊.I am also not seeing much in the UMC web unterface, where would these things be now?
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.
Can you show the log file
/var/log/univention/join.log
after executing the joinscript.univention-run-join-scripts --force --run-scripts 50nextcloud.inst
$@
is often empty on DC Master, and contains on other roles--binddn "$dn_of_Administrator" --bindpwdfile /some/secret/file
.They are only in Keycloak. We didn't add UDM modules for these settings :-/
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.
The log does not contain much, but setting of the keys is missing:
So when i run it with the empty string, I get a usage error.
When I leave it out an Name or service not known:
Can it be that this is not even running? i do not see either
keycloak
norjava
in theps
output, not a related systemd service. – Seeing your next comment it is probably not installed.And the domain
dig ucs-sso-ng.lorem-ipsum.intranet
does not resolve (the "old" one – dig ucs-sso.lorem-ipsum.intranet – still does).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.
bash-special: "$@" does not expand to empty string but to nothing, if there are no args.
Please do
univention-app install keycloak
. After this, the service should run.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.
Please also cherry-pick ab2fbb8, where I added handling for not-installed Keycloak. And added clearer error messages in the joinscript.