Code Monkey home page Code Monkey logo

adimport's People

Contributors

chladekm avatar daliborpernica avatar davidbkentico avatar kentico-jaroslavn avatar marecekf avatar petrsvihlik avatar radekpetruska avatar simply007 avatar tomaspa avatar vit-svoboda avatar zdeneks81 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

dmn58 chladekm

adimport's Issues

Kentico AD Import Utilty query

UPDATE 03/08/2016 16:24PM GMT

We have made some updates to our database in relation to the users and roles, but we are now seeing another message from the AD import process. I have created a new issue for this.

Kind regards,

Stephen Watson

Hi,

I'm not sure if you are the correct contact to approach about this issue, but we are currently using the Kentico Active Directory Import Utility to import users from a remote server into a Kentico website, but when we run the import we are seeing following error:

[2017-08-02 15:17:36] Error occurredMessage: The server is not operational.

Stack Trace:
at System.DirectoryServices.AccountManagement.ADStoreCtx.FindPrincipalByIdentRefHelper(Type principalType, String urnScheme, String urnValue, DateTime referenceDate, Boolean useSidHistory)
at System.DirectoryServices.AccountManagement.ADStoreCtx.FindPrincipalByIdentRef(Type principalType, String urnScheme, String urnValue, DateTime referenceDate)
at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable1 identityType, String identityValue, DateTime refDate) at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext context, Type principalType, IdentityType identityType, String identityValue) at ADImport.ADProvider.Exists(Object objectIdentifier) in D:\ADImport-10.0.0\ADImport-10.0.0\ADImport\ADProvider.cs:line 1414 at lambda_method(Closure , RoleInfo ) at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
at ADImport.CMSImport.DeleteNonExistingObjects(CumulatedChanges usersChanged, CumulatedChanges rolesChanged) in D:\ADImport-10.0.0\ADImport-10.0.0\ADImport\CMSImport.cs:line 980
at ADImport.CMSImport.ImportWorker_DoWork(Object sender, DoWorkEventArgs e) in D:\ADImport-10.0.0\ADImport-10.0.0\ADImport\CMSImport.cs:line 368
The server is not operational.

at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
at System.DirectoryServices.AccountManagement.ADStoreCtx.FindPrincipalByIdentRefHelper(Type principalType, String urnScheme, String urnValue, DateTime referenceDate, Boolean useSidHistory)

Looking through the code, it seems to be breaking in the ADImport.cs at line 980 (the code extract has been attached), which seems to be the point where the deletion of CMS (domain) roles that do not exist in AD anymore. The utility can connect to the remote server fine, so we can select the user groups and users to import, but when attempting the import itself, it shows the above message.

Is this something you can help with?

Thank you.

Kind regards,

Stephen Watson
Discover IT UK

CMSImport.zip

Import AD groups issue

Hi..
hoping someone can assist with this utility,
I have run through import utility, authenticated to database and AD domain controller, select groups I wish to import, then throws an error, unhandled exception with no additional details.
Can anyone advise domain functional level required for the import utility ? don't laugh, but my organisation is still on Win2003 domain controllers :)
Is this an issue...?

AD Import

Hello
I am trying to install Active directory and import all the users and roles into Kentico, Could anyone walk me through the steps you followed to accomplish it? I installed ADImport.exe and stuck at the errors I have been receiving. I don't see ADImport tool in Kentico website though, since it's a new tool there is no clear explanation I could find in any of the sites.

No option to refresh AD data except to restart ADImport application

Let's say when I reach the dialog box where I need select groups/users that need to be imported to I realize something I need to change, like adding new group or moving around a user. Once I do this in AD, it would be nice to have a feature to refresh the AD information. Currently you have to completely close the application and start all over.

Program won't run on windows server 2019

I have installed version 13 of this app on 3 different windows servers and the program won't run. It does however run on my own personal windows machine. All servers all have .net frame work of 4.8 installed. All have kentico installations already running on the server with no issue.

I get the same error on each server:
Application Error:

Log Name: Application
Source: Application Error
Date: 3/4/2021 10:28:52 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: us-bks-web-d-01.brooks.com
Descrip tion:
Faulting application name: ADImport.exe, version: 13.0.0.0, time stamp: 0x5fabf75a
Faulting module name: KERNELBASE.dll, version: 10.0.17763.1697, time stamp: 0xb157f7ff
Exception code: 0xe0434352
Fault offset: 0x00000000000396c9
Faulting process id: 0x39e4
Faulting application start time: 0x01d71145c0c03560
Faulting application path: C:\Users\3mstone\Desktop\ADImport-v13.0.0\ADImport.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: dc1a0f34-6e91-42f1-9e69-298a817d515b
Faulting package full name:
Faulting package-relative application ID:
Event Xml:



1000
2
100
0x80000000000000

24433
Application
us-bks-web-d-01.brooks.com



ADImport.exe
13.0.0.0
5fabf75a
KERNELBASE.dll
10.0.17763.1697
b157f7ff
e0434352
00000000000396c9
39e4
01d71145c0c03560
C:\Users\3mstone\Desktop\ADImport-v13.0.0\ADImport.exe
C:\Windows\System32\KERNELBASE.dll
dc1a0f34-6e91-42f1-9e69-298a817d515b





.net runtime
Log Name: Application
Source: .NET Runtime
Date: 3/4/2021 10:28:51 PM
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: us-bks-web-d-01.brooks.com
Descrip tion:
Application: ADImport.exe
Framework Version: v4.0.30319
Descrip tion: The process was terminated due to an unhandled exception.
Exception Info: System.NotSupportedException

Exception Info: System.IO.FileLoadException
at System.Reflection.RuntimeAssembly._nLoad(System.Reflection.AssemblyName, System.String, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean, Boolean, Boolean)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(System.Reflection.AssemblyName, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean, Boolean, Boolean)
at System.Reflection.Assembly.Load(System.Reflection.AssemblyName)
at CMS.Core.AssemblyDiscovery.AddAssembly(System.Collections.Generic.ICollection1<System.Reflection.Assembly>, System.Reflection.AssemblyName) at CMS.Core.AssemblyDiscovery.AddOnlyDiscoverableAssembly(System.Collections.Generic.ICollection1<System.Reflection.Assembly>, System.Collections.Generic.Dictionary`2<System.String,System.Reflection.Assembly>, System.Reflection.AssemblyName, System.String)
at CMS.Core.AssemblyDiscovery.ExecuteGetAssemblies(Boolean)
at CMS.Core.AssemblyDiscovery.get_DiscoverableAssemblies()
at CMS.Core.AssemblyDiscoveryHelper.GetAssemblies(Boolean)
at CMS.Core.ModuleDiscovery.GetModules()
at CMS.Core.ModuleEntryManager.GetDiscoverableModules()
at CMS.Core.ModuleEntryManager.ModuleCollectionsInitialization()
at CMS.Core.ModuleEntryManager.PreInit()
at CMS.Core.AppCore.PreInit()
at CMS.DataEngine.CMSApplication.PreInit(Boolean)
at ADImport.Program.Main(System.String[])

Event Xml:



1026
2
0
0x80000000000000

24432
Application
us-bks-web-d-01.brooks.com



Application: ADImport.exe
Framework Version: v4.0.30319
Descrip tion: The process was terminated due to an unhandled exception.
Exception Info: System.NotSupportedException

Exception Info: System.IO.FileLoadException
at System.Reflection.RuntimeAssembly._nLoad(System.Reflection.AssemblyName, System.String, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean, Boolean, Boolean)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(System.Reflection.AssemblyName, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean, Boolean, Boolean)
at System.Reflection.Assembly.Load(System.Reflection.AssemblyName)
at CMS.Core.AssemblyDiscovery.AddAssembly(System.Collections.Generic.ICollection1&lt;System.Reflection.Assembly&gt;, System.Reflection.AssemblyName) at CMS.Core.AssemblyDiscovery.AddOnlyDiscoverableAssembly(System.Collections.Generic.ICollection1<System.Reflection.Assembly>, System.Collections.Generic.Dictionary`2<System.String,System.Reflection.Assembly>, System.Reflection.AssemblyName, System.String)
at CMS.Core.AssemblyDiscovery.ExecuteGetAssemblies(Boolean)
at CMS.Core.AssemblyDiscovery.get_DiscoverableAssemblies()
at CMS.Core.AssemblyDiscoveryHelper.GetAssemblies(Boolean)
at CMS.Core.ModuleDiscovery.GetModules()
at CMS.Core.ModuleEntryManager.GetDiscoverableModules()
at CMS.Core.ModuleEntryManager.ModuleCollectionsInitialization()
at CMS.Core.ModuleEntryManager.PreInit()
at CMS.Core.AppCore.PreInit()
at CMS.DataEngine.CMSApplication.PreInit(Boolean)
at ADImport.Program.Main(System.String[])

Staging task for user creation not generated

Brief bug description

When staging is turned on, creating a new user from Admin UI generates new Staging Tasks for the user object. But when using the ADImport to import new user, users will be created inside the Users App, but there is no staging tasks generated for the new users.

Client need to run the import on STG and sync new users to PROD, which they can't do easily without those tasks. The current workaround is to sync the whole USERS sub tree.

The above is for client's v11. I just downloaded v12 EXE and looks like it's working the way it should be.

Experiencing IOC initialization error for command line on Kentico 13

Brief bug description

What went wrong?
An IOC initialization error occurs on the Command Line branch, under some circumstances:

CMS.Core.ServiceResolutionException
HResult=0x80131500
Message=Resolution of 'CMS.Core.IAppSettingsService' failed with the following error: IoC container cannot be used for service resolution because it was not initialized yet. This means that the application was not properly pre-initialized or yet initialized. Use 'CMS.Core.Service.InitializeContainer' to perform container initialization.
Source=CMS.Core
StackTrace:
at CMS.Core.IoCContainer.ResolveTService
at CMS.Core.Service.ResolveTService
at CMS.IO.AbstractStorageProvider.CreateDefaultProvider()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Func`1 valueFactory)
at CMS.IO.AbstractStorageProvider.get_DefaultProvider()
at CMS.IO.File.OpenRead(String path)
at ADImport.Program.Main(String[] args) in C:\Users\adam.judd\Downloads\ADImport-master\ADImport-master\ADImport\Program.cs:line 115

This exception was originally thrown at this call stack:
CMS.Core.IoCContainer.ServiceProvider.get()
CMS.Core.IoCContainer.Resolve()

Inner Exception 1:
InvalidOperationException: IoC container cannot be used for service resolution because it was not initialized yet. This means that the application was not properly pre-initialized or yet initialized. Use 'CMS.Core.Service.InitializeContainer' to perform container initialization.

Additional context

Our resolution was to move the line (in Program.cs) that initializes the IOC for the Windows Forms to both branches:

CMSApplication.PreInit();

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.