Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
documentation:self-service-password:0.8:config_sms [2012/10/20 10:17]
coudot created
documentation:self-service-password:0.8:config_sms [2017/01/25 12:09] (current)
Line 9: Line 9:
 If information is found, the user can check it and confirm the sent of reset code trough SMS. If information is found, the user can check it and confirm the sent of reset code trough SMS.
  
-A mail is sent to a Email to SMS gateway. This gateway will then send the message to the mobile phone.+A mail is sent to a Email to SMS gateway. This gateway will then send the message to the mobile phone. ​The user should then enter the code on SSP page, and can then change its password. 
 + 
 +===== SMS provider ===== 
 + 
 +You first have to choose a Email to SMS provider. Search the web to find one, many have a free trial so you can test the feature. You can try for example https://​www.smsglobal.com/​. 
 + 
 +===== Activation ===== 
 + 
 +You can enable or disable this feature with $use_sms: 
 +<file php> 
 +$use_sms = true; 
 +</​file>​ 
 + 
 +===== Mobile attribute ===== 
 + 
 +Set here which LDAP attribute hold the user mobile phone: 
 +<file php> 
 +$sms_attribute = "​mobile";​ 
 +</​file>​ 
 + 
 +===== Message ===== 
 + 
 +The values set here depend on the Email to SMS provider. Some require a specific string in mail subject, other use a specific mail body. Just adapt the configuration to these requirements. 
 + 
 +<file php> 
 +# Send SMS mail to address 
 +$smsmailto = "​{sms_attribute}@service.provider.com";​ 
 +# Subject when sending email to SMTP to SMS provider 
 +$smsmail_subject = "​Provider code";​ 
 +# Message 
 +$sms_message = "​{smsresetmessage} {smstoken}";​ 
 +</​file>​ 
 + 
 +===== Token ===== 
 + 
 +You can set the token length: 
 +<file php> 
 +$sms_token_length = 6; 
 +</​file>​