Nov.GW.Account.Reconnect
Top  Previous  Next


Reconnects GroupWise user account with NetWare user account after NetWare user account move or rename

If you move or rename a NetWare account for which there is a GroupWise account without this command afterwards you will get the error message "An error occurred converting the GroupWise object to its NDS counterpart" in ConsoleOne.

The GroupWise account will get the same name as the NetWare account when Nov.GW.Account.Reconnect is executed. Use Nov.GW.Account.Rename to rename if needed. Notice that it can take a minute or two before it is possible to log on to GroupWise if the name changes.

(Nov.GW.Account.Reconnect is equivalent to: ConsoleOne > Tools > GroupWise Utilities > GW / eDirectory Association / Associate objects.)

Requirements
·NetWare client on the local machine, log on as admin  
·Novell controls  
·GroupWise 6 Support Pack 3 or higher  
·GroupWare client on the local machine  

Category
Novell

Script section
All

Nov.GW.Account.Reconnect
DomainDataBasePath, PostOffice, AccountName, NDSAccountPath

DomainDataBasePath
Net path to GroupWise domain database  

PostOffice
Name of GroupWise postoffice  

AccountName
Name of GroupWise account to reconnect with NetWare  

NDSAccountPath
Full NDS path to NetWare account  

Examples
1) Move three NetWare accounts from MyOU\OU3 to MyOU\OU2, reconnect with GroupWise

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

SET AccountName=%col1%
SET NDRoot=OAK\MyOrg\MyOU
SET NDOU=OU3
SET NDOUPath=%NDRoot%\%NDOU%
SET NDtargetOU=OU2
SET NDtargetOUPath=%NDRoot%\%NDtargetOU%

SET GW_DomainDataBasePath=\\lisa\sys\domdir
SET GW_PostOffice=HQPO
[Settings_End]

[Batch_Begin]
Data.Loop
 Nov.DS.OU.MoveObject %NDOUPath%\%AccountName%, %NDtargetOUPath%\%AccountName%   
 Nov.GW.Account.Reconnect %GW_DomainDataBasePath%,%GW_PostOffice%,%AccountName%,%NDtargetOUPath%\%AccountName%   
Data.EndLoop   
[Batch_End]

[Data_Begin]
AccountName1
AccountName2
AccountName3
[Data_End]

2) Rename three NetWare accounts, reconnect with GroupWise

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

SET AccountName=%col1%
SET NewAccountName=%col2%

SET NDRoot=OAK\MyOrg\MyOU
SET NDOU=OU3
SET NDOUPath=%NDRoot%\%NDOU%

SET GW_DomainDataBasePath=\\lisa\sys\domdir
SET GW_PostOffice=HQPO
[Settings_End]

[Batch_Begin]
Data.Loop
 Nov.DS.Object.Rename %NDOUPath%\%AccountName%, %NewAccountName%
 Nov.GW.Account.Reconnect %GW_DomainDataBasePath%,%GW_PostOffice%,%AccountName%,%NDOUPath%\%NewAccountName%
Data.EndLoop   
[Batch_End]

[Data_Begin]
AccountName1   NewAccountName1
AccountName2   NewAccountName2   
AccountName3   NewAccountName3
[Data_End]