Share via


Migrate NIS domains

Applies To: Windows Server 2003 R2

To migrate NIS domains

  • Using the Windows interface

  • Using a command line

Using the Windows interface

  1. Open the NIS Data Migration wizard.

  2. Follow the step-by-step directions in the wizard.

Note

To start the NIS migration wizard, click Start, point to All Programs, point to Identity Management for UNIX, and then click Identity Management for UNIX. Click Server for NIS in the navigation pane. With Server for NIS highlighted in the navigation pane, click the NIS Data Migration Wizard command in the Actions pane. You can also click NIS Data Migration Wizard on the Action menu, or right-click Server for NIS, then click NIS Data Migration Wizard on the shortcut menu. Password file entries with names longer than eight characters will not be migrated. Windows user accounts created as a result of the migration are disabled. After performing the migration, you must enable the accounts. For security reasons, it is recommended that you assign a temporary password to these accounts and instruct the affected users to change their Windows password as soon as possible.

Using a command line

The following arguments are required.

Argument Description

-y UNIXNISDomain

Specifies the name of the Network Information Service (NIS) domain that contains the map to migrate.

-a ActiveDirectoryNISDomain

Specifies the NIS domain name in Active Directory.

MapfileToMigrate

Specifies the name of the NIS map source file to migrate. NIS map source files are the plain text files from which the NIS map databases are compiled.

The nis2ad utility accepts the following options.

Option Description

-m

Perform the migration. If this option is omitted, the program finds and reports conflicts but does not actually perform the migration.

-c FileName

Specifies the file where conflict details are written. Uses a default file (%sfudir%\nis\conflicts.log) if not specified.

-t TargetContainer

Specifies the target container name. Applicable only when creating a new NIS domain. If not specified, uses the default or uses the container of the target domain.

-f FileName

Specifies the name of the log file. If not specified, nis2ad uses a default file (%sfudir%\nis\nis2ad.log).

-r yes|no

Replace object in Active Directory with object being migrated. Default is no.

-n

Resolves conflicts by changing the Windows account name in Active Directory. If objects of different types have the same name, the name of both objects is changed before the data is migrated.

-p Password

If needed and if not specified, the user will be prompted.

-d Directory

Specifies the path of the directory that contains NIS map source files.

-s Server

Specifies the domain controller server hosting Active Directory. Otherwise use the current server.

-u User

Specifies the name of the user having administrator privileges on this computer. If not specified, nis2ad uses the current user.

Note

To view the complete syntax for this command, at a command prompt type: nis2ad /? You can migrate only one map at a time using nis2ad. To migrate more than one map at a time, use the NIS Data Migration wizard. Password file entries with names longer than eight characters will not be migrated. Windows user accounts created as a result of the migration will be disabled. After performing the migration, you must enable the accounts. For security reasons, it is recommended that you assign a temporary password to these accounts and instruct the affected users to change their Windows password as soon as possible. Even if you specify another user by using the -u option, the currently logged on user must have write permissions for the folder that will contain the log and conflict files. If necessary, modify the permissions on the folder to grant write access to the user who will be running the nis2ad utility before running the utility.

See Also

Concepts

Understanding NIS Data Migration
nis2ad