Hi Soisik,

my xml is:

<?xml version="1.0" ?>
<lsc xmlns="http://lsc-project.org/XSD/lsc-core-2.1.xsd"; xmlns:nis="
http://lsc-project.org/XSD/lsc-nis-plugin-1.0"; 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>>(&amp;(objectClass=inetorgperson)(uid=xxx))</getAllFilter>
 
<getOneFilter>(&amp;(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

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

Reply via email to