... |
... |
@@ -1,3
+1,5 @@ |
|
1 |
+//Single sign-on// for {{smallcaps}}Ntlm{{/smallcaps}} and Kerberos is a {{formcycle/}} module which is subject to an additional fee. |
|
2 |
+ |
1 |
1 |
{{content/}} |
2 |
2 |
|
3 |
3 |
{{figure image="single_sign_on_ntlm_en.png" width="600"}} |
... |
... |
@@ -139,6
+139,11 @@ |
139 |
139 |
Example: user@EXCAMPLE.COM |
140 |
140 |
{{/info}} |
141 |
141 |
|
|
144 |
+{{info}} |
|
145 |
+To this user you must, in Active Directory for example, register the Domians to be used as ServiePrincipalName beginning with the service class HTTP. You can find more information [[here>>https://social.technet.microsoft.com/wiki/contents/articles/717.service-principal-names-spn-setspn-syntax.aspx||target="_blank"]] or [[here>>https://docs.microsoft.com/en-us/windows-server/networking/sdn/security/kerberos-with-spn||target="_blank"]]. |
|
146 |
+{{/info}} |
|
147 |
+ |
|
148 |
+(% class="wikigeneratedid" %) |
142 |
142 |
=== Password === |
143 |
143 |
|
144 |
144 |
Password of the service account. |
... |
... |
@@ -280,24
+280,21 @@ |
280 |
280 |
|
281 |
281 |
== Make user data available to forms == |
282 |
282 |
|
283 |
|
-The LDAP user data for the currently authenticated user are stored in the JavaScript object {{code language="none"}}window.XFC_METADATA.currentUser.ldap{{/code}} and can be accessed via JavaScript. |
|
290 |
+The LDAP user data for the currently authenticated user are stored in the JavaScript object {{code language="none"}}window.XFC_METADATA.user.rawData{{/code}} and can be accessed via JavaScript. |
284 |
284 |
|
285 |
285 |
{{info}} |
286 |
|
-The user data that will be retrieved for the current user depends on the (read) permissions of the user account used for the LDAP user lookup. |
|
293 |
+Which data the JSON structure contains under the rawData property depends mainly on the read rights of the LDAP account, which executes the user search in the LDAP system. |
287 |
287 |
{{/info}} |
288 |
288 |
|
289 |
|
-{{panel title="Example"}} |
|
296 |
+To access the property ~/~/userPrincipalName~/~/ of the user from JavaScript, use the following code: |
290 |
290 |
|
291 |
|
-To access the property //userPrincipalName// of the user from JavaScript, use the following code: |
292 |
|
- |
293 |
|
-{{code language="javascript" title=""}} |
|
298 |
+{{code language="javascript"}} |
294 |
294 |
try { |
295 |
295 |
// Auslesen der Property und Anzeige in einem Label |
296 |
296 |
var elem = $('[name=txt1]'); |
297 |
|
- var ldap = XFC_METADATA.currentUser.ldap; |
|
302 |
+ var ldap = XFC_METADATA.user.rawData; |
298 |
298 |
if(ldap.hasOwnProperty('userPrincipalName')) { |
299 |
|
- elem.append(ldap.userPrincipalName); |
|
304 |
+ elem.html(ldap.userPrincipalName); |
300 |
300 |
} |
301 |
301 |
} catch (err) {} |
302 |
302 |
{{/code}} |
303 |
|
-{{/panel}} |