In order to use LDAP and SAMBA we need to configure the /etc/ldap/slapd.conf file.# Copy the samba.schema file to the OpenLDAP schema directory. cp /usr/share/doc/samba-doc/examples/LDAP/samba.schema.gz /etc/ldap/schema/# Unzip the file. gzip -d /etc/ldap/schema/samba.schema.gz# Open the /etc/ldap/slapd.conf file for editing. vim /etc/ldap/slapd.conf# Add the following lines to the document where the other “include” lines are: include /etc/ldap/schema/samba.schemainclude /etc/ldap/schema/misc.schema# Change the line: access to attribute=userPassword# to: access to attrs=userPassword,sambaNTPassword,sambaLMPassword# Restart OpenLDAP: /etc/init.d/slapd restart If you require help, contact SupportPRO Server Admin
Miscellaneous
LiSt Open Files is a useful and powerful tool that will show you opened files. In Unix everything is a file: pipes are files, IP sockets are files, unix sockets are files, directories are files, devices are files, inodes are files… Useful Examples So in this tangle of files lsof listst files opened by processes running on your system. When lsof is called without parameters, it will show all the files opened by any processes.
If you forgot the custom configuration of the SSH and want to access the server command prompt (shell access) then you can reset the configuration to the default settings by executing the command in the web browser. The WHM provides access to the below script and it will reset the SSH configuration to the default state. http://x.x.x.x:2086/scripts2/doautofixer?autofix=safesshrestart You need to replace the X.X.X.X with the IP of the server. If you require help, contact SupportPRO Server Admin
The default location is /var/lib/mysql You can change mysql data directory by adding the following entries in /etc/my.cnf file datadir=newlocation/path save the file, move the necessary database files from /var/lib/mysql to the new location and restart mysql.
If the Plesk admin password window does not open or you cannot access the password through the GUI, you can retrieve it directly from the server using command-line methods. Below are the steps for both Linux and Windows servers. Retrieve Plesk Admin Password on Linux Server This command displays the encrypted admin password used by Plesk. Retrieve Plesk Admin Password on Windows Server If the Plesk admin password window does not appear, follow these steps: The command retrieves the Plesk administrator credentials directly from the system. Conclusion Using SSH or …
The dig (Domain Information Groper) command is a powerful DNS troubleshooting tool used to query name servers and retrieve detailed information about domain records such as A, MX, NS, TXT, SOA, and more. System administrators widely use dig to diagnose DNS issues, verify domain configurations, and trace DNS resolution paths. What is the DIG Command? The dig command queries DNS servers and displays how a domain name resolves to an IP address. Basic Example This command returns: By default, dig queries your system’s configured resolver, meaning the results may come …
Steps for recovering mysql password are given below: Stop the mysql service. #/etc/init.d/mysql stop Once, the mysql service completely stopped, run the below. #/usr/bin/mysqld_safe skip-grant-tables skip-networking & You will be now able to login without password.
If you’ve forgotten your WordPress admin password, don’t worry—you can easily reset it through your cPanel using phpMyAdmin. Steps are as follows: 1. Log in to cPanel 2. Navigate to phpMyAdmin 3. Click the database associated with your WordPress installation.
Command to find the number of mails in queue exim bpc Command to show configuration file of exim exim bP Command to show the version and configuration file exim bV
How to Install and Configure OpenLDAP Server on Linux (Step-by-Step Guide)
Setting up an LDAP server is essential when you want centralized authentication across multiple systems. Instead of managing local users on every machine, LDAP allows you to maintain a unified directory service. In this guide, we will install and configure OpenLDAP using the slapd service on a Linux server. What is OpenLDAP? OpenLDAP is an open-source implementation of the Lightweight Directory Access Protocol (LDAP). It is widely used for: The main LDAP daemon is called slapd. Step 1: Install OpenLDAP Packages First, update your package list: Now install the required …