[MGNLLDAP-115] LDAP tester is not 5.6 compliant Created: 14/Nov/17  Updated: 18/Dec/17  Resolved: 08/Dec/17

Status: Closed
Project: LDAP Connector
Component/s: None
Affects Version/s: None
Fix Version/s: 1.10

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Mikaël Geljić
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1d
Original Estimate: 7h

Issue Links:
Relates
relates to MGNLLDAP-114 CLONE - Upgrade log4j2 in ldap module Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Saigon 125

 Description   
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project magnolia-ldap: Compilation failure
[ERROR] /Users/romankovarik/git/releases/5.6/ldap/magnolia-ldap/src/main/java/info/magnolia/jaas/sp/ldap/Tester.java:[39,35] cannot find symbol
[ERROR] symbol:   class DefaultComponentProvider
[ERROR] location: package info.magnolia.objectfactory


 Comments   
Comment by Milan Divilek [ 14/Nov/17 ]

Patch is already done in https://git.magnolia-cms.com/projects/ENTERPRISE/repos/ldap/pull-requests/21/overview
We don't need this until we move to 5.6-compile-time

Comment by Dai Ha [ 11/Dec/17 ]

Verify build successfully.
Verify LDAP Tester with public LDAP, config:

#Initial factory class
java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory

# LDAP url
java.naming.provider.url=ldap://ldap.forumsys.com:389

java.naming.security.authentication=simple

java.naming.security.principal=cn=read-only-admin,dc=example,dc=com
java.naming.security.credentials=password
searchBase=ou=mathematicians,dc=example,dc=com


initialSearchAttributes=dc=example,dc=com
Organization=o
OrganizationUnit=ou
CommonName=cn
Surname=sn
GivenName=givenname
uid=uid
dn=dn
mail=mail
Password=pass
Language=language


groupResolverClass=info.magnolia.jaas.sp.ldap.resolver.MagnoliaGroupResolver
roleResolverClass=info.magnolia.jaas.sp.ldap.resolver.MagnoliaRoleResolver

Result:

Dais-MacBook-Pro:target dai.ha$ java -jar magnolia-ldap-tester-1.10-SNAPSHOT.jar info.magnolia.jaas.sp.ldap.LDAPAuthenticationModule ldap.properties gauss password
> Trying to log in as uid=gauss,dc=example,dc=com.
> Login result: true
> Commit result: true
> Properties: {password=password, name=gauss, email=gauss@ldap.forumsys.com, fullName=Carl Friedrich Gauss, title=Carl Friedrich Gauss}
> Group names: (can only be resolved when connected to Magnolia, skipping)
> Role names: (can only be resolved when connected to Magnolia, skipping)
Generated at Mon Feb 12 02:21:42 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.