Révision dd54aff9
Ajouté par Assos Assos il y a plus de 10 ans
htmltest/sites/all/modules/ldap/ldap_authentication/LdapAuthenticationConf.class.php | ||
---|---|---|
15 | 15 |
* |
16 | 16 |
* @var array |
17 | 17 |
* |
18 |
* @see LdapServer::sid()
|
|
18 |
* @see LdapServer->sid()
|
|
19 | 19 |
*/ |
20 | 20 |
public $sids = array(); |
21 | 21 |
|
... | ... | |
24 | 24 |
* |
25 | 25 |
* @var associative array of LdapServer objects keyed on sids |
26 | 26 |
* |
27 |
* @see LdapServer::sid
|
|
27 |
* @see LdapServer->sid()
|
|
28 | 28 |
* @see LdapServer |
29 | 29 |
*/ |
30 | 30 |
public $enabledAuthenticationServers = array(); |
... | ... | |
107 | 107 |
* @var int |
108 | 108 |
*/ |
109 | 109 |
public $emailUpdate = LDAP_AUTHENTICATION_EMAIL_UPDATE_ON_LDAP_CHANGE_DEFAULT; |
110 |
|
|
111 |
/** |
|
112 |
* Email default handling option |
|
113 |
* |
|
114 |
* This affects how email addresses that are empty are handled by |
|
115 |
* the authentication process. |
|
116 |
* |
|
117 |
* LDAP_AUTHENTICATION_EMAIL_TEMPLATE_NONE -- leaves the email empty |
|
118 |
* LDAP_AUTHENTICATION_EMAIL_TEMPLATE_IF_EMPTY (default) -- if the email is empty, it will be replaced |
|
119 |
* LDAP_AUTHENTICATION_EMAIL_TEMPLATE_ALWAYS -- always use the template |
|
120 |
* |
|
121 |
* @var int |
|
122 |
*/ |
|
123 |
public $emailTemplateHandling = LDAP_AUTHENTICATION_EMAIL_TEMPLATE_DEFAULT; |
|
124 |
|
|
125 |
/** |
|
126 |
* Email template. |
|
127 |
* |
|
128 |
* @var string |
|
129 |
*/ |
|
130 |
public $emailTemplate = LDAP_AUTHENTICATION_DEFAULT_TEMPLATE; |
|
131 |
|
|
132 |
/** |
|
133 |
* Whether or not to display a notification to the user on login, prompting |
|
134 |
* them to change their email. |
|
135 |
* |
|
136 |
* @var boolean |
|
137 |
*/ |
|
138 |
public $templateUsagePromptUser = LDAP_AUTHENTICATION_TEMPLATE_USAGE_PROMPT_USER_DEFAULT; |
|
139 |
|
|
140 |
/** |
|
141 |
* Whether or not to avoid updating the email address of the user if the |
|
142 |
* template was used to generate it. |
|
143 |
* |
|
144 |
* @var boolean |
|
145 |
*/ |
|
146 |
public $templateUsageNeverUpdate = LDAP_AUTHENTICATION_TEMPLATE_USAGE_NEVER_UPDATE_DEFAULT; |
|
147 |
|
|
148 |
/** |
|
149 |
* Whether or not to use the email template if there is a user with a different |
|
150 |
* login name but same email address in the system. |
|
151 |
* |
|
152 |
* @var boolean |
|
153 |
*/ |
|
154 |
public $templateUsageResolveConflict = LDAP_AUTHENTICATION_TEMPLATE_USAGE_RESOLVE_CONFLICT_DEFAULT; |
|
155 |
|
|
156 |
/** |
|
157 |
* A PCRE regular expression (minus the delimiter and flags) that will be used |
|
158 |
* if $templateUsagePromptUser is set to true to determine if the email |
|
159 |
* address is a fake one or not. |
|
160 |
* |
|
161 |
* By allowing this to be customized, we let the administrators handle older |
|
162 |
* patterns should they decide to change the existing one, as well as avoiding |
|
163 |
* the complexity of determining a proper regex from the template. |
|
164 |
* |
|
165 |
* @var string |
|
166 |
*/ |
|
167 |
public $templateUsagePromptRegex = LDAP_AUTHENTICATION_DEFAULT_TEMPLATE_REGEX; |
|
168 |
|
|
169 |
/** |
|
170 |
* Controls whether or not we should check on login if the email template was |
|
171 |
* used and redirect the user if needed. |
|
172 |
* |
|
173 |
* @var boolean |
|
174 |
*/ |
|
175 |
public $templateUsageRedirectOnLogin = LDAP_AUTHENTICATION_REDIRECT_ON_LOGIN_DEFAULT; |
|
176 |
|
|
110 | 177 |
|
111 | 178 |
|
112 | 179 |
/** |
... | ... | |
191 | 258 |
'ssoNotifyAuthentication', |
192 | 259 |
'ldapImplementation', |
193 | 260 |
'cookieExpire', |
261 |
'emailTemplate', |
|
262 |
'emailTemplateHandling', |
|
263 |
'templateUsagePromptUser', |
|
264 |
'templateUsageNeverUpdate', |
|
265 |
'templateUsageResolveConflict', |
|
266 |
'templateUsagePromptRegex', |
|
267 |
'templateUsageRedirectOnLogin', |
|
194 | 268 |
); |
195 | 269 |
|
196 | 270 |
public function hasEnabledAuthenticationServers() { |
Formats disponibles : Unified diff
Weekly update of contrib modules