don't overwrite connections for other sources
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
52463b8f96
commit
2a6479062f
|
@ -67,8 +67,8 @@ class GroupLDAPSynchronizer(BaseLDAPSynchronizer):
|
|||
LDAPGroupSourceConnection.objects.update_or_create(
|
||||
defaults={
|
||||
"unique_identifier": uniq,
|
||||
"source": self._source,
|
||||
},
|
||||
source=self._source,
|
||||
group=ak_group,
|
||||
)
|
||||
except (IntegrityError, FieldError, TypeError, AttributeError) as exc:
|
||||
|
|
|
@ -62,8 +62,8 @@ class UserLDAPSynchronizer(BaseLDAPSynchronizer):
|
|||
LDAPUserSourceConnection.objects.update_or_create(
|
||||
defaults={
|
||||
"unique_identifier": uniq,
|
||||
"source": self._source,
|
||||
},
|
||||
source=self._source,
|
||||
user=ak_user,
|
||||
)
|
||||
except (IntegrityError, FieldError, TypeError, AttributeError) as exc:
|
||||
|
|
Reference in New Issue