%CN in login script not returning a value

(Last modified: 01Jul1995)

This document (1000025) is provided subject to the disclaimer at the end of this document.

Symptom

Login script variables, such as %CN or %HOME DIRECTORY, are not returning a value. Instead they just return the variable (i.e. WRITE "%CN is my name" returns: %CN is my name).

Cause

This should only be seen with object properties being used as identifier variables. Identifier variables which are defined for login scripts (i.e. %LOGIN_NAME) should always return the value if it is defined. When using object properties as identifier variables, the variable can have no characters or spaces after it or between the variable and the end quotes. For example, if I login as user TEST this is what I will get:

1. WRITE "HELLO %CN"; ", HOW ARE YOU?"

will return HELLO TEST, HOW ARE YOU?

2. WRITE "HELLO %CN, HOW ARE YOU?"

will return HELLO %CN, HOW ARE YOU?

Solutions

Make sure there are no characters or spaces after the identifier variable or between the variable and the end quotation mark.

document

Document Title: %CN in login script not returning a value
Document ID: 1000025
Creation Date: 14Sep1994
Modified Date: 01Jul1995
Revision: 1
Novell Product Class:NetWare

disclaimer

The Origin of this information may be internal or external to Novell. Novell makes all reasonable efforts to verify this information. However, the information provided in this document is for your information only. Novell makes no explicit or implied claims to the validity of this information.
Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark information.