Aem Author - SlingRepository login | Community
Skip to main content
robertol6836527
Level 4
February 15, 2022
Solved

Aem Author - SlingRepository login

  • February 15, 2022
  • 1 reply
  • 623 views

Good morning, my Author machine only allows Ldap users to log in.

Could you tell me if SlingRepository's "repository.login" function uses the ldap module?

 

The code contained in a "service" is the following:

Reference
 private SlingRepository repository;

.

.

.

session = repository.login(new SimpleCredentials(username, password.toCharArray()));

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 Nitin_laad

Hi @robertol6836527 As per your question, your author machine only accepts LDAP users because user accounts available in the AEM author server are in sync with users available in LDAP server. 

You should go through below article to get more info on AEM-LDAP integration. 

Configuring LDAP with AEM 6 | Adobe Experience Manager

HOW TO SYNCHRONIZE AEM WITH LDAP USERS AND GROUPS (aemsigma.blogspot.com)

 

if you are looking for any custom authentication handler to bypass ldap authentication, you should check below thread

Solved: Custom AuthenticationHandler and LoginModule on AE... - Adobe Experience League Community - 204361

1 reply

Nitin_laad
Community Advisor
Nitin_laadCommunity AdvisorAccepted solution
Community Advisor
February 15, 2022

Hi @robertol6836527 As per your question, your author machine only accepts LDAP users because user accounts available in the AEM author server are in sync with users available in LDAP server. 

You should go through below article to get more info on AEM-LDAP integration. 

Configuring LDAP with AEM 6 | Adobe Experience Manager

HOW TO SYNCHRONIZE AEM WITH LDAP USERS AND GROUPS (aemsigma.blogspot.com)

 

if you are looking for any custom authentication handler to bypass ldap authentication, you should check below thread

Solved: Custom AuthenticationHandler and LoginModule on AE... - Adobe Experience League Community - 204361