[midPoint] O365 ConnectorTypeHost

Dick Muller dick.muller at tahzoo.com
Thu Jun 9 18:13:48 CEST 2016


Hi Ivan,

Yes, the lines are present in config.xml

The ls –la results are in the attachment

Regards,
Dick

From: midPoint <midpoint-bounces at lists.evolveum.com> on behalf of Ivan Noris <ivan.noris at evolveum.com>
Organization: Evolveum, s.r.o.
Reply-To: midPoint General Discussion <midpoint at lists.evolveum.com>
Date: Thursday, June 9, 2016 at 5:38 PM
To: "midpoint at lists.evolveum.com" <midpoint at lists.evolveum.com>
Subject: Re: [midPoint] O365 ConnectorTypeHost

It really seems strange.
Can you make listing of /data/conf/midpoint and /data/conf/midpoint/icf-connectors (ls -la )?

Also please check if config.xml contains this:
   <icf>
      <scanClasspath>true</scanClasspath>
      <scanDirectory>${midpoint.home}/icf-connectors</scanDirectory>
    </icf>
(it should be there by default just before <keystore> element)

Ivan
On 06/09/2016 05:08 PM, Dick Muller wrote:
HI Ivan,

I checked the file permissions. After that I started a clean logfile and a restart of the tomcat services.

I do not see anything in the log. You can see my log file in the attachments.

Regards,
Dick


From: midPoint <midpoint-bounces at lists.evolveum.com><mailto:midpoint-bounces at lists.evolveum.com> on behalf of Ivan Noris <ivan.noris at evolveum.com><mailto:ivan.noris at evolveum.com>
Organization: Evolveum, s.r.o.
Reply-To: midPoint General Discussion <midpoint at lists.evolveum.com><mailto:midpoint at lists.evolveum.com>
Date: Thursday, June 9, 2016 at 4:17 PM
To: "midpoint at lists.evolveum.com"<mailto:midpoint at lists.evolveum.com> <midpoint at lists.evolveum.com><mailto:midpoint at lists.evolveum.com>
Subject: Re: [midPoint] O365 ConnectorTypeHost

Hi,

so /data/conf/midpoint/icf-connectors should be that directory.
Permissions should allow the Tomcat to read the that file (e.g. 644) and read/exec the directory (e.g. 755)

Can you please check idm.log when starting? In my case:

...
2016-06-06 14:01:09,326 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.StartupConfiguration): |  Version :  3.4-SNAPSHOT
2016-06-06 14:01:09,326 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.StartupConfiguration): |  Sources :  https://github.com/Evolveum/midpoint.git  branch:  ${scmBranch}
2016-06-06 14:01:09,327 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.StartupConfiguration): |  Bug reporting system : http://jira.evolveum.com/
2016-06-06 14:01:09,327 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.StartupConfiguration): |  Product information : http://wiki.evolveum.com/display/midPoint
2016-06-06 14:01:09,327 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.StartupConfiguration): +------------------------------------------------------------------------------------------
---+
2016-06-06 14:01:09,331 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.ApplicationHomeSetup): midpoint.home = /opt/midpoint.home-pokusy/
2016-06-06 14:01:09,331 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.ApplicationHomeSetup): Directory /opt/midpoint.home-pokusy/ already exists. Reusing it.
2016-06-06 14:01:09,331 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.ApplicationHomeSetup): Directory /opt/midpoint.home-pokusy//icf-connectors already exists. Reusing it.
2016-06-06 14:01:09,332 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.ApplicationHomeSetup): Directory /opt/midpoint.home-pokusy//idm-legacy already exists. Reusing it.
2016-06-06 14:01:09,332 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.ApplicationHomeSetup): Directory /opt/midpoint.home-pokusy//log already exists. Reusing it.
2016-06-06 14:01:09,332 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.ApplicationHomeSetup): Directory /opt/midpoint.home-pokusy//schema already exists. Reusing it.
2016-06-06 14:01:09,332 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.ApplicationHomeSetup): Directory /opt/midpoint.home-pokusy//import already exists. Reusing it.
2016-06-06 14:01:09,332 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.ApplicationHomeSetup): Directory /opt/midpoint.home-pokusy//export already exists. Reusing it.
2016-06-06 14:01:09,332 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.ApplicationHomeSetup): Directory /opt/midpoint.home-pokusy//tmp already exists. Reusing it.
2016-06-06 14:01:09,333 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.init.StartupConfiguration): Loading midPoint configuration from file /opt/midpoint.home-pokusy/config.xml
...
2016-06-06 14:01:36,986 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.provisioning.ucf.impl.ConnectorFactoryIcfImpl): Discovered ICF bundle on CLASSPATH: com.evolveum.polygon.connector-csvfile version: 1.4.0.49
2016-06-06 14:01:37,043 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.provisioning.ucf.impl.ConnectorFactoryIcfImpl): Discovered ICF bundle on CLASSPATH: com.evolveum.polygon.connector-databasetable version: 1.4.0.49
2016-06-06 14:01:37,108 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.provisioning.ucf.impl.ConnectorFactoryIcfImpl): Discovered ICF bundle on CLASSPATH: com.evolveum.polygon.connector-ldap version: 1.4.3.0-SNAPSHOT
2016-06-06 14:01:37,443 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.provisioning.ucf.impl.ConnectorFactoryIcfImpl): Discovered ICF bundle in JAR: org.forgerock.openicf.connectors.scriptedsql-conne version: 1.1.2.0.em3


This is how my midPoint detected custom (not bundled) connector for ScriptedSQL.

Ivan
On 06/09/2016 04:00 PM, Dick Muller wrote:
Hi Ivan,

I will delete it then.

The JVM parameter is –Dmidpoint.home=/data/conf/midpoint

There is my config.xml and I also have stored working schema and organization schemaextension files there.
So this must be correct.

I saved the connector-office365.jar file in the icf-connectors directory.

I suddenly thought about permissions on the filesystem. This is corrected to the tomcat user and restart again.

But still there is no connector loaded in the repository.

Thanks,

Dick


From: midPoint <midpoint-bounces at lists.evolveum.com><mailto:midpoint-bounces at lists.evolveum.com> on behalf of Ivan Noris <ivan.noris at evolveum.com><mailto:ivan.noris at evolveum.com>
Organization: Evolveum, s.r.o.
Reply-To: midPoint General Discussion <midpoint at lists.evolveum.com><mailto:midpoint at lists.evolveum.com>
Date: Thursday, June 9, 2016 at 3:43 PM
To: "midpoint at lists.evolveum.com"<mailto:midpoint at lists.evolveum.com> <midpoint at lists.evolveum.com><mailto:midpoint at lists.evolveum.com>
Subject: Re: [midPoint] O365 ConnectorTypeHost

You should not manually create Connector (ConnectorType) objects, these are created by discovering the connectors; they also contain the connector schema.

So, please:
1) check your current "midpoint.home" setting. It should be JVM parameter -Dmidpoint.home=/var/opt/midpoint or whatever you have. This is the directory, where config.xml exists, and where icf-connectors directory is also stored (with the custom connectors)
2) if you are not explicitely setting "midpoint.home" parameter, the default is probably Tomcat directory. If you find config.xml file, that's the directory.

Is your Office365 connector in the icf-connectors directory of that directory?

Unfortunately I have no experience with Office365 connector myself.

Best regards,
Ivan
On 06/09/2016 03:38 PM, Dick Muller wrote:
Yes, but it was not.
It is now, because I created a connector manually, but the Schema part is unknown to me.

From: midPoint <midpoint-bounces at lists.evolveum.com><mailto:midpoint-bounces at lists.evolveum.com> on behalf of Ivan Noris <ivan.noris at evolveum.com><mailto:ivan.noris at evolveum.com>
Organization: Evolveum, s.r.o.
Reply-To: midPoint General Discussion <midpoint at lists.evolveum.com><mailto:midpoint at lists.evolveum.com>
Date: Thursday, June 9, 2016 at 3:37 PM
To: "midpoint at lists.evolveum.com"<mailto:midpoint at lists.evolveum.com> <midpoint at lists.evolveum.com><mailto:midpoint at lists.evolveum.com>
Subject: Re: [midPoint] O365 ConnectorTypeHost

(The Connector XML object should be in Configuration - Repository Objects - Connector. Typed too fast.)
On 06/09/2016 03:34 PM, Ivan Noris wrote:


If all the above apply, you should see the Connector object in Repository/Connector. It's also the confirmation that your connector has been discovered when midPoint started. This information is also in idm.log - all discovered connector names are printed to idm.log.






--

  Ing. Ivan Noris

  Senior Identity Management Engineer & IDM Architect

  evolveum.com                     evolveum.com/blog/

  ___________________________________________________

  "Semper ID(e)M Vix."






_______________________________________________

midPoint mailing list

midPoint at lists.evolveum.com<mailto:midPoint at lists.evolveum.com>

http://lists.evolveum.com/mailman/listinfo/midpoint





--

  Ing. Ivan Noris

  Senior Identity Management Engineer & IDM Architect

  evolveum.com                     evolveum.com/blog/

  ___________________________________________________

  "Semper ID(e)M Vix."





_______________________________________________

midPoint mailing list

midPoint at lists.evolveum.com<mailto:midPoint at lists.evolveum.com>

http://lists.evolveum.com/mailman/listinfo/midpoint




--

  Ing. Ivan Noris

  Senior Identity Management Engineer & IDM Architect

  evolveum.com                     evolveum.com/blog/

  ___________________________________________________

  "Semper ID(e)M Vix."




_______________________________________________

midPoint mailing list

midPoint at lists.evolveum.com<mailto:midPoint at lists.evolveum.com>

http://lists.evolveum.com/mailman/listinfo/midpoint



--

  Ing. Ivan Noris

  Senior Identity Management Engineer & IDM Architect

  evolveum.com                     evolveum.com/blog/

  ___________________________________________________

  "Semper ID(e)M Vix."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20160609/74ab5ba2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2016-06-09 at 6.12.42 PM.png
Type: image/png
Size: 34608 bytes
Desc: Screen Shot 2016-06-09 at 6.12.42 PM.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20160609/74ab5ba2/attachment.png>


More information about the midPoint mailing list