[Midpoint-dev] Antwort: Issue while configuring email notification

Ivan Noris ivan.noris at evolveum.com
Thu Aug 28 12:34:12 CEST 2014


Hi Shelly,

please try this:

<notificationConfiguration>
...

<handler>
   <simpleResourceObjectNotifier>
   <name>Notify system administrator for accounts</name>
     <recipientExpression>
        <value>notify at example.com</value>
     </recipientExpression>
     <status>success</status>       
     <transport>mail</transport>
    </simpleResourceObjectNotifier>
</handler>

...
</notificationConfiguration>

There were some changes; wiki is just being updated.

Regards,
IVan
 
On 08/28/2014 09:31 AM, Shelly Piplani wrote:
> Hi Chris,
>
> Thanks for the reply. I removed the  extra <notificationConfiguration> tag and tried again.
> The error I am getting now is :
>
> No field simpleAccountNotifier in class class com.evolveum.midpoint.xml.ns._public.common.common_3.NotificationConfigurationType (and no element method in object factory too)
> Save object (Gui)
> Cause: No field simpleAccountNotifier in class class com.evolveum.midpoint.xml.ns._public.common.common_3.NotificationConfigurationType (and no element method in object factory too)
>
> Attached is the modified system configuration xml .
>
> I believe I need to import some packages but not sure which one and where.
> Please suggest.
>
> Regards,
> Shelly
> ________________________________________
> From: Chris.Woods at rohde-schwarz.com <Chris.Woods at rohde-schwarz.com>
> Sent: 28 August 2014 12:52
> To: Shelly Piplani
> Cc: midpoint-dev at lists.evolveum.com
> Subject: Antwort: [Midpoint-dev] Issue while configuring email notification
>
> Hi Shelly,
>
> on lines 66/67 you have <notificationConfiguration> nested within
> <notificationConfiguration> - maybe this is the problem.
>
> Cheers,
>
> Chris Woods
> Rohde & Schwarz GmbH & Co. KG
> Postbox 80 14 69, D-81614 Muenchen
> Dept. 6OIZ
>
> email: chris.woods at rohde-schwarz.com
> ------------------------------------------------------------
> Geschäftsführung / Executive Board: Manfred Fleischmann (Vorsitzender /
> Chairman), Christian Leicher, Peter Riedl, Sitz der Gesellschaft /
> Company's Place of Business: München, Registereintrag / Commercial
> Register No.: HRA 16 270, Persönlich haftender Gesellschafter / Personally
> Liable Partner: RUSEG Verwaltungs-GmbH, Sitz der Gesellschaft / Company's
> Place of Business: München, Registereintrag / Commercial Register No.: HRB
> 7 534, Umsatzsteuer-Identifikationsnummer (USt-IdNr.) / VAT Identification
> No.: DE 130 256 683, Elektro-Altgeräte Register (EAR) / WEEE Register No.:
> DE 240 437 86
>
>
>
>
> Von:    Shelly Piplani <shelly.piplani at ilantus.com>
> An:     "midpoint-dev at lists.evolveum.com"
> <midpoint-dev at lists.evolveum.com>
> Datum:  28.08.2014 09:06
> Betreff:        [Midpoint-dev] Issue while configuring email notification
> Gesendet von:   midpoint-dev-bounces at lists.evolveum.com
>
>
>
> Hi,
>
>
> I am using Midpoint3.0
> I am  trying to configure email notification for account creation.
> Following is the code which I am adding in my system configuration
>
> <notificationConfiguration>
> <mail>
>     <server>
>         <host>smtp.gmail.com</host>
>         <port>25</port>
>         <username>test at gmail.com</username>
>         <password>
>             <clearValue>ila123</clearValue>
>         </password>
>         <transportSecurity>none</transportSecurity>
>     </server>
>     <defaultFrom>abc at gmail.com</defaultFrom>
>     <debug>true</debug>
> </mail>
>
> <simpleAccountNotifier>
>         <statusFilter>
>             <status>success</status>
>         </statusFilter>
>         <transport>mail</transport>
>     </simpleAccountNotifier>
> </notificationConfiguration>
> However I am getting following error:
> No field notificationConfiguration in class class
> com.evolveum.midpoint.xml.ns._public.common.common_3.NotificationConfigurationType
> (and no suitable substitution too)
> Save object (Gui)
> Cause: No field notificationConfiguration in class class
> com.evolveum.midpoint.xml.ns._public.common.common_3.NotificationConfigurationType
> (and no suitable substitution too)..
>
> Attached is the  xml for System configuration
>
> Please suggest.
>
> Regards,
> Shelly
>
>
>
>
> This message contains information that may be privileged or confidential
> and is the property of ILANTUS Technologies. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute,
> or use this message or any part thereof. If you receive this message in
> error, please notify the sender immediately and delete all copies of this
> message. [attachment "systemconfig.xml" deleted by Chris Woods/RSD]
> _______________________________________________
> midPoint-dev mailing list
> midPoint-dev at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint-dev
>
> This message contains information that may be privileged or confidential and is the property of ILANTUS Technologies. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
> This message contains information that may be privileged or confidential and is the property of ILANTUS Technologies. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
>
>
> _______________________________________________
> midPoint-dev mailing list
> midPoint-dev at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint-dev

-- 
  Ing. Ivan Noris
  Senior Identity Management Engineer
  evolveum.com
  ___________________________________________
           "Idem per idem - semper idem Vix."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolveum.com/pipermail/midpoint-dev/attachments/20140828/288addb0/attachment.html>


More information about the midPoint-dev mailing list