MS SyncUsers
This commit is contained in:
parent
0c659d9f72
commit
5361b749aa
@ -64,11 +64,6 @@ Public Class ActiveDirectoryInterface
|
|||||||
Return Nothing
|
Return Nothing
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
If oUsers.Count = 0 Then
|
|
||||||
_logger.Debug("Group {0} does not contain any users.", GroupName)
|
|
||||||
Return oUsers
|
|
||||||
End If
|
|
||||||
|
|
||||||
' Do the actual sync into firebird
|
' Do the actual sync into firebird
|
||||||
If Firebird IsNot Nothing Then
|
If Firebird IsNot Nothing Then
|
||||||
oSyncedUsersFirebird = oFirebirdSync.SyncUsers(GroupName, oUsers, AttributeMappings)
|
oSyncedUsersFirebird = oFirebirdSync.SyncUsers(GroupName, oUsers, AttributeMappings)
|
||||||
|
|||||||
@ -113,6 +113,7 @@ Namespace SyncUsers
|
|||||||
' Delete users that are assigned to the group but no longer exist in active directory
|
' Delete users that are assigned to the group but no longer exist in active directory
|
||||||
Dim oUserIdString = String.Join(",", oSyncedUserIds)
|
Dim oUserIdString = String.Join(",", oSyncedUserIds)
|
||||||
If oSyncedUserIds.Count = 0 Then
|
If oSyncedUserIds.Count = 0 Then
|
||||||
|
_logger.Info("Group {0} does not contain any users.", GroupName)
|
||||||
oUserIdString = 0
|
oUserIdString = 0
|
||||||
End If
|
End If
|
||||||
Dim oSQL As String = $"DELETE FROM TBDD_GROUPS_USER WHERE USER_ID NOT IN ({oUserIdString}) AND GROUP_ID = {oGroupId}"
|
Dim oSQL As String = $"DELETE FROM TBDD_GROUPS_USER WHERE USER_ID NOT IN ({oUserIdString}) AND GROUP_ID = {oGroupId}"
|
||||||
|
|||||||
@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("1.7.0.0")>
|
<Assembly: AssemblyVersion("1.7.1.0")>
|
||||||
<Assembly: AssemblyFileVersion("1.7.0.0")>
|
<Assembly: AssemblyFileVersion("1.7.1.0")>
|
||||||
|
|||||||
18
Service.JobRunner/My Project/Settings.Designer.vb
generated
18
Service.JobRunner/My Project/Settings.Designer.vb
generated
@ -117,6 +117,15 @@ Namespace My
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
<Global.System.Configuration.ApplicationScopedSettingAttribute(), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Configuration.DefaultSettingValueAttribute("True|10/0 * * * * ?|Foo::Bar")> _
|
||||||
|
Public ReadOnly Property TEST_CONFIG() As String
|
||||||
|
Get
|
||||||
|
Return CType(Me("TEST_CONFIG"),String)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
<Global.System.Configuration.ApplicationScopedSettingAttribute(), _
|
<Global.System.Configuration.ApplicationScopedSettingAttribute(), _
|
||||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
Global.System.Configuration.DefaultSettingValueAttribute("False|0 0 0/1 * * ?|QueryConfigFolder::E:\JenneJ\GraphQL")> _
|
Global.System.Configuration.DefaultSettingValueAttribute("False|0 0 0/1 * * ?|QueryConfigFolder::E:\JenneJ\GraphQL")> _
|
||||||
@ -135,15 +144,6 @@ Namespace My
|
|||||||
Return CType(Me("ADSYNC_CONFIG"),String)
|
Return CType(Me("ADSYNC_CONFIG"),String)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
<Global.System.Configuration.ApplicationScopedSettingAttribute(), _
|
|
||||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
||||||
Global.System.Configuration.DefaultSettingValueAttribute("False|10/0 * * * * ?|Foo::Bar")> _
|
|
||||||
Public ReadOnly Property TEST_CONFIG() As String
|
|
||||||
Get
|
|
||||||
Return CType(Me("TEST_CONFIG"),String)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
End Class
|
End Class
|
||||||
End Namespace
|
End Namespace
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user