Michal, The sms warning message from org.apereo.cas.util.io.CommunicationsManager won't stop your notifications from being sent. This warning message originates from CommunicationsManager's validate method checking for SMS configuration properties.
Your notifications are not sending because the user's email address could not be found. You can check out https://apereo.github.io/cas/5.3.x/installation/Configuration-Properties.html#password-management which mentions that email notification settings for password reset are defined under the cas.authn.pm.reset configuration key. You can find email notification configuration properties at https://apereo.github.io/cas/5.3.x/installation/Configuration-Properties-Common.html#email-notifications The following configuration property would specify the attribute to fetch for the email address value from your LDAP Password Management source: cas.authn.pm.reset.mail.attributeName=mail On Wednesday, June 19, 2019 at 6:07:35 AM UTC-5, Michał Zań wrote: > > Hey, > > I have a problem sending notifications when changing a user's > password. Why send by SMS? > > Error: > 2019-06-19 12:44:07,314 WARN > [org.apereo.cas.util.io.CommunicationsManager] - <CAS is unable to send > tokens via sms messages given no settings are defined to account for sms > providers, etc> > 2019-06-19 12:44:07,319 WARN > [org.apereo.cas.pm.web.flow.actions.SendPasswordResetInstructionsAction] - > <No recipient is provided> > > My configuration: > > ################################################################### > # RESET HASŁA # > ################################################################### > > ###################### Powiadomienia mailowe > > spring.mail.host=smtp.gmail.com > spring.mail.port=587 > spring.mail.username=XXXXXXX > spring.mail.password=XXXXXX > spring.mail.testConnection=true > spring.mail.properties.mail.smtp.auth=true > spring.mail.properties.mail.smtp.starttls.enable=true > > ${configurationKey}.mail.from=XXXXX > ${configurationKey}.mail.text=Reset your password with this link: %s > ${configurationKey}.mail.subject=Password Reset Request > #cas.authn.pm.ldapmail.cc= > #cas.authn.pm.ldap.bcc= > ${configurationKey}.mail.attributeName=mail > > ###################### Zmiana hasła > > cas.authn.pm.enabled=true > > # Minimum 8 and Maximum 10 characters at least 1 Uppercase Alphabet, 1 > Lowercase Alphabet, 1 Number and 1 Special Character > > cas.authn.pm.policyPattern=^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[$@$!%*?&])[A-Za-z\\d$@$!%*?&]{8,10} > > cas.authn.pm.reset.expirationMinutes=5 > cas.authn.pm.reset.securityQuestionsEnabled=false > > # Automatically log in after successful password change > cas.authn.pm.autoLogin=false > > cas.authn.pm.ldap.type=AD > #cas.authn.pm.ldap.usernameAttribute=sAMAccountName > #cas.authn.pm.ldap.searchFilterUsername=userPrincipalName={user} > cas.authn.pm.ldap.ldapUrl=ldap://XXXXXX > cas.authn.pm.ldap.useSsl=false > cas.authn.pm.ldap.baseDn=ou=XXX,dc=XXX > cas.authn.pm.ldap.searchFilter=(sAMAccountName={user}) > cas.authn.pm.ldap.bindDn=XXX@XXXX > cas.authn.pm.ldap.bindCredential=XXXXX > > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/7b75b112-a648-4f58-a166-2ea30399311b%40apereo.org.