LDAP connection with AEM6 | Community
Skip to main content
Level 5
October 16, 2015
Solved

LDAP connection with AEM6

  • October 16, 2015
  • 3 replies
  • 1067 views

Hi,

I was trying to connect with LDAP with AEM6. I have below configurations that i set up :

org.apache.jackrabbit.oak.security.authentication.ldap.impl.LdapIdentityProvider-aem.xml <?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="sling:OsgiConfig" bind.dn = "cn=Directory Manager" bind.password = "secret" group.baseDN = "ou=groups,dc=example,dc=com" group.memberAttribute = "uniquemember" group.nameAttribute = "cn" group.objectclass = "[groupOfUniqueNames]" host.name = "localhost" host.port = "10389" host.ssl = "false" host.tls = "false"   provider.name = "ldap" user.baseDN = "ou=users,dc=example,dc=com" user.idAttribute = "uid" user.objectclass = "[inetorgPerson]" /> org.apache.jackrabbit.oak.spi.security.authentication.external.impl.DefaultSyncHandler-aem.xml <?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="sling:OsgiConfig" user.autoMembership = "[contributor]" user.expirationTime = "1h" user.membershipExpTime = "1h" user.membershipNestingDepth = "0" user.propertyMapping = "[rep:fullname=cn]" /> org.apache.jackrabbit.oak.spi.security.authentication.external.impl.ExternalLoginModuleFactory-aem.xml <?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="sling:OsgiConfig" idp.name = "ldap" jaas.controlFlag = "SUFFICIENT" jaas.ranking = "50" jaas.realmName = "ldap" sync.handlerName = "default" />

I create my user in ldap as :

# File captain_hook.ldif dn: ou=people,o=sevenSeas objectclass: organizationalUnit objectclass: top ou: people dn: cn=James Hook,ou=people,o=sevenSeas objectclass: inetOrgPerson objectclass: organizationalPerson objectclass: person objectclass: top cn: James Hook description: A pirate captain and Peter Pan's nemesis sn: Hook mail: jhook@neverland userpassword: peterPan
But how can i verify this working fine, I i try to login in AEM with user name jhook@neverland & password peterPan its not allow to login. Can someone advice about some troubleshooting concepts & how can i debug where it can fail.

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 smacdonald2008

The topic that you identified is the one that you should read. If you think it lacks details to perform the given task, open a ticket to have the documentation updated. Open a ticket here:

http://helpx.adobe.com/marketing-cloud/experience-manager.html

3 replies

Rahsing
Level 9
October 16, 2015

Hi,

Please have a look at the documentation here. It may be helpful.

Kind Regards

Rahul

vdhim23Author
Level 5
October 16, 2015

Rahsing wrote...

Hi,

Please have a look at the documentation here. It may be helpful.

Kind Regards

Rahul

 

Thanks, I have gone through it but more interested to know about LDAP configuration like http://docs.adobe.com/docs/en/aem/6-0/administer/security/ldap-config.html . Or if someone has any blog which demonstrate E2E integration of LDAP with AEM6. Please mention.

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

The topic that you identified is the one that you should read. If you think it lacks details to perform the given task, open a ticket to have the documentation updated. Open a ticket here:

http://helpx.adobe.com/marketing-cloud/experience-manager.html