Nov.DS.Object.SetProperty
Top  Previous  Next


Sets or edits NetWare object (user, group, container etc.) properties

Use Nov.DS.Object.CopyProperties to copy multiple properties from one object to another.

Requirements
·NetWare client on the local machine, log on as admin  
·Novell controls  

Category
Novell

Script section
All

Nov.DS.Object.SetProperty
NDSObjectPath, [$]PropertyName, Value

NDSObjectPath
Full NDS path to object  

PropertyName
Name of property to set, for known properties see table 1-6 below  
 
Put a "$" character in front of the property name to bypass the syntax checker in order to modify NDS properties unknown by Nov.DS.Object.SetProperty  
 
Notice: some properties (like logon time restrictions) can only be set by Nov.DS.Object.CopyProperties  

Value
New value for property, leave value blank to delete the property  
 

Table 1 - General / Identification properties
PropertyName
Property in ConsoleOne
Comment
Given Name
Given name
*
Surname
Last name
*
Full Name
Full name

Generational Qualifier
Qualifier
Maximum 8 characters

Example: Jr. or Junior
Initials
Middle initial
Maximum 8 characters
-
Other name
"Other name" does not have an attribute of its own, instead it is stored in "CN", which is a multi valued attribute. Unfortunately modifications of multi valued attributes is not supported yet.
Title
Title
*
L
Location

OU
Department
*
Telephone Number
Telephone
*
Facsimile Telephone Number
Fax number
*
Internet EMail Address
E-mail address

Description
Description


*) If you have GroupWise; use Nov.GW.Account.SetProperty for these properties to show in the address book.

Table 2 - General / Postal Address properties
PropertyName
Property in ConsoleOne
Comment
SA
Street

Postal Office Box
Post Office Box

Physical Delivery Office Name
City

S
State

Postal Code
Zip Code

Postal Address
Mailing label information
Use commas between the six fields


Table 3 - General / Environment properties

PropertyName
Property in ConsoleOne
Comment
Language
Language

Message Server
Default server
Full NDS path to a server object in the NDS tree.

Example: \\ELM\MyOrg\MyOU\SERVER
Home Directory
Home directory: Volume, Path
Full NDS path to home directory volume, volume path to home directory. Use commas between the two fields.

Example: \\ELM\MyOrg\MyOu\SERVER_SYS, public\users\AccountName1



Table 4 - Restrictions / Password Restrictions properties

PropertyName
Property in ConsoleOne
Comment
Password Allow Change
Allow user to change password
Flag, value = "Yes" or "No"
Password Required
Require a password
Flag, value = "Yes" or "No"
Password Minimum Length
Minimum password length
*
Number, value = 1 - 128
Password Expiration Interval
Force periodic password changes: days between forced changes
*
Number, value = 1 - 365

Specify 0 to uncheck "Force periodic password changes"
Password Expiration Time
Force periodic password changes: date and time password expires
*
Date
Password Unique Required
Require unique passwords
*
Flag, value = "Yes" or "No"
Login Grace Limit
Limit grace logins: grace logins allowed
*
Number, value = 1 - 200

Specify 0 to uncheck "Limit grace logins"
Login Grace Remaining
Limit grace logins: remaining grace logins
*
Number


*) Both "Password Allow Change" and "Password Required" must be set to "Yes" in order to enable this option.

Table 5 - Restrictions / Login Restrictions properties

PropertyName
Property in ConsoleOne
Comment
Login Disabled
Account disabled
Flag, value = "Yes" or "No"
Login Expiration Time
Account expiration date and time
Date

Set to nothing to uncheck "Account has expiration date"
Login Maximum Simultaneous
Maximum concurrent connections
Number, value = 1 - 32 000

Specify 0 to uncheck "Limit concurrent connections"


Table 6 - Login Script
PropertyName
Property in ConsoleOne
Comment
Profile
Profile
Full NDS path to a profile object in the NDS tree.

Example: \\ELM\MyOrg\MyOu\MyProfile


Example
Set various properties for three accounts

[Settings_Begin]
BatchSettings.Delimiter=TAB
BatchSettings.MarkerCol=5

SET AccountName=%col1%

SET NDPath=ELM\MyOrg\MyOU\OU3
[Settings_End]

[Batch_Begin]
Data.Loop   
 Nov.DS.Object.SetProperty %NDPath%\%AccountName%, Given name, %col2%   
 Nov.DS.Object.SetProperty %NDPath%\%AccountName%, Surname, %col3%   
 Nov.DS.Object.SetProperty %NDPath%\%AccountName%, Full name, %col2% %col3%   
 Nov.DS.Object.SetProperty %NDPath%\%AccountName%, Telephone Number, %col4%   
 Nov.DS.Object.SetProperty %NDPath%\%AccountName%, Password Allow Change, yes   
 Nov.DS.Object.SetProperty %NDPath%\%AccountName%, Password Required, yes   
 Nov.DS.Object.SetProperty %NDPath%\%AccountName%, Password Minimum Length, 6   
Data.EndLoop   
[Batch_End]

[Data_Begin]
Account1   Steve   Smith   032-222-4972   
Account2   Susan   Jones   230-930-25711   
Account3   Lisa   Rogers   230-118-38901   
[Data_End]