The source and destination handlers available to the application, with other information such as the version of the handlers and the modes in which they operate, must be provided in the ice.cfg file in the sys:\system directory. You modify the ice.cfg file by appending the zone handler information.
[Zone]
Version 1.0
Mode: FromFile, FromServer, ToFile
Module name: zone
Flags: 1
The mode is used to convey the information about the functionality supported by the handler. In the example above, the mode is FromFile, FromServer, ToFile because zone handler can read from the file, read from the server, and write to the file.
The LDAP handler is used to write to the directory. Ensure ice.cfg also contains the following:
[LDAP]
Version: 1.0
Mode: FromServer, ToServer
Module Name: ldaphdlr
Flags: 1
The module name specifies the handler name. Flags specifies the flags that should be sent to the destination handler. Currently, the only flag available is for LBURP.
Clear-text passwords should be enabled in the LDAP group object to avoid LDAP bind operation failure. You can do this by using ConsoleOne®.
You can use the ICE zone handler to migrate the named.con file, along with the corresponding zone master files, to Novell® eDirectory™, or to form a script file in a particular format. This script file is used to migrate the zone master files of the desired zones, without changing the server and zone configuration information.
The import operation generates an output script file that indicates the status of zone import with a token “done:” at the beginning of zones imported successfully. If an import fails for a particular zone, the corresponding output script file generated will not have a “done:” tag for that particular zone and the script file can be reused to import the failed zone later.
You can access online help for the command line parameters for zone handlers by typing ice –h zone at the system console of the NetWare® server.
You can use the following command line parameters:
Zone Source Handler Parameter: ice –S ZONE –f <input file> [–t scr | conf] –x < zone context> –b <DNS server DN> [–l <log file name>] [–r] [–s <LDAP server name>] [–p <port no>] [–d <bind dn>] [–w <password>] –D {Destination Handler with options }
Table 7-1 Zone Source Handler Parameter Option Description
LDAP Destination Handler Parameter: This can be obtained using the ice –h LDAP command at the system console of the NetWare server.
Example for Command Line Options: ice –S ZONE –f sys:/etc/dns/named.con –t conf –s 164.10.1.1 –x o=novell –b cn=DNS_MYSERVER,o=novell –d cn=admin,o=novell –w mypassword –D LDAP –s 164.10.1.1 –d cn=admin,o=novell –w mypassword
Script File Format: A typical line from a script file contains the following fields.
<type of zone> <zone name> [master server IP] <master file name> [zone context] [comments] /* end of line */
Type of Zone: Primary or Secondary.
Zone Name: The domain name for which the resource records are to be imported.
Master Server IP: The IP address of the master server, if the zone is a secondary zone.
Master File Name: The file that contains the resource records.
Zone Context: The context where the zone object should be created.
Comments: Any ASCII pattern, the first character being a semicolon (;)
For example, primary novell.com sys:etc\dns\novell.com.db; primary zone secondary novell.com 164.1.1.1 sys:etc\dns\novell.com.db;
Named.conf File Format: The handler supports BIND 9.2 named.con format only. It interoperates with Novell-extended attributes in the named.con file. That is, it ignores those attributes during import. The existing BIND4 and BIND8 conf files must be converted to BIND9 format before passing them to this utility.
You can use the ICE zone handler to export the DNS server, zone configuration information, and data from eDirectory and write it to the files.
ice –S ZONE –s<source server> [–p<source LDAP port>] [–d<user name in source server>] [–w<password for source server>] <[–b <DNS Server DN>] [–x <Zone context>]> [–F <LDAP filter>] –D {Destination Handler with options}
Table 7-2 Enter Table Title Here
Destination Handler Options: D ZONE –p <path>
<path> - The path where the output files are created. The files that are created are named.conf and the zone master files, with the corresponding names of the zone objects as in eDirectory.
By default, all zone information is created in the sys: \etc\dns\export volume and files, with names corresponding to the domain names.
For example, ice –S ZONE –b cn=DNS_MYSERVER,o=novell –s 143.72.1.1 –p 389 –d cn=admin,o=novell –w mypassword –D ZONE –p sys:\export\