Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Creatina a new user in LDAP through AEM 6.0

Avatar

Level 1

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/jackr...

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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!

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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!

Avatar

Level 1

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,