This section reviews the steps to add the following objects to the LDAP directory:
NOTE:Each LDAP object has two types of attributes: must and may attributes. The must attributes are the minimum requirements for an object. The may attributes are optional. This table lists only those may attributes that are relevant to Novell Linux Point of Service.
organizationalUnit objects were introduced to improve organizational coherence. They typically represent organizational structures such as regions, branches or divisions. Because they can be nested, they can be used to visually represent the structure or organization of your company.
Table 6-2 summarizes the posAdmin command options for organizationalUnit object attributes.
Table 6-2 Command options for creating organizationalUnit objects
Option |
Type |
Description |
---|---|---|
--ou |
must |
The name of the organizational unit; for example, boston. IMPORTANT:Use only alphanumeric characters. |
--description |
may |
A human-readable description of the object. |
The following command adds the boston organizational unit to the LDAP directory (type the command all on one line):
posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base o=mycorp,c=us --add --organizationalUnit --ou boston
The context of the Organizational Unit is ou=boston,o=mycorp,c=us directory.
You can add a description to the boston entry by adding the following option to the command:
--description ‘Central Boston Headquarters'
An scLocation object typically is used to represent a branch office; that is, a site where a Branch Server and Point of Service terminals are located. scLocation containers are used to store information about the deployed Branch Servers and Point of Service terminals. This and all other information that can be modified at the Branch Server should be stored or referenced in the Location containers to limit the need to grant Write privileges to subtrees.
Table 6-3 summarizes the posAdmin command options for scLocation object attributes.
Table 6-3 Command options for creating scLocation objects
The following command adds an scLocation named harbor to the LDAP directory (type the command all on one line):
posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base ou=boston,o=mycorp,c=us --add --scLocation --cn harbor --ipNetworkNumber 192.168.1.0 --ipNetmaskNumber 255.255.255.0 --scDhcpRange 192.168.1.10,192.168.1.50 --scDhcpFixedRange 192.168.1.51,192.168.1.151 --scDefaultGw 192.168.1.254 --scDynamicIp TRUE --scWorkstationBaseName CR --scEnumerationMask 000
There must be an scBranchServer object for every Branch Server in the Novell Linux Point of Service system. These objects store configuration information specific to each Branch Server.
An scBranchServer object contains information about hardware, at least one defined network card, and services like TFTP, DNS, and DHCP. It is located with an scLocation object in the LDAP tree.
IMPORTANT:The location of the scBranchServer object in the LDAP directory
must correspond to the hostname defined for the Admin/Branch
Server during installation. For example, if the hostname is bs in
east.boston.mycorp.us, the dn of the scBranchServer object would
be cn=bs,cn=server, cn=east,ou=boston,o=mycorp,c=us.
For more information on defining the server hostname during installation,
see Network
Interfaces
in the Novell Linux Point
of Service 9 Installation Guide.
Here is the procedure to add an scBranchServer object to the LDAP directory with posAdmin.
Before you can add the scBranchServer to an scLocation object, you must define a scServerContainer.
This is done with the --scServerContainer and common name (--cn) options. For example (type the command all on one line):
posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=east,ou=boston,o=mycorp,c=us --add --scServerContainer --cn server
In the new scServerContainer, add a Branch Server object.
This is done with the --scBranchServer and common name (--cn) options. For example (type the command all on one line):
posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scBranchServer --cn bs
Optionally, you can define the reference hardware with the --scRefServerDn option, a pointer (Distinguished Name) to the global directory.
Add a network interface card with a static IP address from the defined subnet.
This is done with the --scNetworkcard option and the --scDevice and --scIpHostNumber attributes. For example (type the command all on one line):
posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scNetworkcard --scDevice eth0 --ipHostNumber 192.168.1.1
Table 6-4 summarizes the posAdmin command options for scNetworkcard attributes.
Table 6-4 Command options for creating scNetworkcard objects
Set up the Branch Server services. At a minimum, define the required DNS, TFTP and DHCP services.
The following examples demonstrate how to add the DNS, DHCP, and TFTP services.
posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scService --cn dns --ipHostNumber 192.168.1.1 --scDnsName dns --scServiceName dns --scServiceStartScript named --scServiceStatus TRUE
posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scService --cn dhcp --ipHostNumber 192.168.1.1 --scDnsName dhcp --scServiceName dhcp --scServiceStartScript dhcpd --scServiceStatus TRUE
posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs,cn=server,cn=east,ou=boston,o=mycorp,c=us --add - scService --cn tftp --ipHostNumber 192.168.1.1 --scDnsName tftp --scServiceName tftp --scServiceStartScript atftpd --scServiceStatus TRUE
Table 6-5 summarizes the posAdmin command options for the scService object attributes.
Table 6-5 Command options for creating scService objects
A high availability (HA) Branch Server performs the same functions as a standard Branch Server with the following differences:
For information on installing a HA Branch Server pair, see Setting
Up High Availability Branch Servers
in the Novell
Linux Point of Service 9 Installation Guide.
Here is the procedure required to add a HA Branch Server object to the LDAP directory.
Define a scServerContainer.
This is done with the --scServerContainer option and the common name (--cn) attribute. For example (type the command all on one line):
posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=east,ou=boston,o=mycorp,c=us --add --scServerContainer --cn server
In the new scServerContainer, create two Branch Server objects.
The following commands create the BS1 and BS2 Branch Server objects in the scServerContainer.
#\# bs1 posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scBranchServer --cn bs1
#\# bs2 posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --basecn=server,cn=east,ou=boston,o=mycorp,c=us --add --scBranchServer --cn bs2
Add the network interface cards for each Branch Server.
Depending on network traffic and the desired performance,
you can configure one to four network interface cards per Branch
Server. For general information on how the network cards can be
implemented on the network, see Meeting
System Requirements
in the Novell Linux Point
of Service 9 Installation Guide. For specific information
on the network interface card configuration, see Network
Interfaces
in the Novell Linux Point
of Service 9 Installation Guide.
The following examples demonstrate how to add network interface cards for the Branch, DRBD, and Heartbeat interfaces to the LDAP configuration.
#\# eth1 on the BS1 for the Branch Server interface posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs1,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scNetworkcard --scDevice eth1 --ipHostNumber 192.168.1.1
#\# eth1 on BS2 for the Branch Server interface posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs2,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scNetworkcard --scDevice eth1 --ipHostNumber 192.168.1.2
#\# eth1:0 for the Branch Server interface virtual IP posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs1,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scNetworkcard --scDevice eth1:0 --ipHostNumber 192.168.1.3
#\# eth2 on BS1 for the DRBD interface posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs1,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scNetworkcard --scDevice eth2 --ipHostNumber 192.168.2.1
#\# eth2 on BS2 for the DRBD interface posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs2,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scNetworkcard --scDevice eth2 --ipHostNumber 192.168.2.2
#\# eth3 on BS1 for the Heartbeat interface posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs1,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scNetworkcard --scDevice eth3 --ipHostNumber 192.168.3.1
#\# eth3 on BS2 for the Heartbeat interface posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs2,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scNetworkcard --scDevice eth3 --ipHostNumber 192.168.3.2
Table 6-6 summarizes the posAdmin command options for scNetworkcard object attributes.
Table 6-6 Command options for creating scNetworkcard objects
Add DNS, DHCP, and TFTP as HA services.
The following commands demonstrate how to add DNS, DHCP, and TFTP as HA services.
#\# DNS on BS1 as primary service posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs1,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scHAService --cn dns --ipHostNumber 192.168.1.3 --cDnsName dns --scServiceName dns --scServiceStartScript named --scServiceStatus TRUE --scPrimaryService TRUE
#\# DHCP on BS1 as primary service posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs1,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scHAService --cn dhcp --ipHostNumber 192.168.1.3 --scDnsName dhcp --scServiceName dhcp --scServiceStartScript dhcpd --scServiceStatus TRUE --scPrimaryService TRUE
#\# TFTP on BS1 as primary service posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs1,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scHAService --cn tftp --ipHostNumber 192.168.1.3 --scDnsName tftp --scServiceName tftp --scServiceStartScript atftpd --scServiceStatus TRUE --scPrimaryService TRUE
#\# DNS on BS2 as backup service posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs2,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scHAService --cn dns --ipHostNumber 192.168.1.3 --scDnsName dns --scServiceName dns --scServiceStartScript named --scServiceStatus TRUE - scPrimaryService FALSE
#\# DHCP on BS2 as backup service posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs2,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scHAService --cn dhcp --ipHostNumber 192.168.1.3 --scDnsName dhcp --scServiceName dhcp --scServiceStartScript dhcpd --scServiceStatus TRUE --scPrimaryService FALSE
#\# TFTP on BS2 as backup service posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base cn=bs2,cn=server,cn=east,ou=boston,o=mycorp,c=us --add --scHAService --cn tftp --ipHostNumber 192.168.1.3 --scDnsName tftp --scServiceName tftp --scServiceStartScript atftpd --scServiceStatus TRUE --scPrimaryService FALSE
Table 6-7 summarizes the posAdmin command options for scHAService object attributes.
Table 6-7 Command options for creating scHAService objects