Sebastien,
Thanks for the link.
I am now getting errors below..
Apr 20 18:41:28 - DEBUG - Loading XML configuration from: D:\LSC\etc\lsc.xml
Apr 20 18:41:28 - ERROR - org.lsc.exception.LscConfigurationException:
javax.xml.bind.UnmarshalEx
ception
- with linked exception:
[org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was
found starting with e
lement 'name'. One of
'{"http://lsc-project.org/XSD/lsc-core-2.0.xsd":ldapConnection, "http://lsc
-project.org/XSD/lsc-core-2.0.xsd":databaseConnection,
"http://lsc-project.org/XSD/lsc-core-2.0.x
sd":nisConnection,
"http://lsc-project.org/XSD/lsc-core-2.0.xsd":pluginConnection}' is expected.]
org.lsc.exception.LscConfigurationException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was
found starting with e
lement 'name'. One of
'{"http://lsc-project.org/XSD/lsc-core-2.0.xsd":ldapConnection, "http://lsc
-project.org/XSD/lsc-core-2.0.xsd":databaseConnection,
"http://lsc-project.org/XSD/lsc-core-2.0.x
sd":nisConnection,
"http://lsc-project.org/XSD/lsc-core-2.0.xsd":pluginConnection}' is expected.]
at
org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfiguration
Helper.java:153) ~[lsc-core-2.0rc2.jar:na]
at org.lsc.Configuration.setUp(Configuration.java:481)
[lsc-core-2.0rc2.jar:na]
at org.lsc.Configuration.setUp(Configuration.java:456)
[lsc-core-2.0rc2.jar:na]
at org.lsc.Launcher.run(Launcher.java:200) [lsc-core-2.0rc2.jar:na]
at org.lsc.Launcher.launch(Launcher.java:158) [lsc-core-2.0rc2.jar:na]
at org.lsc.Launcher.main(Launcher.java:141) [lsc-core-2.0rc2.jar:na]
Caused by: javax.xml.bind.UnmarshalException: null
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Sourc
e) ~[na:1.6.0_31]
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalExce
ption(Unknown Source) ~[na:1.6.0_31]
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unknown
Source) ~[na:1.6.0_31]
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unknown
S
ource) ~[na:1.6.0_31]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source) ~[na:1.6.0_3
1]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source) ~[na:1.6.0_3
1]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source) ~[na:1.6.0_3
1]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown
Source) ~[na:1.6.0_3
1]
at
org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfiguration
Helper.java:151) ~[lsc-core-2.0rc2.jar:na]
... 5 common frames omitted
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
content was found start
ing with element 'name'. One of
'{"http://lsc-project.org/XSD/lsc-core-2.0.xsd":ldapConnection, "
http://lsc-project.org/XSD/lsc-core-2.0.xsd":databaseConnection,
"http://lsc-project.org/XSD/lsc-
core-2.0.xsd":nisConnection,
"http://lsc-project.org/XSD/lsc-core-2.0.xsd":pluginConnection}' is
expected.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source) ~[a
pacheds-all-1.5.7.jar:na]
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
~[apacheds-all-1.5.7.
jar:na]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
~[apacheds-all-1.5
.7.jar:na]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
~[apacheds-all-1.5
.7.jar:na]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
~[apacheds-all-1.5
.7.jar:na]
at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
Sour
ce) ~[apacheds-all-1.5.7.jar:na]
at
org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
~[apach
eds-all-1.5.7.jar:na]
at
org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
~[apac
heds-all-1.5.7.jar:na]
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
Source) ~[apacheds-a
ll-1.5.7.jar:na]
at
org.apache.xerces.jaxp.validation.ValidatorHandlerImpl.startElement(Unknown
Source) ~[
apacheds-all-1.5.7.jar:na]
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.startElement(
Unknown Source) ~[na:1.6.0_31]
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(Unknown
So
urce) ~[na:1.6.0_31]
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source) ~[apacheds-al
l-1.5.7.jar:na]
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source) ~[apa
cheds-all-1.5.7.jar:na]
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispat
ch(Unknown Source) ~[apacheds-all-1.5.7.jar:na]
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source) ~[a
pacheds-all-1.5.7.jar:na]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
~[apacheds-all-1.5.
7.jar:na]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
~[apacheds-all-1.5.
7.jar:na]
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
~[apacheds-all-1.5.7.jar:na]
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
~[apacheds-all-1.5.7
.jar:na]
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source) ~[apacheds-al
l-1.5.7.jar:na]
... 12 common frames omitted
D:\LSC\bin>REM LSC finished running
D:\LSC\bin>call:log "LSC finished running"
D:\LSC\bin>echo Fri 04/20/2012 [lsc] LSC finished running
1>>D:\LSC\bin\..\log\lsc.log
D:\LSC\bin>goto:eof
D:\LSC\bin>if ERRORLEVEL 1 (
echo Please look up the log file D:\LSC\bin\..\log\lsc.log to see the error
exit /B ERRORLEVEL
)
Please look up the log file D:\LSC\bin\..\log\lsc.log to see the error
D:\LSC\bin>
Since it is Friday evening, there is a good chance I mistyped something...will
recheck my lsc.xml file tomorrow or Monday and let you know if I can get rid of
the error.
I did notice when updating my file that the sample you sent the link to removes
all references to a database connection (the sample file that came with LSC has
a database connection section).
Wendy
From: Sébastien Bahloul [mailto:[email protected]]
Sent: Friday, April 20, 2012 5:30 PM
To: Wendy Nevile
Cc: [email protected]
Subject: Re: [lsc-users] problem connecting to AD
Hi Wendy,
The file you are looking for is stored in the samples/ad subdirectory of the
trunk :
https://lsc-project.org/svn/lsc/trunk/sample/ad/etc-ad2opendj/lsc.xml
Regards,
--
Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/
2012/4/20 Wendy Nevile <[email protected]>
Error message is problem connecting the LDAP connection to the source in
version 1.2....more generic error message in version 2.0rc2 (I have tried both).
I have verified I can use the same context (URL, username and password) to
connect via straight LDAPsearch and JXplorer.
I checked the archives and Sebastien had sent someone a sample of lsc.xml that
worked with AD 2008 (does it work with AD 2003 as well?), I looked for the
attachment but it had been scrubbed from the archive.
Could someone please resend?
Wendy
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users