That would be great if possible… since the begin what i have done is adapt the script so when the user is created i change the domain… I now that should be done, but is working for me
Something like this
#Search for def _create_user and change the line ...
attributes["userPrincipalName"] = attributes["userPrincipalName"].replace('@DOMAIN_IN_O365_UCS','@PRETENDED_DOMAIN')
#Restart the service
invoke-rc.d univention-directory-listener restart
As i mentioned… that could break, procede with caution.
In the moment i’m still running 2.4 version