• No results found

Importing Configuration and Script Files

15.1 Logging

16.1.3 Importing Configuration and Script Files

16.1.1

Modifying the ice.conf File

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.conf file  in the /etc/opt/novell/eDirectory/conf/ directory. You modify the ice.conf 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 the 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 that ice.conf 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.

16.1.2

Enabling Clear-Text Passwords

Clear‐text passwords should be enabled in the LDAP group object to avoid LDAP bind operation  failure. You can do this by using iManager.

16.1.3

Importing Configuration and Script Files

You can use the ICE zone handler, (named.conf file) along with the corresponding zone master files  can be migrated to Novell eDirectory, or a script file can be formed 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 the zone import with  a “done:” token at the beginning of zones imported successfully. If an import fails for a particular  zone, the corresponding output script file generated not have a “done:” token for that particular zone  and the script file can be reused to import the failed zone later.

Command Line Parameters for ICE Zone Import

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}

Options Descriptions

-f <input file> The absolute name of the input file. The input file can be either a configuration file (typically named.conf) or a script file. The type of the file passed is specified with the –t option.

-t {scr | conf} The type of the file passed with the –f option. scr is used to indicate that a script file is being passed and conf is used to indicate that a configuration file is being passed. scr is the default option used when – t is not specified.

-l <log file name> The name of the log file where the messages are logged. By default, the /etc/opt/novell/named/zoneimp.log file is created. If any error is encountered, the important messages are printed on the ICE screen. -x <zone context> The context under which the zone objects are created.

-b <DNS Server DN> The distinguished name of the DNS server in Novell eDirectory. The imported zones are associated with this DNS server. This is required to link the imported zone objects to the DNS server and vice versa. -r The zone object, if already present, should be replaced. If this option is

not specified, the existing zone objects are not disturbed. -s <LDAP server name> The LDAP server name or IP address to which the zone and

configuration information are imported. The default is the local machine (127.0.0.1/”local host”).

NOTE: The server name specified here should be the same as the name specified in the destination LDAP handler options (–s option). -p <port no> The port number where the LDAP server is listening. The default value

is 389.

NOTE: The port number specified here should be the same as the port specified in the destination LDAP handler options (–p option).

DNS/DHCP Advanced Features 189 Example for Command Line Options: ice –S ZONE –f /home/user/db/named.conf -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 /home/user/db/novell.com.db; primary zone secondary novell.com 164.1.1.1 /home/user/db/novell.com.db; 

Named.conf File Format:  The handler supports BIND 9.2 named.conf format only. It interoperates 

with Novell extended attributes in the named.conf 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.

Related documents