How to create a Dynamic Variable for Web Address in Active Directory.
The variable must first be defined in either a global definitions file or a profile specific definitions file (illustrated below) (Select Profile -> Definitions Tab) in order to be processed for use during the execution of the main engine.
$slADCurrentUser = GetObject($LDAP)
If not @error
$adWebAddress = $slADCurrentUser.wWWHomePage
Endif
NOTE: It is important to note that a profile-specific definitions file should be used for testing this code as opposed to the global definitions file. The block of code below can be pasted into a definitions file, but not directly. The code should be copied from the article, pasted into Notepad and then cut or copied from Notepad and pasted directly into the definitions file. This will ensure that no undesirable HTML formatting is copied over.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center