By: Ravan Fattahov user 31 Jul 2023 at 8:32 a.m. CDT

8 Responses
Ravan Fattahov gravatar
When we want to run scim_event_handler.py script it gives error bellow. Caused by: Traceback (most recent call last): File "scim_event_handler.py", line 1, in <module> ImportError: No module named ldap we have installed python-ldap. my script: # oxTrust is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. # Copyright (c) 2014, Gluu # # Author: Jose Gonzalez # from org.xdi.model.custom.script.type.scim import ScimType from org.xdi.util import StringHelper, ArrayHelper from java.util import Arrays, ArrayList from org.gluu.oxtrust.ldap.service import PersonService from org.xdi.service.cdi.util import CdiUtil from org.gluu.oxtrust.model import GluuCustomPerson from org.xdi.ldap.model import GluuStatus import java class ScimEventHandler(ScimType): def __init__(self, currentTimeMillis): self.currentTimeMillis = currentTimeMillis def init(self, configurationAttributes): print("ScimEventHandler (init): Initialized successfully") return True def destroy(self, configurationAttributes): print("ScimEventHandler (destroy): Destroyed successfully") return True def getApiVersion(self): # return 2 if you want the post* scripts being executed return 1 def createUser(self, user, configurationAttributes): print("ScimEventHandler (createUser): Current id = " + user.getUid()) print("ScimEventHandler (createUser): Status %s" % user.getStatus()) print("ScimEventHandler (createUser): GluuStatus = " + user.getAttribute("gluuStatus")) user.setStatus(GluuStatus.ACTIVE) return True def updateUser(self, user, configurationAttributes): personService = CdiUtil.bean(PersonService) oldUser = personService.getPersonByUid(user.getUid()) print("ScimEventHandler (updateUser): Old displayName %s" % oldUser.getDisplayName()) print("ScimEventHandler (updateUser): New displayName " + user.getDisplayName()) print("ScimEventHandler (updateUser): Current id = " + user.getUid()) print("ScimEventHandler (updateUser): Status %s" % user.getStatus()) print("ScimEventHandler (updateUser): GluuStatus = " + user.getAttribute("gluuStatus")) if StringHelper.equals(user.getAttribute("gluuStatus"), "TRUE"): print("ScimEventHandler (updateUser): activate user " + user.getDisplayName()) user.setStatus(GluuStatus.ACTIVE) else: print("ScimEventHandler (updateUser): deactivate user status " + user.getDisplayName()) user.setStatus(GluuStatus.INACTIVE) return True def deleteUser(self, user, configurationAttributes): print("ScimEventHandler (deleteUser): Current id = " + user.getUid()) return True def createGroup(self, group, configurationAttributes): print("ScimEventHandler (createGroup): Current displayName = " + group.getDisplayName()) return True def updateGroup(self, group, configurationAttributes): print("ScimEventHandler (updateGroup): Current displayName = " + group.getDisplayName()) return True def deleteGroup(self, group, configurationAttributes): print("ScimEventHandler (deleteGroup): Current displayName = " + group.getDisplayName()) return True def postCreateUser(self, user, configurationAttributes): return True def postUpdateUser(self, user, configurationAttributes): return True def postDeleteUser(self, user, configurationAttributes): return True def postUpdateGroup(self, group, configurationAttributes): return True def postCreateGroup(self, group, configurationAttributes): return True def postDeleteGroup(self, group, configurationAttributes): return True

By Mohib Zico staff 31 Jul 2023 at 10:23 a.m. CDT

Mohib Zico gravatar
Gluu has ended community support for Gluu 4. See https://gluu.org/gluu-4/ Also, security updates for Gluu 4 binaries are now behind a paywall. Please contact us if you want to purchase a support contract. If you want to use free binaries: please move to the HEAD of the project at https://jans.io There are VM and cloud native assets in the Releases section. Community support for Janssen Project is moved to Gihub [Discussion](https://github.com/JanssenProject/jans/discussions).

By Ravan Fattahov user 01 Aug 2023 at 1:12 a.m. CDT

Ravan Fattahov gravatar
We want to get some information about price list for supporting GLuu 4.5.0 version.

By Mohib Zico staff 01 Aug 2023 at 2:39 a.m. CDT

Mohib Zico gravatar
Sure. We will follow up in email. Any preferred email address?

By Ravan Fattahov user 01 Aug 2023 at 2:54 a.m. CDT

Ravan Fattahov gravatar
ravan.fattahov@cybernet.az. İt is my email adress. Please send information to this email.

By Ravan Fattahov user 01 Aug 2023 at 6:11 a.m. CDT

Ravan Fattahov gravatar
Please send information quickly to us as possible. Now our jobs have stopped.

By Ravan Fattahov user 02 Aug 2023 at 1:52 a.m. CDT

Ravan Fattahov gravatar
Kind reminder.

By Ravan Fattahov user 02 Aug 2023 at 1:56 a.m. CDT

Ravan Fattahov gravatar
Hello , Please send me Gluu 4.5.0 version support price. It is important for me. Thank you in advance.

By Mohib Zico staff 02 Aug 2023 at 2:17 a.m. CDT

Mohib Zico gravatar
Acknowledged. You will get email from us as early as possible.