Creatina a new user in LDAP through AEM 6.0 | Community
Skip to main content
October 16, 2015
Solved

Creatina a new user in LDAP through AEM 6.0

  • October 16, 2015
  • 2 replies
  • 838 views

I am unable to create new user in Ldap through AEM 6.0 api .I have configured All Ldap settings in AEM in Sling Cnnsole Named As:

1.Apache Jackrabbit Oak LDAP Identity Provider

2.Apache Jackrabbit Oak External Login  Module

3.Apache Jackrabbit Oak Default Sync  Handler

After this configuration i am able to logged in in AEM Instance  by the users who is already existing in LDAP.

I created users through Plain Java code by using this code:

Hashtable test1 = new Hashtable();

                                test1.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");

                                test1.put(Context.PROVIDER_URL, "ldap://hostanme:portname");

                                test1.put(Context.SECURITY_AUTHENTICATION, "simple");

                                test1.put(Context.SECURITY_PRINCIPAL,"cn=Directory Manager"); // specify the username

Please guide me which Libraries i need to import to connect with Ldap in AEM 6.0

I am refering this class Now:

https://github.com/apache/jackrabbit-oak/blob/trunk/oak-auth-external/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/ExternalLoginModuleFactory.java

Not able to resolve deependency of :

 import org.apache.jackrabbit.oak.spi.security.authentication.external.impl.jmx.SyncMBeanImpl;
import org.apache.jackrabbit.oak.spi.security.authentication.external.impl.jmx.SynchronizationMBean;

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by WhoaShekhar

Hi there,

Thanks for reaching out.

Please go through the below doc and see if it helps:

http://docs.adobe.com/docs/en/aem/6-0/administer/security/ldap-config.html

Thanks!

2 replies

WhoaShekhar
WhoaShekharAccepted solution
Level 10
October 16, 2015

Hi there,

Thanks for reaching out.

Please go through the below doc and see if it helps:

http://docs.adobe.com/docs/en/aem/6-0/administer/security/ldap-config.html

Thanks!

October 16, 2015

Dear shekhar,

Thank you very much for your response,I am new to AEM as understood from above link  i did same configuration  in my local instance .

this is the location where i did this configuration :http://localhost:4504/system/console/configMgr.

  1. An LDAP Identity Provider (IDP).
  2. A Sync Handler.
  3. An External Login Module.

After providing this configuration i am able to logged in AEM Instance by using the id(existing Ldap user) which is there in LDAP.

My question is how can i am able to Search user which is already in LDAP. and can perform some Updates Like password reset and all.

Please guide which class or Factory we have to use ?To get connected with Ldap through AEM .So that i am able to perform search operation.

 

Thanks,