‘Distribution Group…
 
Notifications
Clear all

[Solved] 'Distribution Group Permission Report' results with Error 500

21 Posts
2 Users
0 Reactions
1,606 Views
Posts: 82
Topic starter
Estimable Member
Joined: 5 years ago

Last friday we’ve updated the cloud panel to the latest version. 
Since than trying to download ‘Distribution Group Permission Report’ or ‘Mailbox Permission Report’ returns Error 500.

We assume it could be an permission problem, but aren’t sure about that. 

 

Checking the logfiles resulted with these lines:

2022-11-08 12:03:59,383 [ERROR] ADPowershell – PSERROR: System.Management.Automation.RemoteException: Es kann kein Anbieter mit dem Namen “Microsoft.ActiveDirectory.Management.dll\ActiveDirectory” gefunden werden. <<>> REASON: ProviderNotFoundException
2022-11-08 12:03:59,384 [ERROR] CloudPanel.Modules.Reports.ExchangeReportModule – Error processing report: System.Exception: An error occurred attempting to get send as permissions for mailbox:(masked) CN=XX,OU=XX,OU=XX,OU=XX,DC=XX,DC=XX,DC=XX…System.Management.Automation.RemoteException: Es kann kein Anbieter mit dem Namen “Microsoft.ActiveDirectory.Management.dll\ActiveDirectory” gefunden werden.
   bei CloudPanel.ActiveDirectory.ADPowershell.HandleErrors(Boolean ignoredNotFound, Boolean ignoreAlreadyExist)
   bei CloudPanel.ActiveDirectory.ADObjects.Get_ACL(String distinguishedName, String samAccountName)
   bei CloudPanel.ActiveDirectory.ADObjects.Get_ACL(String distinguishedName, String samAccountName)
   bei CloudPanel.Modules.Reports.ExchangeReportModule.<.ctor>b__1_21(Object _)

20 Replies
Posts: 1600
Admin
Noble Member
Joined: 10 years ago

Could you install the Active Directory Users & Computers remote admin tools on the CloudPanel server and see if the error continues?

Reply
Posts: 82
Topic starter
Estimable Member
Joined: 5 years ago

After installing Active Directory Users & Computers remote admin tools and rebooting the CloudPanel server, the error persists.

Reply
2 Replies
Admin
Joined: 10 years ago

Noble Member
Posts: 1600

@rechenzentrumkraemer-it-de Will you open powershell and type: “Import-Module -Name ActiveDirectory” and tell me if it imports or gives you error. The exact command it is trying to run is:

Import-Module -Name ActiveDirectory

Then it executes:

Get-ACL -Path "Microsoft.ActiveDirectory.Management.dll\ActiveDirectory:://RootDSE/<distinguished name here>"

 

So if you want to test and your domain name is “lab.com” then you could type:

Get-ACL -Path "Microsoft.ActiveDirectory.Management.dll\ActiveDirectory:://RootDSE/DC=lab,DC=com"
Reply
Joined: 5 years ago

Estimable Member
Posts: 82

@jdixon

Posted by: @jdixon

Import-Module -Name ActiveDirectory

This does fine but,

Posted by: @jdixon

Get-ACL -Path “Microsoft.ActiveDirectory.Management.dll\ActiveDirectory:://RootDSE/<distinguished name here>”

doesn’t find the dll file.

Output:

+ CategoryInfo : ObjectNotFound: (Microsoft.Activ…ActiveDirectory:String) [Get-Acl], ProviderNotFoundException
+ FullyQualifiedErrorId : ProviderNotFound,Microsoft.PowerShell.Commands.GetAclCommand

 

When I try:
Get-ACL -Path “ActiveDirectory:://RootDSE/<distinguished name here>”

It works.

Reply
Posts: 82
Topic starter
Estimable Member
Joined: 5 years ago

Is there anything we’re doing wrong?

Reply
12 Replies
Admin
Joined: 10 years ago

Noble Member
Posts: 1600

@rechenzentrumkraemer-it-de We still cannot produce this but we see others out there having issues running this command as well. Some have suggested it was a bug. Can you tell me what operating system this is running and tell me if you have all the Microsoft & Windows patches? Also if we could do a remote session that will be helpful.

Reply
Joined: 5 years ago

Estimable Member
Posts: 82

@jdixon It’s running on an Windows Server 2016. All patches are installed, aswell as the latest cloudpanel update.
Of course we can do a remote session.

Reply
Admin
Joined: 10 years ago

Noble Member
Posts: 1600

@rechenzentrumkraemer-it-de Can you please run this and tell me what the “Path” value is:

Get-ACL -Path “ActiveDirectory:://RootDSE/<distinguished name here>”

I’m looking for the value returned under the Path column. I think this is a bug in Windows version 1809 where the Path value returned should contain a .dll at the end but it does not. For example, this is the correct output you should bee in the Path value if querying your root domain:

Microsoft.ActiveDirectory.Management.dll\ActiveDirectory:://RootDSE/CN=Users,DC=***,DC=local

But I am thinking you will get this in your system:

Microsoft.ActiveDirectory.Management\ActiveDirectory:://RootDSE/CN=Users,DC=****,DC=local

You will notice it is missing the .dll at the end which it shouldn’t be. If we switch the code to using ActiveDirectory:: or even AD:: I think we may run into additional uses if anyone is using the format of Lastname, Firstname for the CN attribute in Active Directory. 

Can you confirm you are running 1809 and also confirm if you get that Path value it is missing the ‘.dll’?

Reply
Joined: 5 years ago

Estimable Member
Posts: 82

@jdixon 

Running 

Posted by: KMI Support

Get-ACL -Path “ActiveDirectory:://RootDSE/<distinguished name here>”

returns

Posted by: KMI Support

Microsoft.ActiveDirectory.Management\ActiveDirectory:://RootDSE/CN=Users,DC=****,DC=local

 

just as you assumed. 

But it’s not 1809. We’re running an windows server 2016 with version 1607.

Reply
Admin
Joined: 10 years ago

Noble Member
Posts: 1600

@rechenzentrumkraemer-it-de I am unable to reproduce this on any of my servers but I’m not running that version. I did discover there is a shorthand version we can use which may solve this issue but would require a code update.

Reply
Joined: 5 years ago

Estimable Member
Posts: 82

@jdixon I would really appreciate if we could try this.

Reply
Joined: 5 years ago

Estimable Member
Posts: 82

@jdixon How and when could we test this?

Reply
Admin
Joined: 10 years ago

Noble Member
Posts: 1600

@rechenzentrumkraemer-it-de We put this in the new version and you would need to update but you testing it with that powershell command tells us it will work. We were planning on releasing an update today but we found an issue so I would prefer to resolve that and run it on our production before releasing it.

Reply
Admin
Joined: 10 years ago

Noble Member
Posts: 1600

@rechenzentrumkraemer-it-de We have a new release we would like you to install. Please make sure you backup the CloudPanel server and the database before proceeding. If you run into any issues you can always email us at support@knowmoreit.com

Download: https://compsysar.sharefile.com/d-s77cf8d50cab846a4a5defef25bfacc2d

Reply
Admin
Joined: 10 years ago

Noble Member
Posts: 1600

@rechenzentrumkraemer-it-de Did the update fix your issue?

Reply
Joined: 5 years ago

Estimable Member
Posts: 82

@jdixon Unfortunately it didn’t. The error hasn’t changed.

Reply
Joined: 5 years ago

Estimable Member
Posts: 82

Also since we’ve updated the CloudPanel and the service there is a error message on the webconsole.

CloudPanel detects incompatible versions

It appears the CloudPanel service version does not match the CloudPanel application version. Please make sure that the CloudPanel service has been updated.

Even tough both, the CloudPanel service and the CloudPanel application were updated.

Reply
Posts: 82
Topic starter
Estimable Member
Joined: 5 years ago

@jdixon Do you have any news for us?

Reply
2 Replies
Admin
Joined: 10 years ago

Noble Member
Posts: 1600

@rechenzentrumkraemer-it-de Can you email support@knowmoreit.com and let’s do a remote session?

Reply
Joined: 5 years ago

Estimable Member
Posts: 82

@jdixon Thank you, all reports can now be opened with no error.

Reply
Share: