LDAP build error

0
Hi, I tried following the LDAP Synchronization instruction and im stucked in number 3 since running the app locally gives me an error.   Buildfile: C:\Users\gadinrya\Documents\Mendix\LDAP\deployment\build_core.xml compile:     [javac] Compiling 80 source files to C:\Users\gadinrya\Documents\Mendix\LDAP\deployment\run\bin     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\ImportUserRecord.java:29: error: package communitycommons does not exist     [javac] import communitycommons.StringUtils;     [javac]                        ^     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\TestImportItems.java:19: error: package communitycommons does not exist     [javac] import communitycommons.XPath;     [javac]                        ^     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\ProcessGroupRoleChange.java:21: error: package communitycommons does not exist     [javac] import communitycommons.XPath;     [javac]                        ^     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\ProcessGroupRoleChange.java:22: error: package communitycommons.XPath does not exist     [javac] import communitycommons.XPath.IBatchProcessor;     [javac]                              ^     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\ReadLdapDirectoryAttributes.java:19: error: package communitycommons does not exist     [javac] import communitycommons.XPath;     [javac]                        ^     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\ReadSystemUserDerivates.java:21: error: package communitycommons does not exist     [javac] import communitycommons.XPath;     [javac]                        ^     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\ReadSystemUserDerivates.java:22: error: package communitycommons.XPath does not exist     [javac] import communitycommons.XPath.IBatchProcessor;     [javac]                              ^     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\SyncSingleUser.java:21: error: package communitycommons does not exist     [javac] import communitycommons.XPath;     [javac]                        ^     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\ImportUserRecord.java:534: error: cannot find symbol     [javac]                     realUser.setPassword(StringUtils.randomStrongPassword(32, 32, 5, 5, 5)); // Should     [javac]                                          ^     [javac]   symbol:   variable StringUtils     [javac]   location: class ImportUserRecord     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\TestImportItems.java:86: error: cannot find symbol     [javac]             for (LdapPath path : XPath.create(this.context, LdapPath.class).eq(LdapPath.MemberNames.LdapPath_LdapServer, this.ldapServer).all()) {     [javac]                                  ^     [javac]   symbol:   variable XPath     [javac]   location: class TestImportItems     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\ProcessGroupRoleChange.java:79: error: cannot find symbol     [javac]                 .batch(LdapModule.PAGE_SIZE, new IBatchProcessor<User>()     [javac]                                                  ^     [javac]   symbol:   class IBatchProcessor     [javac]   location: class ProcessGroupRoleChange     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\ProcessGroupRoleChange.java:75: error: cannot find symbol     [javac]                         .notEq(XPath.ID, this.ldapGroup)     [javac]                                ^     [javac]   symbol:   variable XPath     [javac]   location: class ProcessGroupRoleChange     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\ProcessGroupRoleChange.java:63: error: cannot find symbol     [javac]             XPath.create(c, User.class)     [javac]             ^     [javac]   symbol:   variable XPath     [javac]   location: class ProcessGroupRoleChange     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\ProcessGroupRoleChange.java:104: error: cannot find symbol     [javac]                 .batch(LdapModule.PAGE_SIZE, new IBatchProcessor<User>()     [javac]                                                  ^     [javac]   symbol:   class IBatchProcessor     [javac]   location: class ProcessGroupRoleChange     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\ProcessGroupRoleChange.java:96: error: cannot find symbol     [javac]             XPath.create(c, User.class)     [javac]             ^     [javac]   symbol:   variable XPath     [javac]   location: class ProcessGroupRoleChange     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\ReadLdapDirectoryAttributes.java:49: error: cannot find symbol     [javac]                 XPath.create(Core.createSystemContext(), LookupLdapAttr.class).syncDatabaseWithCollection(attrs, LookupLdapAttr.MemberNames.Name, true,      [javac]                 ^     [javac]   symbol:   variable XPath     [javac]   location: class ReadLdapDirectoryAttributes     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\ReadSystemUserDerivates.java:47: error: cannot find symbol     [javac]         XPath.create(getContext(), LookupUserEntity.class).syncDatabaseWithCollection(entities, LookupUserEntity.MemberNames.Name, true);     [javac]         ^     [javac]   symbol:   variable XPath     [javac]   location: class ReadSystemUserDerivates     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\ReadSystemUserDerivates.java:50: error: cannot find symbol     [javac]         XPath.create(getContext(), LookupUserEntity.class).batch(1000, new IBatchProcessor<LookupUserEntity>()     [javac]                                                                            ^     [javac]   symbol:   class IBatchProcessor     [javac]   location: class ReadSystemUserDerivates     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\ReadSystemUserDerivates.java:50: error: cannot find symbol     [javac]         XPath.create(getContext(), LookupUserEntity.class).batch(1000, new IBatchProcessor<LookupUserEntity>()     [javac]         ^     [javac]   symbol:   variable XPath     [javac]   location: class ReadSystemUserDerivates     [javac] C:\Users\gadinrya\Documents\Mendix\LDAP\javasource\ldap\actions\SyncSingleUser.java:42: error: cannot find symbol     [javac]         List<LdapServer> servers = XPath.create(this.getContext(), LdapServer.class)     [javac]                                    ^     [javac]   symbol:   variable XPath     [javac]   location: class SyncSingleUser     [javac] Note: Some input files use or override a deprecated API.     [javac] Note: Recompile with -Xlint:deprecation for details.     [javac] 20 errors BUILD FAILED C:\Users\gadinrya\Documents\Mendix\LDAP\deployment\build_core.xml:29: Compile failed; see the compiler error output for details. Total time: 7 seconds Any advise is much appreciated.  Thanks
asked
1 answers
2

The LDAP module also needs the community commons module. You need to download that one from the appstore.

It is in the documentation under dependencies.

Dependencies

This module is dependent on the following additional modules. Make sure they are also present in your project, and configured properly.

  • Community Commons
  • Encryption

Regards,

Ronald

 

answered