[Solved] Import users from AD, with existing mailbox
Hi,
I have set up CloudPanel, and are trying to import some existing exchange users.
My problem is, that when i try to import through “/CloudPanel/Company/[CompanyID]/Import/Users” i recieve an error “500, The best overloaded method match for ‘string.IsNullOrEmpty(string)’ has some invalid arguments ”
I have tried with and without mailbox plan, (i’m unable to enable archiving on the user, due to license)
When looking at the log CloudPanel.log, it seems the issue is from retrieving the username.
I have written the last part of the log down below. (Though changed the email to email@dummydomain.com
[2018-05-07 09:04:46,737] | ERROR | CloudPanel.ActiveDirectory.ADUsers| Error retrieving user dummy@dummydomain.com. Exception: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for ‘string.IsNullOrEmpty(string)’ has some invalid arguments
at CallSite.Target(Closure , CallSite , Type , Object )
at CloudPanel.ActiveDirectory.ADUsers.GetUser(String username)
[2018-05-07 09:04:46,737] | ERROR | CloudPanel.Modules.Company.Import.ImportModule| Error importing a list of users for dummydomain: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for ‘string.IsNullOrEmpty(string)’ has some invalid arguments
at CallSite.Target(Closure , CallSite , Type , Object )
at CloudPanel.ActiveDirectory.ADUsers.GetUser(String username)
at CloudPanel.Modules.Company.Import.ImportModule.<.ctor>b__1_3(Object _)
A hotfix was provided to resolve this issue. Let me know if you have any further problems.
Svendsen,
I emailed you the hotfix directly. Can you please check your spam, it may have been caught?
Do you receive that 500 error as soon as you go to that page or only after trying to import a user? If you receive it when trying to go to that page can you please enable Exchange Archiving in the CloudPanel settings and create a new Archive Plan? It not having an archive plan could be throwing the error (even though you may not be using archiving)
The problem first occurs after selecting the users to import, and pressing the “import” button.
I have enabled Archiving and created a archive plan to test this, but exactly the same error occurs.
Do you have any users in that organizational unit that are missing the DisplayName attribute? Active Directory allows you to leave it blank but it is required for CloudPanel
DisplayName is filled for the users. Do you eventually have a list of requirements for import AD user?
Honestly the null data on the DisplayName shouldn’t even of thrown an error.
In the web.config there is options for <level value=”ALL” /> but yours problem says “INFO”. Can you change them to “ALL” and reproduce the issue and send me the log files from the Log directory? Email is jdixon@knowmoreit.com
It was set to “ALL” all the time.
I have sent you an email with a cleared log, with the information from a recreated issue.
After applying hotfix, i can import the users into cloudpanel, but the mailbox in not enabled, even tho i have chosen a mailbox plan.
When i go to the user, and try to enable the mailbox, it seems i have to create a new mailbox? And i’m unable to see any databases.
I have tried to locate a way to login as super admin (Seen this is the only user that can select database on the forum)
Was the company enabled for Exchange and/or not at the company plan limit? Can you send me the log files?
I have sent you an email with logile, and a couple of pictures showing the results after import.
- 5 Forums
- 716 Topics
- 3,649 Posts
- 2 Online
- 258 Members