if you want to use the credentials to call udm, you can just pass “$@” to the udm call, as can be seen in many UCS joinscripts. Also, have a look at our documentation how to write join scripts.
If you want to parse that information from the joinscript call parameters into bash variables, you can use this snippet to have them available in the
bindpwd, which is also used in the
45univention-join.inst UCC joinscript:
eval $(echo "$@" | sed -n 's/.*--binddn \(.*\) --bindpwd \(.*\).*/binddn="\1"\nbindpwd="\2"/p')