Hi Raphael, with Java 7 it works !
Thank you for this hint :-) Just another question: Is it possible to set a filter in the nis configuration, so that only special uid's or uidNumbers are synced from nis ? Best regards Martin Von: "Raphael OUAZANA" <[email protected]> An: "General discussions and help for Ldap Synchronization Connector (LSC) - Start here!" <[email protected]> Kopie: "Martin Röh" <[email protected]> Datum: 26.10.2018 16:59 Betreff: Re: [lsc-users] Antwort: Re: Problem LSC NIS Plugin Hi Martin, If you use Java 8 (or after), can you try with Java 7 please? Regards, Raphaël Ouazana. Le 2018-10-26 08:58, Martin Röh a écrit : > Hi Soisik, > > my xml is: > > <?xml version="1.0" ?> > <lsc xmlns="http://lsc-project.org/XSD/lsc-core-2.1.xsd [1]" > xmlns:nis="http://lsc-project.org/XSD/lsc-nis-plugin-1.0 [2]" > revision="0"> > <connections> > <ldapConnection> > <name>ldap-dst-conn</name> > <url>ldap://xxxxxxx:389/dc=xxx,dc=xxx</url> > <username>cn=xxxxx,dc=xxx,dc=xxx</username> > <password>xxxxxxxx</password> > <authentication>SIMPLE</authentication> > <referral>IGNORE</referral> > <derefAliases>NEVER</derefAliases> > <version>VERSION_3</version> > <pageSize>-1</pageSize> > > <factory>com.sun.jndi.ldap.LdapCtxFactory</factory> > <tlsActivated>false</tlsActivated> > </ldapConnection> > <pluginConnection > implementationClass="org.lsc.plugins.connectors.nis.generated.NisConnectionType"> > > <name>nis-src-conn</name> > <url>nis://xxxxxxx/xxxxxx</url> > <username>unused</username> > <password>unused</password> > </pluginConnection> > </connections> > <tasks> > <task> > <name>NIS2LDAP-User-SyncTask</name> > <bean>org.lsc.beans.SimpleBean</bean> > <pluginSourceService > implementationClass="org.lsc.plugins.connectors.nis.NisSrcService"> > <name>nis-source-service</name> > <connection reference="nis-src-conn" > /> > <nis:nisSourceServiceSettings> > <name>nis-src-service</name> > <connection > reference="nis-src-conn" /> > > <nis:map>passwd.byname</nis:map> > </nis:nisSourceServiceSettings> > </pluginSourceService> > <ldapDestinationService> > <name>ldap-dst-service</name> > <connection reference="ldap-dst-conn" > /> > > <baseDn>ou=people,dc=xxx,dc=xxx</baseDn> > <pivotAttributes> > <string>uid</string> > </pivotAttributes> > <fetchedAttributes> > <string>description</string> > <string>cn</string> > <string>sn</string> > <string>userPassword</string> > <string>objectClass</string> > <string>uid</string> > <string>mail</string> > </fetchedAttributes> > > <getAllFilter>>(&(objectClass=inetorgperson)(uid=xxx))</getAllFilter> > > > <getOneFilter>(&(objectClass=inetorgperson)(uid={uid}))</getOneFilter> > > </ldapDestinationService> > <propertiesBasedSyncOptions> > <mainIdentifier>"uid=" + > srcBean.getAttributeFirstValueById("uid") > + > ",ou=people,dc=xxx,dc=xxx"</mainIdentifier> > <defaultDelimiter>;</defaultDelimiter> > > <defaultPolicy>FORCE</defaultPolicy> > <dataset> > <name>sn</name> > <policy>FORCE</policy> > <forceValues> > > <string>srcBean.getAttributeFirstValueById("gecos")</string> > </forceValues> > </dataset> > </propertiesBasedSyncOptions> > </task> > </tasks> > </lsc> > > What could be wrong ? > > Best regards > > Martin > > Von: "Soisik Froger" <[email protected]> > An: [email protected] > Datum: 25.10.2018 17:04 > Betreff: Re: [lsc-users] Problem LSC NIS Plugin > Gesendet von: "lsc-users" > <[email protected]> > > ------------------------- > > On 25/10/2018 16:41, Martin Röh wrote: >> I have a problem/question regarding the lsc-nis-plugin. Perhaps > somebody can help me ? >> >> I did all the things written in the wiki but when I check the xml > file with lsc -v -f /etc/lsc/nis2ad/ I get this error: >> >> Oct 24 17:21:21 - ERROR - Unable to load configuration > (org.lsc.exception.LscConfigurationException: Configuration exception: > src-resolve: Cannot resolve the name 'lsc:connectionType' to a(n) > 'type definition' component.) >> org.lsc.exception.LscConfigurationException: Configuration > exception: src-resolve: Cannot resolve the name 'lsc:connectionType' > to a(n) 'type definition' component. >> at > org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:157) > ~[lsc-core-2.1.4.jar:na] >> at org.lsc.Configuration.setUp(Configuration.java:482) > ~[lsc-core-2.1.4.jar:na] >> at org.lsc.Launcher.run(Launcher.java:194) > [lsc-core-2.1.4.jar:na] >> at org.lsc.Launcher.launch(Launcher.java:158) > [lsc-core-2.1.4.jar:na] >> at org.lsc.Launcher.main(Launcher.java:141) > [lsc-core-2.1.4.jar:na] >> Caused by: org.xml.sax.SAXParseException: src-resolve: Cannot > resolve the name 'lsc:connectionType' to a(n) 'type definition' > component. >> at > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) > ~[na:1.8.0_191] >> at > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134) > ~[na:1.8.0_191] >> at > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396) > ~[na:1.8.0_191] >> at > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4154) > ~[na:1.8.0_191] >> at > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:4137) > ~[na:1.8.0_191] >> at > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1684) > ~[na:1.8.0_191] >> at > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexContent(XSDComplexTypeTraverser.java:768) > ~[na:1.8.0_191] >> at > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexTypeDecl(XSDComplexTypeTraverser.java:315) > ~[na:1.8.0_191] >> at > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.traverseGlobal(XSDComplexTypeTraverser.java:191) > ~[na:1.8.0_191] >> at > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.traverseSchemas(XSDHandler.java:1436) > ~[na:1.8.0_191] >> at > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:635) > ~[na:1.8.0_191] >> at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:610) > ~[na:1.8.0_191] >> at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:569) > ~[na:1.8.0_191] >> at > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:535) > ~[na:1.8.0_191] >> at > com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:254) > ~[na:1.8.0_191] >> at > org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:151) > ~[lsc-core-2.1.4.jar:na] >> ... 4 common frames omitted >> >> Have anybody an idea / hint for a solution ? > > Hi Martin, > > It looks like an invalid xml config file. You need to figure out > what's wrong with your xml syntax against xsd. > Feel free to share your config file with us after removing all > sensitive information so we can point you to the problem. > > Regards, > -- > Soisik Froger > Worteks | https://www.worteks.com > _______________________________________________________________ > Ldap Synchronization Connector (LSC) - http://lsc-project.org [3] > > lsc-users mailing list > [email protected] > https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users [4] > > > > Links: > ------ > [1] http://lsc-project.org/XSD/lsc-core-2.1.xsd > [2] http://lsc-project.org/XSD/lsc-nis-plugin-1.0 > [3] http://lsc-project.org/ > [4] https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users > > _______________________________________________________________ > Ldap Synchronization Connector (LSC) - http://lsc-project.org > > lsc-users mailing list > [email protected] > https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

