Univention Bugzilla – Bug 52331
RuntimeError: Office365Listener.create_user() created user 'kmy4px901i@...' cannot be retrieved ('azuredomain'). in office365-user
Last modified: 2020-11-09 10:09:57 CET
"sometimes" the listener handler for users fails to create a new office account 06.11.20 14:15:31.028 LISTENER ( PROCESS ) : updating 'uid=abcde91,cn=users,dc=test,dc=intranet' command a 06.11.20 14:15:31.029 LISTENER ( PROCESS ) : o365: adconnection_alias_old=set([]) adconnection_alias_new=set(['azuretestdomain']) UNIVENTION_DEBUG_BEGIN : uldap.searchDn filter=(&(cn=*)(|(objectClass=univentionGroup)(objectClass=sambaGroupMapping))(uniqueMember=uid=abcde91,cn=users,dc=test,dc=intranet)) base= scope=sub unique=0 required=0 UNIVENTION_DEBUG_END : uldap.searchDn filter=(&(cn=*)(|(objectClass=univentionGroup)(objectClass=sambaGroupMapping))(uniqueMember=uid=abcde91,cn=users,dc=test,dc=intranet)) base= scope=sub unique=0 required=0 UNIVENTION_DEBUG_BEGIN : uldap.searchDn filter=(&(cn=*)(|(objectClass=posixGroup)(objectClass=sambaGroupMapping))(gidNumber=5079)) base= scope=sub unique=0 required=0 UNIVENTION_DEBUG_END : uldap.searchDn filter=(&(cn=*)(|(objectClass=posixGroup)(objectClass=sambaGroupMapping))(gidNumber=5079)) base= scope=sub unique=0 required=0 06.11.20 14:15:31.032 LISTENER ( PROCESS ) : o365: new_enabled and not old_enabled -> NEW or REACTIVATED (set(['azuretestdomain']) | uid=abcde91,cn=users,dc=test,dc=intranet) 06.11.20 14:15:31.038 LISTENER ( PROCESS ) : o365: service_plan_names=['SHAREPOINTWAC', 'SHAREPOINTWAC_DEVELOPER', 'OFFICESUBSCRIPTION', 'OFFICEMOBILE_SUBSCRIPTION', 'SHAREPOINTWAC_EDU'] 06.11.20 14:15:31.038 LISTENER ( PROCESS ) : o365: Creating user for Azure AD connection azuretestdomain with properties: {'passwordProfile': {'password': '******', 'forceChangePasswordNextLogin': False}, 'accountEnabled': True, 'surname': 'i6hyhj3avn', 'mailNickname': 'kmy4px901i', 'userPrincipalName': 'kmy4px901i@univention-azure-tests.de', 'immutableId': 'ZTNkMGNmODItYjQ3ZC0xMDNhLTlhZGQtOGQxMzgwMDA1MWEz', 'otherMails': 'kmy4px901i@test.intranet', 'displayName': 'gvttws2fde', 'givenName': 'czpl44dmi6', 'usageLocation': 'DE'} 06.11.20 14:15:31.143 LISTENER ( PROCESS ) : o365: status: 200 (OK) (GET https://graph.windows.net/d66c72f6-8dee-47ed-ac2b-7fdbe8b8a5d4/users?api-version=1.6&%24filter=immutableId+eq+%27ZTNkMGNmODItYjQ3ZC0xMDNhLTlhZGQtOGQxMzgwMDA1MWEz%27) 06.11.20 14:15:31.334 LISTENER ( PROCESS ) : o365: status: 201 (OK) (POST https://graph.windows.net/d66c72f6-8dee-47ed-ac2b-7fdbe8b8a5d4/users?api-version=1.6) 06.11.20 14:15:31.597 LISTENER ( PROCESS ) : o365: status: 200 (OK) (GET https://graph.windows.net/d66c72f6-8dee-47ed-ac2b-7fdbe8b8a5d4/users?api-version=1.6&%24filter=userPrincipalName+eq+%27kmy4px901i%40univention-azure-tests.de%27) Traceback (most recent call last): File "/usr/lib/univention-directory-listener/system/office365-user.py", line 435, in handler new_or_reactivate_user(ol, dn, new, old) File "/usr/lib/univention-directory-listener/system/office365-user.py", line 250, in new_or_reactivate_user new_user = ol.create_user(new) File "/usr/lib/pymodules/python2.7/univention/office365/listener.py", line 172, in create_user attributes["userPrincipalName"], self.adconnection_alias) RuntimeError: Office365Listener.create_user() created user 'kmy4px901i@univention-azure-tests.de' cannot be retrieved ('azuretestdomain'). 06.11.20 14:15:31.597 LISTENER ( WARN ) : handler: office365-user (failed)