Open PabloVed opened 2 years ago
Hi Pablo, I created a new section ##Debugging in documentation, can you please verify if your IPA user used for midPoint has required permissions and not need to change password at first logon? We tested current connector with MP v 4.4 and working well with older FreeIPA version.
Okay, did a bit of digging around with help of @gpalos Managed to make my connector work correctly. Will post my finding here, in case some lost soul will have same problem.
1) in connector options, option serviceAddress.display
, instead of ip address to freeipa better use fqdn for ipa server. (https://ipa.example.com/ipa
)
2) Before testing connection on midpoint side - locate and edit ipa-rewrite.conf
( in my case -/etc/httpd2/conf/extra-enabled/ipa-rewrite.conf
) Add # at start of every line with 301 error. This will kill ipa web-interface, but we'll fix it after testing successful connection. Restart ipa with ipactl restart
command. (I don't think this whole step is really necessary, but I did it just to make sure nothing interfere with connector.)
3) Test connection for FreeIPA, fix connector options if necessary. You must connect successfully.
4) Run ipa-ldap-updater /usr/share/ipa/kdcproxy-disable.uldif
and 'systemctl restart httpd2.service' to disable kerberos proxy for ldap. As I understand, this might be the source of problem - connector currently does not handle kerberos.
5) Revert changes made on step 2 - cause having working FreeIPA web-interface is nice. :) Don't forget to ipactl restart
.
6) Test connector on midpoint side, check if you can access FreeIPA web-interface, check if users from midpoint correctly provisioned to FreeIPA.
Okay, did a bit of digging around with help of @gpalos Managed to make my connector work correctly. Will post my finding here, in case some lost soul will have same problem.
- in connector options, option
serviceAddress.display
, instead of ip address to freeipa better use fqdn for ipa server. (https://ipa.example.com/ipa
)- Before testing connection on midpoint side - locate and edit
ipa-rewrite.conf
( in my case -/etc/httpd2/conf/extra-enabled/ipa-rewrite.conf
) Add # at start of every line with 301 error. This will kill ipa web-interface, but we'll fix it after testing successful connection. Restart ipa withipactl restart
command. (I don't think this whole step is really necessary, but I did it just to make sure nothing interfere with connector.)- Test connection for FreeIPA, fix connector options if necessary. You must connect successfully.
- Run
ipa-ldap-updater /usr/share/ipa/kdcproxy-disable.uldif
and 'systemctl restart httpd2.service' to disable kerberos proxy for ldap. As I understand, this might be the source of problem - connector currently does not handle kerberos.- Revert changes made on step 2 - cause having working FreeIPA web-interface is nice. :) Don't forget to
ipactl restart
.- Test connector on midpoint side, check if you can access FreeIPA web-interface, check if users from midpoint correctly provisioned to FreeIPA.
Found this thread while having the same issue, but these steps didn't help :( Getting the "Index 0 out of bounds for length 0" exception, just like the one mentioned above.
Hello there! Sadly, I won't be able to check - after the start of the war I got relocated and rehired to other project.
As far as I remember - we made it work thanks to your help.
But it is great to hear you've updated it.
ср, 26 янв. 2022 г., 06:05 gpalos @.***>:
Hi Pablo, I created a new section ##Debugging in documentation, can you please verify if your IPA user used for midPoint has required permissions and not need to change password at first logon? We tested current connector with MP v 4.4 and working well with older FreeIPA version.
— Reply to this email directly, view it on GitHub https://github.com/artinsolutions/midpoint-connector-freeipa/issues/3#issuecomment-1021865699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH7BCZ2XEZLRNEM4JR6VDJ3UX56IJANCNFSM5MRYJ2LQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
Hello,
I'm trying to connect FreeIPA 4.8.6, API_VERSION: 2.236 with Midpoint 4.4 using this connector, ver 1.0.1.0. Currently stuck at following:
Operation Connector initialization (Ucf) Message org.json.JSONException(A JSONObject text must begin with '{' at 1 [character 2 line 1]) Context connector [connector:e38e3004-dcac-4615-b407-58ef66659787(ConnId io.artin.idm.connector.freeipa.FreeIpaConnector v1.0.1.0)] implementationClass [class com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorFactoryConnIdImpl] Error org.json.JSONException(A JSONObject text must begin with '{' at 1 [character 2 line 1])
Connector configuration:
According to TRACE message:
But if I'm changing
serviceAddress.display
parameter to comply with link to json (and it points to other location couple of times), in the end I'm receiving following:Unabridged TRACE log attached. Ipa_connector.log