From version < 6.1 >
edited by MKO
on 27.11.2020, 19:52
To version < 5.1 >
edited by sas
on 01.07.2020, 14:01
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.mko
1 +XWiki.sas
Content
... ... @@ -139,11 +139,6 @@
139 139  Example: user@EXCAMPLE.COM
140 140  {{/info}}
141 141  
142 -{{info}}
143 -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"]].
144 -{{/info}}
145 -
146 -(% class="wikigeneratedid" %)
147 147  === Password ===
148 148  
149 149  Password of the service account.
... ... @@ -285,15 +285,17 @@
285 285  
286 286  == Make user data available to forms ==
287 287  
288 -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.
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.
289 289  
290 290  {{info}}
291 -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.
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.
292 292  {{/info}}
293 293  
294 -To access the property ~/~/userPrincipalName~/~/ of the user from JavaScript, use the following code:
289 +{{panel title="Example"}}
295 295  
296 -{{code language="javascript"}}
291 +To access the property //userPrincipalName// of the user from JavaScript, use the following code:
292 +
293 +{{code language="javascript" title=""}}
297 297  try {
298 298   // Auslesen der Property und Anzeige in einem Label
299 299   var elem = $('[name=txt1]');
... ... @@ -303,3 +303,4 @@
303 303   }
304 304  } catch (err) {}
305 305  {{/code}}
303 +{{/panel}}
Copyright 2000-2024