Configures IBM® Directory (LDAP) for Directory enabled System V print. It also configures client machines to use the Directory for System V print information.
To configure the IBM Directory to store System V Print information:
mkprtldap -s -a AdminDN -p Adminpasswd -w ACLBindPasswd [-f] [-d nodeDN]
To configure clients to use the IBM Directory for System V Print information:
mkprtldap -c -h DirectoryServerHostname -w ACLBindPasswd [ -d PrintBindDN ] [-U]
To get usage information for the mkprtldap command:
mkprtldap ?
The mkprtldap command configures the IBM Directory (LDAP) server, and one or more clients to use the Directory (LDAP) for System V Print information. This command must be run on the system being setup as the server and on all the client systems. Once the Directory (LDAP) server is configured for System V print, the directory enabled System V Print commands (dslpadmin, dslpaccess, dslpsearch, dslpenable, dslpdisable, dslpaccept, lp, lpstat, cancel and dslpreject ) must be run to add , remove and manage System V print information (printers and print queues) on the Directory (LDAP) server. The mkprtldap command configures client machines to use the Directory (LDAP) server for System V print information.
Server
Item | Description |
---|---|
-a AdminDN | Specifies the Directory (LDAP) Administrator's DN. |
-d nodeDN | This advanced option requires a valid existing node DN on the Directory under which the AIX Information tree and Print Subtree will be created. |
-f | The force flag is required by the mkprtldap command to force the creation of the Print subtree (and AIX Information subtree if needed) when one or more AIX Information trees exist on the Directory. |
-p adminpasswd | Specifies the Directory (LDAP) Administrator's password. |
-s | Indicates the command is being run to configure the Directory for System V print. |
-w ACLBindPasswd | Specifies the password to ACL protect the Print Subtree on the Directory. Select a password value that is difficult for people or password cracking programs to guess. |
Client
Item | Description |
---|---|
-c | Indicates the command is being run to configure clients to use the Directory for System V Print information. |
-d PrintBindDN | Specifies the Print Bind DN. The default Print Bind DN is ou=print,cn=aixdata. The Print Bind DN to use during Client configuration is displayed at the end of the server setup of the mkprtldap command. |
-h DirectoryServerHostname | Hostname of the IBM Directory server setup to store System V Print information. |
-U | Undo a previous configuration of a client. |
-w ACLBindPasswd | The ACL Bind Password for the print subtree. The ACL Bind password is specified during the server setup of the mkprtldap command. The value of the ACL Bind Password must match the one used during the setup of the Directory server. |
Usage
Item | Description |
---|---|
? | Displays usage information for the mkprtldap command. |
This command can be run by the root user only.
mkprtldap -s -a cn=admin -p passwd -w pass123wd
mkprtldap -a cn=admin -p passwd -w acl123passwd -d o=ibm,c=us
Running
the command will create an AIX Information
tree (cn=aixdata) under the o=ibm,c=us object. The
print subtree will be created under this new object (cn=aixdata, o=ibm, c=us).mkprtldap -a cn=admin -p passwd -w passwd123 -f
Running
the command will create a new AIX Information
tree (cn=aixdata) with the suffix (cn=aixdata) and the
print information will be 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 mkprtldap, it is recommend to use
the default location to add the print information to the Directory.
mkprtldap -c -h server.ibm.com -w passwd
Please
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 at the end of running
the mkprtldap command to configure the server. mkprtldap -c -h server.ibm.co.uk -w aclpasswd -d ou=print,cn=aixdata,c=uk
Executing
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 will
stored in the /etc/ldapsvc/server.print.save and /etc/ldapsvc/system.print.save files.
Mode | File | Description |
---|---|---|
rw | /etc/slapd32.conf | (Server configuration) - Contains the IBM Directory (LDAP Version 5.2) configuration information. |
rw | /home/ldapdb2/idsslapd-ldapdb2/etc/ibmslapd.conf | (Server configuration) - Contains the IBM Directory (LDAP Version 6.0 or later) configuration information. |
rw | /etc/ldapsvc/server.print | (Client configuration) - Contains information about the Directory Server configured to store System V Print information. (Machine name, Location of Print subtree on the Directory and LDAP port) |
rw | /etc/ldapsvc/system.print | (Client configuration) - Contains the ACL Bind Password for the Print subtree on the Directory. |