Uploading the project definition to an LDAP server using the command line

After you have configured the LDAP server to host accounting data, you can upload the project definitions to the configured DN in the LDAP server from the command line.

By default, the project definitions are uploaded from the default LDAP project definition path /etc/project/ldap/projdef. You can specify alternate path names using the –d flag with the projctl command.

To upload the project definition file to an LDAP server from the command line, perform the following steps:

  1. Place the file containing the project definitions in the directory /etc/project/ldap/ with name projdef. The directory /etc/project/ldap/ acts as local repository for the LDAP projects and policies.
  2. Run the projctl ldprojs –p –d /etc/project/ldap/ command. This command uploads the projdef file to the default project DN on the LDAP server. To upload projdef to a non-default DN, specify the DN parameter with -p.