Hi,
How we will get the all user directories?
what is the bean name we need to use to get Ldap,Intenal With Ldap Authentication and Active Directory
below code we are using.
private DirectoryManager getDirectoryManager()
{
if (directoryManager == null)
directoryManager = (DirectoryManager) ContainerManager.getInstance().getContainerContext().getComponent(ldapDirectoryManager);
return directoryManager;
}
private DirectoryInstanceLoader getDirectoryInstanceLoader()
{
if (directoryInstanceLoader == null)
directoryInstanceLoader = (DirectoryInstanceLoader) ContainerManager.getInstance().getContainerContext().getComponent(directoryInstanceLoader);
return directoryInstanceLoader;
}
Hi,
Try this:
ComponentAccessor.getComponentOfType(CrowdDirectoryService.class).findAllDirectories()
HTH,
Florin
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.