|
There are some differences in how you set up and administer publishing of system distribution directory users to LDAP in V4R3 and V4R4 or later. In V4R3, it involves a manual call to an API, whereas in V4R4 or later, this is automatic.
Step 1) Ensure TCP/IP is configured on your System i. Type in CHGTCPDMN from the command line, press F4, and ensure the host and domain name is set.
Step 2) Ensure SMTP information is configured. Type in CHGSMTPA from the command line, press F4, and verify the user id delimiter. You must press
Enter as this sets the SMTP default information that may be needed for publishing the mail information to LDAP if the user does not have SMTP information in their system distribution directory entry.
Step 3) From System i Operations Navigator, from the initial display of systems, select the system you want to configure, and right click on the system name and select 'Properties'. Then select the 'Directory Services' page.
For V4R3, you will need to enter the LDAP server, directory path, port number and optionally SSL information from the 'Directory Services' dialog. Also ensure you press on the '
Verify' button to verify that the directory path that you specified exists on the LDAP server. If it does not exist, you will get prompted to create the path. If you do not create the path, publishing will not be successful!
For V4R4 or later, select '
Users' from the list that is displayed and then configure your information. Ensure the distinguished name specified under 'Server connection' has sufficient authority to add, change, and remove entries in the LDAP directory. Also ensure you press on the '
Verify' button to verify that the directory path that you specified exists on the LDAP server. If it does not exist, you will get prompted to create the path. If you do not create the path, publishing will not be successful!
Step 4) For V4R4 or later, publishing users is automatically done, so your setup and administration is now complete.
For V4R3, you need to do the following:
Call the Synchronize System Distribution Directory to LDAP API with the *ALL option value.
From the command line, type:
CALL PGM(QDIRSRV/QGLDSSDD) PARM(*ALL 'LDAPuserID' 'LDAPpassword' 'SSLkeyring' 'SSLpassword' 0)
The LDAP user ID must have sufficient authority to add, change, and remove entries in the LDAP directory. If SSL is not configured for the directory server, specify 0 for the SSLkeyring and SSLpassword.
For example, if your LDAP user ID is 'cn=Administrator' and the password is 'xyz' and SSL is not needed, you would do the following:
CALL PGM(QDIRSRV/QGLDSSDD) PARM(*ALL 'cn=Administrator' 'xyz' 0 0 0)
Periodically call QGLDSSDD to synchronize the LDAP directory with the system distribution directory with the *CHG option. The command to synchronize the LDAP directory is:
CALL PGM(QDIRSRV/QGLDSSDD) PARM(*CHG 'LDAPuserID' LDAPpassword' 'SSLkeyring' 'SSLpassword' 0)
The CL program can be run from a job schedule entry to automatically run with scheduled frequency. Use the Add Job Schedule Entry (ADDJOBSCDE) command or the Work with Job Schedule Entries (WRKJOBSCDE) command to automatically schedule jobs. When you go to V4R4, this will no longer be needed as publishing of users is done automatically.
|