System V print examples
Examples for common scenarios are provided.
- To configure a new installation of IBM® Directory for System V print with the
administrator DN cn=root and root password, enter:
where aclBindpassword the is the password used so that the ACL protects the print subtree. The ACL bind password is specified during the configuration of System V print on the directory. This configuration also sets the directory administrator's DN and password to cn=root and root. Running the command sets up a suffix and top-level container object cn=aixdata. The print subtree (ou=print) is created under this AIX® information tree (cn=aixdata object).mkprtldap -s -a cn=root -p root -w aclBindpassword
- To configure System V print on a machine with a configured IBM Directory
server, the administrator DN and password are required. For example, if the
existing administrator's DN and password are cn=admin and passwd,
enter:
mkprtldap -s -a cn=admin -p passwd -w pass123wd
- To configure System V print under a preexisting node on the IBM Directory
server (for example, o=ibm,c=us), the mkprtldap command
provided the -d flag option. This is an advanced option recommended
only when it is necessary to store the print information under an existing
node on the directory. The recommended option is to store the print subtree
in the default location on the directory by not specifying the -d option.
The administrator DN and password are required to configure System V print on the directory. Assume the existing administrator's DN and password are cn=admin and passwd. Enter:
mkprtldap -a cn=admin -p passwd -w acl123passwd -d o=ibm,c=us
Running the command creates an AIX information tree (cn=aixdata) under the o=ibm,c=us object. The print subtree is created under this new object (cn=aixdata, o=ibm, c=us).
- To configure System V print information under a separate AIX information
tree when the directory contains an existing AIX information tree for other subsystem-specific
information. There could be situations in which the directory may contain
an existing AIX information
tree with Security or NIS information. It may be necessary to store the print
information in a separate location on the directory under a different AIX information
tree. By default,the mkprtldap command does not create
an AIX information
tree if one exists on the directory. To force the mkprtldap command
to create an AIX information
tree to store the print information,use the -f flag.
Consider an example where the security and NIS subsystem information is stored under the AIX information tree at cn=aixdata,o=ibm,c=us. To create a new AIX information tree for print information different from the existing one, run the command with the -f flag and specify the default location or another node.
The Administrator DN and password are required to configure System V print on the directory. For example, if the existing administrator's DN and password are cn=admin and passwd, enter:
mkprtldap -a cn=admin -p passwd -w passwd123 -f
Running the command creates an AIX information tree (cn=aixdata) with the suffix (cn=aixdata) and the print information is stored under this new AIX information tree (ou=print, cn=aixdata). There will be two AIX information trees on the directory in this example: cn=aixdata,o=ibm,c=us and cn=aixdata. The print information will be under the cn=aixdata object (suffix - cn=aixdata). For the mkprtldap command, it is recommended to use the default location to add the print information to the directory.
- To configure a client to use IBM Directory setup for System V Print on
host server.ibm.com, enter:
mkprtldap -c -h server.ibm.com -w passwd
Ensure that the ACL bind password (passwd) is the same as the one specified during the setup of the Directory server. Running the command without specifying a print bind DN value with the -d option will cause the command to use the default print bind DN ou=print,cn=aixdata. The Print Bind DN must match the one displayed as a result end of running the mkprtldap command when you configure the server.
- To change the information in the client-side configuration files, run
the mkprtldap command with the new information. Enter:
mkprtldap -c -h server.ibm.co.uk -w aclpasswd -d ou=print,cn=aixdata,c=uk
Running this command on a client that has already been configured will change the information in the /etc/ldapsvc/server.print and /etc/ldapsvc/system.print files to contain the new configuration information. The original contents of the /etc/ldapsvc/server.print and /etc/ldapsvc/system.print files will be stored in the /etc/ldapsvc/server.print.save and /etc/ldapsvc/system.print.save files.