NDS Attribute Macros

Novell® Application LauncherTM/Explorer supports macros that pull information from the attributes of the currently logged-in user, the current Application object, or from the attributes of other NDS® objects. To use an NDS attribute as a macro you must enclose it in % characters (for example, %CN%).

Example
A GroupWise® Application object runs OFWIN.EXE with a command line parameter:

/U-@username

@username can be replaced with a macro that uses a user's NDS common name (CN):

/U-%CN%

If the NDS object name is the same as the e-mail login for GroupWise, every user that runs the application has the correct username passed in to GroupWise.

NDS Attribute Variables for Current User
To use NDS attributes associated with the current user, use the following syntax:

%ndsattrib%

The following list provides examples:

Example Description
%CN% Common Name (user's object name or login name)
%DN% User's Full Distinguished Name (used with Application Launcher only)
%Given Name% Given Name
%Surname% Last Name
%Full Name% Full Name
%Telephone Number% Telephone
%Home Directory% Home Directory
%Email Address% E-Mail Address
%Mailbox ID% Mailbox ID

By default, the currently logged-in user is the source NDS object for these attributes.

You can use the Schema Manager (Tools menu) to view an NDS object's available attributes.

NDS Attributes from Other Objects
To use NDS attributes from another object, use the following syntax:

%.objname.container;ndsattrib%

The following example causes Application Launcher/Explorer to use the Description atttribute of the JSmith object located in the Novell container:

%.JSmith.Novell;Description%

You can use the Schema Manager (Tools menu) to view an NDS object's available attributes.

NDS Attributes from the Current Application Object
To use NDS attributes from the current Application object, use the following syntax:

%*;ndsattrib%

The following list provides examples:

Example Description
%*;DN% Application object's distinguished name
%*;App:Caption% Application Icon Title
%*;App:Path% Path to Executable
%*;App:GUID% GUID
%*;App:Version String % Version Stamp

You can use the Schema Manager (Tools menu) to view an NDS object's available attributes.


ZENworks for Desktops Online Documentation

A trademark symbol (®, TM, etc.) denotes a Novell trademark. An asterisk denotes a third-party trademark. For information on trademarks, see Legal Notices.