2.4.4 Changing the log location in the command line

The access and error log files' names and locations can be changed to rotate the files. This rotation has to be done manually to create new files if the existing log files become too large. The location can be changed if the default location in /var/opt/dirsrv/admin-serv/logdoes not meet the application needs.

The Admin Server configuration is stored in two locations. The main entry is an LDAP entry in the Configuration Directory Server's o=NetscapeRoot database. The other is the console.conf file. Changing the log settings requires changing both settings.

1.Edit the Admin Server configuration entry in the Configuration Directory Server.

a.Get the name of the Admin Server entry. Because the Admin Server entry has a special object class, nsAdminConfig, it is possible to search for the entry using that object class to retrieve the DN.

ldapsearch -D "cn=directory manager" -w secret -p 389 -h server.example.com \ -b "o=NetscapeRoot" "(objectclass=nsAdminConfig)" dn

version:1

dn: cn=configuration, cn=admin-serv-example, cn=HPDS Administration Server, cn=Server Group, cn=server.example.com, ou=example.com, o=NetscapeRoot

b.The Admin Server entry can be edited using ldapmodify. The access and error log settings are stored in the nsAccessLogs and nsErrorLogs attributes, respectively. For example:

ldapmodify -D "cn=directory manager" -w secret -p 389 -h server.example.com

dn: cn=configuration, cn=admin-serv-example, cn=HPDS Administration Server, cn=Server Group, cn=server.example.com, ou=example.com, o=NetscapeRoot

changetype:modify

replace:nsAccessLog nsAccessLog:/var/opt/dirsrv/admin-serv/log/access_new

Click Enter twice to submit the operation, then Control-Cto close ldapmodify.

2.Open the Admin Server configuration directory. cd /etc/opt/dirsrv/admin-serv

3.Edit the console.conf file. For the access log, edit the path and file name in the CustomLog parameter. For the error log, edit the path and file name in the ErrorLog parameter.

CustomLog /var/opt/dirsrv/admin-serv/log/access_new common ErrorLog /var/opt/dirsrv/admin-serv/log/error_new

Leave the term common after the access log path; this means that the access log is in the Common Log Format.

4.Restart the Admin Server.

/opt/dirsrv/sbin/restart-ds-admin

2.5Changing the port number

The port number specifies where an instance of Admin Server listens for messages.

The default port number for Admin Server is set when the instance is first installed and the configuration script, such as setup-ds-admin.pl, is run. The default port number is 9830, although if that number is in use, then the setup program will use a randomly-generated number larger than 1024 or one can assign any port number between 1025 and 65535.

2.5.1Changing the port number in the console

1.Open the Admin Server management window.

2.Click the Configuration tab.

2.5 Changing the port number 13

Page 13
Image 13
HP UX Direry Server manual Changing the port number, Changing the log location in the command line

UX Direry Server specifications

HP UX Directory Server is a robust and scalable solution designed for managing directory information within enterprise networks. Developed by Hewlett-Packard (HP), this server offers an extensive set of features tailored to meet the needs of organizations that require an efficient way to store, manage, and retrieve identity and access data.

One of the key features of HP UX Directory Server is its ability to handle large directories with significant volumes of data. Built on a highly optimized architecture, it provides excellent performance and can support millions of entries without sacrificing speed or reliability. This capability makes it an ideal choice for large-scale deployments in enterprises that require high availability and responsiveness.

In addition to its scalability, HP UX Directory Server supports a wide range of protocols, including LDAP (Lightweight Directory Access Protocol), which ensures seamless integration with diverse applications and systems across various platforms. The server maintains standards compliance, which facilitates interoperability and simplifies administration tasks.

Security is a top priority for HP UX Directory Server, offering an array of features to protect sensitive information. It supports secure data transmission via TLS/SSL protocols, ensuring encrypted communication between clients and servers. Advanced access controls allow administrators to define fine-grained permissions, helping to safeguard directory data against unauthorized access.

Another salient feature of HP UX Directory Server is its replication capabilities. The server can replicate directory data across multiple instances, ensuring data consistency and availability in distributed environments. This feature is essential for businesses operating across different geographical locations or requiring failover solutions for disaster recovery.

HP UX Directory Server also comes equipped with tools for data management, including an intuitive administration console for configuring and monitoring the server. Additionally, it offers customizable schema capabilities, enabling organizations to tailor the directory structure to fit their specific needs.

Integration with existing identity management solutions is streamlined through connectors and APIs, allowing organizations to extend their directory services and enhance user experience.

In summary, HP UX Directory Server is a powerful directory management solution that combines scalability, security, and integration flexibility. Its support for industry standards, advanced replication, and comprehensive administrative tools makes it an essential asset for organizations seeking to manage identity and access efficiently. By leveraging this technology, businesses can improve their operational efficiency and ensure a secure and organized approach to directory management.