08/04/2023
04:10 AM
- last edited on
08/07/2023
08:08 AM
by
Dave
Hi Team,
V23.6
We are looking for OpenLDAP Incremental access import configuration and in the LDAP connector documentation, its not clearly mentioned as the attributes are different in OpenLDAP and no examples are provided for different LDAP types and the definition for each attribute used below.
{
"incrementalImportType": "NotUsed",
"changeLogBase": "OU=TestOU,DC=corp,DC=test,DC=com",
"changeNumberFilter": "&(changeNumber>=##MAX_CHANGENUMBER##)(targetDN=*OU=TestOU,DC=corp,DC=test,DC=com*)",
"dnAttributeName": "targetDn",
"dnAttributeNameMappedTo": "username",
"changeNumberAttrName": "uSNChanged",
"changeTypeAttrName": "changeType",
"changedFeildsInScope": "status,CUSTOMPROPERTY1,CUSTOMPROPERTY2,
LASTLOGONDATE,DISPLAYNAME,CUSTOMPROPERTY25,CUSTOMPROPERTY3,
COMMENTS,CUSTOMPROPERTY4,CUSTOMPROPERTY5,CUSTOMPROPERTY6,
CUSTOMPROPERTY7,CUSTOMPROPERTY8,CUSTOMPROPERTY9,DESCRIPTION,
CUSTOMPROPERTY14,CUSTOMPROPERTY15,CUSTOMPROPERTY16,
CUSTOMPROPERTY17,CUSTOMPROPERTY18,NAME,CUSTOMPROPERTY20,
CREATED_ON,ACCOUNTCLASS,customProperty29,dummy",
"changesLogAttrName": "changes",
"searchAttribute": "entrydn",
"searchOn": "rdn"
}
Does someone as sample Incremental Config for OpenLDAP, which we can refer for incremental access import?
Already tried "incrementalTimeField": "modifyTimestamp" in groupimport mapping but its not working and incremental import job is consuming 3-4 hours which is same as Full access import.
Do you have any suggestions for the above query?
Regards,
Prashanth.s.v
[This message has been edited by moderator to merge reply]
08/08/2023 09:13 PM
Hello @prashanth_sv,
Please utilize the provided JSON within the "groupimportmapping" section, leaving the "incremental-config" field empty. Additionally, feel free to adjust the attributes below according to your preferences:
```json
{
"importGroupHierarchy": "false",
"entitlementTypeName": "isMemberOf",
"importnestedmembershipoutofscope": "false",
"performGroupAccountLinking": "true",
"incrementalTimeField": "",
"groupObjectClass": "(objectClass=groupOfUniqueNames)",
"groupAccountMappingAttributeName": "uniqueMember",
"mapping": "memberHash:member_char,entitlement_value:entrydn_char,entitlement_glossary:entrydn_char,customProperty1:cn_char,customProperty2:entryuuid_char,customProperty3:objectClass_char,customProperty15:owner_char,lastscandate:createTimestamp_date,createdate:createTimestamp_date,updatedate:modifyTimestamp_date,RECONCILATION_FIELD:entitlement_value"
}
```
08/09/2023 03:45 AM
Hi Sudesh,
Tried with your suggestion but no success. It still processing almost same 3-4 hours. But we need this attribute right for incremental import to work. Do you have any sample JSON's for incremental config?
Regards,
Prashanth.s.v
08/13/2023 10:32 PM
Hello @prashanth_sv,
In the above group import mapping json can you try with
"incrementalTimeField": "whenChanged", and try.
{
"importGroupHierarchy" : "true",
"entitlementTypeName": "",
"performGroupAccountLinking": "true",
"incrementalTimeField": "whenChanged",
"groupObjectClass": "(objectclass=group)",
"mapping": "memberHash:member_char,customProperty1:sAMAccountType_char,customProperty16:memberOf_char,customProperty2:instanceType_char,
customProperty3:uSNCreated_char,customProperty4:groupType_char,customProperty5:dSCorePropagationData_char,customProperty12:dn_char,
customProperty13:cn_char,lastscandate:whenCreated_date,customProperty15:managedBy_char,entitlement_glossary:description_char
customProperty9:name_char,customProperty10:objectCategory_char,customProperty11:sAMAccountName_char,customProperty14:objectClass_char,
status:isCriticalSystemObject_char,entitlement_value:distinguishedName_char,customProperty17:distinguishedName_char,RECONCILATION_FIELD:customProperty17",
"activeGroupPossibleValues": [
"active",
"a",
"l",
"TRUE"
]
}
For Ref:-
https://docs.saviyntcloud.com/bundle/LDAP-v2022x/page/Content/Example-JSON-for-Connection-Parameters...
https://docs.saviyntcloud.com/bundle/LDAP-v2022x/page/Content/Introduction.htm
Thanks,
08/24/2023 03:35 AM
Hi Sudesh,
No the above config will not work as we don't have 'whenChanged' attribute in OpenLDAP, as we had already tried this in initial phase.
Regards,
Prashanth.s.v
09/14/2023 07:16 AM
Can you get an export of group object attributes, so that we can see if there is any attribute which contains group change time stamp.
The attribute modifyTimestamp gets updated even when a user is added or removed from the group, probably thats the reason you still see large number of groups returned even for incremental import.
To prove the above theory, can you update the json with modifyTimestamp as incremental field in the Json that Sudesh provided and then run two incremental imports one after the other (confirm that first run was successful before running the second incremental import). Since the second import job is executed soon after the first one, there would be hardly any add/remove events on the group so the modifyTimestamp would remain same for most of the groups. Thus the expectation is that the second job will be completed quickly.
09/20/2023 08:37 AM
09/21/2023 03:59 PM