19
Views
3
Comments
[Active Directory Library] Error getting groups from AD  (AD_GetUserGroups)
active-directory-lib
Service icon
Forge asset by Renato Pauleta
Application Type
Service

Hello,

In my case the access to the AD, does not require username and password, so when I call the AD_SetGlobalDirectoryEntry as the documentation indicates, I'm putting the domain path ex: "LDAP://DC=IKG,DC=XXX,DC=com" (example name)  and username and password as empty strings.


The problem, happens after, when I try to call the user's groups by calling the action AD_GetUserGroups with the username as input, I get the following error:


It seems that the DirectoryEntry was not well created with the inputs that I gave.


Does someone have any tips on this?

2020-11-26 13-06-30
Joost Miltenburg

Did you get any response or make progress on this by yourself? I am also fiddling with this component and got the exact same question.


Thanks for you effort.

2023-11-21 17-53-44
Gonçalo Barros

Hello Joost, no I did not find any answers using this component. The solution for me was to develop my own extension.

The C# code to access the AD groups by user is simple, so for me it was simpler to encapsulate it in an extension.


Let me know if you already solve the problem.

2020-11-26 13-06-30
Joost Miltenburg

Hi Gonçalo,

I got this to work myself using the component, but I already forgot how. I am currently documenting this and will give back to the community.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.