[midPoint] SMS Notification
mceylan
mrveceylan at gmail.com
Thu Feb 23 08:59:44 CET 2017
hi, remove sms name. when create a new user successfully. Log see Message
sent successfully to [telephoneNumber] via gateway null.
gateway null????*
But, users telephoneNumber not sms message :( Why?
Thanks
2017-02-23 9:41 GMT+02:00 mceylan <mrveceylan at gmail.com>:
> hi,
>
> <notificationConfiguration>
> <handler>
> <userPasswordNotifier>
> <recipientExpression>
> <script>
> <code>
> requestee.getTelephoneNumber()
> </code>
> </script>
> </recipientExpression>
> <transport>sms</transport>
> </userPasswordNotifier>
> </handler>
> <sms name="default">
> <gateway>
> <url>
> <script>
> <code>"http://my-gateway/api/v3/sendsms/plain?user=
> USERNAME&password=PASSWORD&sender=SIFRE&SMSText=test123&"
> + "&text=" + "deneme"</code>
> </script>
> </url>
> </gateway>
> </sms>
> <sms name="test">
> <redirectToFile>/opt/apache-tomcat-7.0.68/logs/sms-
> notifications.log</redirectToFile>
> </sms>
> </notificationConfiguration>
>
>
>
> when create a new user show log
>
> SMS configuration 'null' not found. SMS notification to [01234567899] will
> not be sent.
>
> Thanks
>
> 2017-02-22 16:55 GMT+02:00 Jason Everling <jeverling at bshp.edu>:
>
>> within your code you are missing the user, password, and sender. Is that
>> just a typo? Also, if the gateway is https ensure the ssl certificate
>> root/interm is added to midpoints keystore under midpoint.home.
>>
>> Have you checked the logs to see? Ours is below, which does work, it does
>> also require 2 parts, so make sure you also have a handler defined.
>>
>> <handler>
>> <userPasswordNotifier>
>> <recipientExpression>
>> <script>
>> <code>
>> basic.getExtensionPropertyValue(requestee,
>> 'http://midpoint.test.local/bshp', 'mobilePhone')
>> </code>
>> </script>
>> </recipientExpression>
>> <transport>sms</transport>
>> </userPasswordNotifier>
>> </handler>
>>
>> <sms>
>> <gateway>
>> <url>
>> <script>
>> <code>
>> "http://api.clickatell.com/http/sendmsg?user=USERNAME&
>> password=PASSWORD&api_id=12345678&to=" + to + "&text=" +
>> encodedMessageText
>> </code>
>> </script>
>> </url>
>> </gateway>
>> </sms>
>> <!--
>> <sms>
>> <redirectToFile>/var/log/tomcat7/sms-notifications.log</redirectToFile>
>> </sms>
>> -->
>>
>>
>>
>>
>>
>> JASON
>>
>> On Wed, Feb 22, 2017 at 5:52 AM, Martin Lízner - AMI Praha a.s. <
>> martin.lizner at ami.cz> wrote:
>>
>>> Hi, not sure if it helps, but we are just now coding our custom
>>> Transport class to call SOAP-based SMS GW. Its fairly easy, basically just
>>> copy and rename SimpleSmsTransport class, change NAME to specify new
>>> transport name (smsBmg in our case)
>>>
>>> Test it with bulk action:
>>>
>>> <s:pipeline xmlns:s="http://midpoint.evolveum.com/xml/ns/public/model/sc
>>> ripting-3">
>>> <s:expression xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xsi:type="s:SearchExpressionType">
>>> <s:type>SystemConfigurationType</s:type>
>>> </s:expression>
>>> <s:expression xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xsi:type="s:ActionExpressionType">
>>> <s:type>notify</s:type>
>>> <s:parameter>
>>> <s:name>handler</s:name>
>>> <c:value xsi:type="c:EventHandlerType" xmlns:c="http://midpoint.evolv
>>> eum.com/xml/ns/public/common/common-3">
>>> <c:generalNotifier>
>>> <c:recipientExpression>
>>> <c:value>+420737745111 <+420%20737%20745%20111></c:value>
>>> </c:recipientExpression>
>>> <c:bodyExpression>
>>> <c:value>ZPRAVA-12345</c:value>
>>> </c:bodyExpression>
>>> <c:transport>smsBmg</c:transport>
>>> </c:generalNotifier>
>>> </c:value>
>>> </s:parameter>
>>> </s:expression>
>>> </s:pipeline>
>>>
>>> You can use SystemConfig to hold some environmental properties:
>>> <c:sms>
>>> <c:defaultFrom>$(vfcz.bmg.fromNo)</c:defaultFrom>
>>> <c:gateway>
>>> <c:url>
>>> <c:value>$(vfcz.bmg.url)</c:value>
>>> </c:url>
>>> <c:username>$(vfcz.bmg.username)</c:username>
>>> <!--
>>> <c:redirectToFile>/opt/SP/idm/midpoint/export/sms-notificati
>>> ons.txt</c:redirectToFile>
>>> -->
>>> </c:gateway>
>>> </c:sms>
>>>
>>> M.
>>>
>>> Martin Lízner
>>> solution architect
>>>
>>> gsm: [+420] 737 745 571 <+420%20737%20745%20571>
>>> e-mail: martin.lizner at ami.cz
>>>
>>>
>>> AMI Praha a.s.
>>> Pláničkova 11
>>> 162 00 Praha 6
>>> tel.: [+420] 274 783 239 <+420%20274%20783%20239>
>>> web: www.ami.cz
>>>
>>>
>>>
>>> [image: AMI Praha a.s.] <http://www.skyidentity.com/>
>>>
>>> Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za
>>> společnost AMI Praha a.s.
>>> jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít
>>> výhradně písemnou formu.
>>>
>>>
>>> 2017-02-22 12:43 GMT+01:00 mceylan <mrveceylan at gmail.com>:
>>>
>>>> Can you help me?
>>>>
>>>> 2017-02-22 8:30 GMT+02:00 mceylan <mrveceylan at gmail.com>:
>>>>
>>>>> hi, thanks for you answer. I did not succeed when I tried.
>>>>>
>>>>> systemConfiguration file in add
>>>>>
>>>>>
>>>>> <notificationConfiguration>
>>>>> <sms name="default">
>>>>> <gateway>
>>>>> <url>
>>>>> <script>
>>>>> <code>"http://my-sms-gateway/a
>>>>> pi/v3/sendsms/plain?number=" + 01234568745 + "&text=" +
>>>>> deneme</code>
>>>>> </script>
>>>>> </url>
>>>>> </gateway>
>>>>> </sms>
>>>>> </notificationConfiguration>
>>>>>
>>>>>
>>>>> working sms method
>>>>>
>>>>>
>>>>> http://my-sms-gateway/api/v3/sendsms/plain?user=ABC&password
>>>>> =DEF&sender=XXX&SMSText=XXX&GSM=01234568745
>>>>>
>>>>>
>>>>> Can you help me?
>>>>>
>>>>>
>>>>> 2017-02-17 18:41 GMT+02:00 Jason Everling <jeverling at bshp.edu>:
>>>>>
>>>>>> We use clickatell as our sms gateway for various applications,
>>>>>> including midpoint, and it works great. We haven't had any issues with them,
>>>>>>
>>>>>> JASON
>>>>>>
>>>>>> On Fri, Feb 17, 2017 at 2:57 AM, Oskar Butovič - AMI Praha a.s. <
>>>>>> oskar.butovic at ami.cz> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> you can use standard notification and direct it towards sms gateway
>>>>>>> instead of email. see: https://wiki.evolveum.com
>>>>>>> /display/midPoint/Configuring+notifications
>>>>>>>
>>>>>>> Best Regards
>>>>>>>
>>>>>>> Oskar Butovič
>>>>>>>
>>>>>>> 2017-02-17 9:52 GMT+01:00 mceylan <mrveceylan at gmail.com>:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> How can I make changes to the accounts of users to provide
>>>>>>>> information to the user via SMS?
>>>>>>>>
>>>>>>>> Can you help me?
>>>>>>>>
>>>>>>>> --
>>>>>>>> Merve CEYLAN
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> midPoint mailing list
>>>>>>>> midPoint at lists.evolveum.com
>>>>>>>> http://lists.evolveum.com/mailman/listinfo/midpoint
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> Oskar Butovič
>>>>>>> solution architect
>>>>>>>
>>>>>>> gsm: [+420] 774 480 101 <+420%20774%20480%20101>
>>>>>>> e-mail: oskar.butovic at ami.cz
>>>>>>>
>>>>>>>
>>>>>>> AMI Praha a.s.
>>>>>>> Pláničkova 11
>>>>>>> 162 00 Praha 6
>>>>>>> tel.: [+420] 274 783 239 <+420%20274%20783%20239>
>>>>>>> web: www.ami.cz
>>>>>>>
>>>>>>>
>>>>>>> [image: AMI Praha a.s.]
>>>>>>>
>>>>>>> [image: AMI Praha a.s.]
>>>>>>> <http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management>
>>>>>>>
>>>>>>> Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá
>>>>>>> za společnost AMI Praha a.s.
>>>>>>> jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít
>>>>>>> výhradně písemnou formu.
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> midPoint mailing list
>>>>>>> midPoint at lists.evolveum.com
>>>>>>> http://lists.evolveum.com/mailman/listinfo/midpoint
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> midPoint mailing list
>>>>>> midPoint at lists.evolveum.com
>>>>>> http://lists.evolveum.com/mailman/listinfo/midpoint
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Merve CEYLAN
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Merve CEYLAN
>>>>
>>>> _______________________________________________
>>>> midPoint mailing list
>>>> midPoint at lists.evolveum.com
>>>> http://lists.evolveum.com/mailman/listinfo/midpoint
>>>>
>>>>
>>>
>>> _______________________________________________
>>> midPoint mailing list
>>> midPoint at lists.evolveum.com
>>> http://lists.evolveum.com/mailman/listinfo/midpoint
>>>
>>>
>>
>> _______________________________________________
>> midPoint mailing list
>> midPoint at lists.evolveum.com
>> http://lists.evolveum.com/mailman/listinfo/midpoint
>>
>>
>
>
> --
> Merve CEYLAN
>
--
Merve CEYLAN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170223/8ea5db6b/attachment.htm>
More information about the midPoint
mailing list