[Midpoint-dev] Consuming the midPoint web service from C#

Paul Heaney lists at pheaney.co.uk
Tue Sep 24 21:50:03 CEST 2013


Hi Pavol,

Your correct we wish to synchronise passwords from AD to midPoint (and
then on to other systems).

Can't say I've come across the Password Synchronization Single Sign On
Daemon (SSOD) before, if you have the source that would be good and
we'll take a look and see if this is a better solution.  It certainly
has the advantage that we wouldn't need to maintain a password filter.

Regards
Paul

On 20 September 2013 08:48, Pavol Mederly <pavol.mederly at gmail.com> wrote:
> Hello Paul,
>
> while having a look at the patch I've sent you ... what's the reason of
> implementing the password filter, anyway? Is it because you need to
> synchronize passwords from AD to midPoint?
>
> If it is so, there is a prototype of such password synchronizer that we have
> prepared in cooperation with people at Comenius University in Bratislava. It
> uses standard Microsoft-supplied component, Password Synchronization Single
> Sign On Daemon (SSOD), which is able to push password changes from Windows
> host to any external box (Microsoft provides a Unix-side server). I've
> implemented the receiver side as a Java TCP server. Although it currently
> only decrypts password change notifications and prints password to the
> console, it should be easy to change it to push passwords to midPoint via
> local model Java API. If you would be interested in this, I could try to
> find the sources ;)
>
> Of course, we will try to solve the C# webservice issue as well. I've
> created a jira for it: https://jira.evolveum.com/browse/MID-1603.
>
> Best regards,
> Pavol
>
>
> On 17. 9. 2013 16:04, List User wrote:
>
> Hi All,
>
> We're in the process of developing a Active Directory password filter for
> midPoint though are having a problem calling the web services interface from
> C#.
>
> We've imported the WSDL as a service definition and have successfully
> authenticated to the service though when we call the searchObject method we
> get the following exception:
>
> System.ServiceModel.FaultException`1 was unhandled
>   Message=Fault occurred while processing.
>   Source=mscorlib
>   StackTrace:
>     Server stack trace:
>        at
> System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime
> operation, ProxyRpc& rpc)
>        at System.ServiceModel.Channels.ServiceChannel.Call(String action,
> Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[]
> outs, TimeSpan timeout)
>        at
> System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
> methodCall, ProxyOperationRuntime operation)
>        at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage
> message)
>     Exception rethrown at [0]:
>        at
> System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
> reqMsg, IMessage retMsg)
>        at
> System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
> msgData, Int32 type)
>        at
> MidPointClientSample.MidpointModelWebService.modelPortType.searchObjects(searchObjects
> request)
>        at MidPointClientSample.Program.searchUserByName(modelPortType
> modelPort, String username) in
> C:\Users\paulh.AD\Desktop\MidPointClientSample\MidPointClientSample\MidPointClientSample\Program.cs:line
> 89
>        at MidPointClientSample.Program.Main(String[] args) in
> C:\Users\paulh.AD\Desktop\MidPointClientSample\MidPointClientSample\MidPointClientSample\Program.cs:line
> 30
>        at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly,
> String[] args)
>        at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
>        at System.Threading.ExecutionContext.Run(ExecutionContext
> executionContext, ContextCallback callback, Object state, Boolean
> ignoreSyncCtx)
>        at System.Threading.ExecutionContext.Run(ExecutionContext
> executionContext, ContextCallback callback, Object state)
>        at System.Threading.ThreadHelper.ThreadStart()
>   InnerException:
>
>
>
> We've compared the SOAP request and response and its identical to that of
> the Java sample client, which tells me midPoint is performing correctly
> though  C# isn't properly interpreting the response.
>
> I was wondering if anyone had attempted to use the web service from C#
> before and had any success?
>
> Regards
> Paul
>
>
> _______________________________________________
> midPoint-dev mailing list
> midPoint-dev at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint-dev
>
>
>
> _______________________________________________
> midPoint-dev mailing list
> midPoint-dev at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint-dev
>


More information about the midPoint-dev mailing list