【问题标题】:Trying to make Active Directory to openLDAP synchronization via LSC(Ldap Synchronization Connector)尝试通过 LSC(Ldap 同步连接器)使 Active Directory 与 openLDAP 同步
【发布时间】:2014-03-28 22:35:13
【问题描述】:

我尝试使用lsc 使活动目录与openldap 同步。我在这里按照教程进行操作:lsc-project.org/wiki/documentation/tutorial/openldaptoactivedirectory。

最后,当我尝试发出命令时(我使用 cygwin):“/usr/bin/lsc -f /etc/lsc/ad2openldap”-s all -c all -n” 我得到了这个:

Mar 28 22:36:09 - DEBUG - Loading XML configuration from: C:\lsc\etc\ad2openldap\lsc.xml
Mar 28 22:36:09 - INFO  - Reflections took 172 ms to scan 1 urls, producing 51 keys and 103 values
Mar 28 22:36:09 - DEBUG - Importing XML schema file: schemas/lsc-core-2.0.xsd
Mar 28 22:36:10 - ERROR - org.lsc.exception.LscConfigurationException: javax.xml.bind.UnmarshalException
 - with linked exception:
[org.xml.sax.SAXParseException; systemId: file:/C:/lsc/etc/ad2openldap/lsc.xml; lineNumber: 90; columnNumber: 26; cvc-complex-type.2.4.a: Invalid content was found starting with element 'asyncLdapSourceService'. One of '{"http://lsc-project.org/XSD/lsc-core-2.0.xsd":name}' is expected.]
org.lsc.exception.LscConfigurationException: javax.xml.bind.UnmarshalException
 - with linked exception:
[org.xml.sax.SAXParseException; systemId: file:/C:/lsc/etc/ad2openldap/lsc.xml; lineNumber: 90; columnNumber: 26; cvc-complex-type.2.4.a: Invalid content was found starting with element 'asyncLdapSourceService'. One of '{"cause I can't post more 2 links, this is the same":name}' is expected.]
        at org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:172) ~[lsc-core-2.0.3.jar:na]
        at org.lsc.Configuration.setUp(Configuration.java:481) [lsc-core-2.0.3.jar:na]
        at org.lsc.Configuration.setUp(Configuration.java:456) [lsc-core-2.0.3.jar:na]
        at org.lsc.Launcher.run(Launcher.java:206) [lsc-core-2.0.3.jar:na]
        at org.lsc.Launcher.launch(Launcher.java:159) [lsc-core-2.0.3.jar:na]
        at org.lsc.Launcher.main(Launcher.java:142) [lsc-core-2.0.3.jar:na]
Caused by: javax.xml.bind.UnmarshalException: null
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown Source) ~[na:1.8.0]
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(Unknown Source) ~[na:1.8.0]
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unknown Source) ~[na:1.8.0]
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unknown Source) ~[na:1.8.0]
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source) ~[na:1.8.0]
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source) ~[na:1.8.0]
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source) ~[na:1.8.0]
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source) ~[na:1.8.0]
        at org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:170) ~[lsc-core-2.0.3.jar:na]
        ... 5 common frames omitted
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'asyncLdapSourceService'. One of '{"http://lsc-project.org/XSD/lsc-core-2.0.xsd":name}' is expected.
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(Unknown Source) ~[na:1.8.0]
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.startElement(Unknown Source) ~[na:1.8.0]
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) ~[na:1.8.0]
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[na:1.8.0]
        ... 12 common frames omitted

谢谢。

【问题讨论】:

  • 错误是Invalid content was found starting with element 'asyncLdapSourceService'. One of '{"http://lsc-project.org/XSD/lsc-core-2.0.xsd":name}' is expected。这对你来说意味着什么?
  • 我的代码中有这个:lsc-project.org/XSD/lsc-core-2.0.xsd" revision="0">

标签: java xml active-directory openldap


【解决方案1】:

如果不查看您的 XML 配置文件,很难确定,但请检查您的 <task> 节点是否在 <asyncLdapSourceService> 之前包含 <name> 节点。还要检查该节点是否包含<name>。任务部分应类似于:

<tasks>
    <task>
        <name>My Sync Task</name>
        <asyncLdapSourceService>
            <name>my-ldap-src</name>
            <connection reference="my-ldap-connection"/>
            ...

【讨论】:

  • 您在 Active Directory 中使用 是否成功?
猜你喜欢
  • 2011-02-19
  • 1970-01-01
  • 1970-01-01
  • 2013-01-26
  • 1970-01-01
  • 1970-01-01
  • 2015-07-15
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多