Skip to content

Commit

Permalink
fix: jans-linux-setup ldif property objectClass should be case sensit…
Browse files Browse the repository at this point in the history
…ive (#3702)
  • Loading branch information
devrimyatar authored Jan 26, 2023
1 parent 72e2f3f commit 0dc14a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jans-linux-setup/jans_setup/setup_app/installers/scim.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def generate_configuration(self):
display_name = 'Scim {}'.format(os.path.basename(scope))
ldif_scopes_writer.unparse(
scope_dn, {
'objectclass': ['top', 'jansScope'],
'objectClass': ['top', 'jansScope'],
'description': [config_scopes[scope]],
'displayName': [display_name],
'inum': [inum],
Expand Down
2 changes: 1 addition & 1 deletion jans-linux-setup/jans_setup/setup_app/utils/ldif_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_document_from_entry(dn, entry):
else:
document[k] = attribDataTypes.getTypedValue(dtype, document[k])

if k == 'objectClass':
if k.lower() == 'objectclass':
document[k].remove('top')
oc_list = document[k]

Expand Down

0 comments on commit 0dc14a0

Please sign in to comment.