Configure Ezeelogin to authenticate using Windows_AD(Pam-Ldap) in ubuntu?
Configure Ezeelogin to authenticate using Windows_AD(Pam-LDAP) in Ubuntu 16.x, 18.x, 20.x, 22.x ?
Overview: This article provides steps to integrate Windows-AD (PAM-LDAP) in Ubuntu for SSH authentication via Ezeelogin. It includes PHP-LDAP installation, LDAP configuration through the web GUI, and setting up PAM_LDAP for SSH access, ensuring seamless LDAP user import and configuration verification.
Integration of WINDOWS-AD (PAM-LDAP) in Ubuntu
Make sure that the PHP-LDAP extension is installed on the server. Replace the PHP version in the below command.
Step 1. Login to Web-GUI > open settings > LDAP
Add the details of LDAP configurations & Check the Windows Active Directory.
Step 2. Open Settings -> General -> Authentication -> Change web panel authentication to LDAP & Check External SSH Auth
Step 3. Select the LDAP users and import them to Ezeelogin.
You can confirm the imported LDAP users were listed in the Users
Now you can log in to ezeelogin with LDAP user in ezeelogin GUI
![](https://www.ezeelogin.com/kb/assets/img_663919a67c1dc.png)
After importing the users to Ezeelogin, log in with the user and set up the security code for the user under Account > Password > New Security Code.
Step 4. Make sure that UNIX ATTRIBUTES is enabled on WINDOWS(2003,2008,2012) SERVER
You do not need to install unix attributes on Windows 10 and Windows 2016 server OS.
Login to the Windows server and open the Command Prompt. Enter the following command:
Reboot the server to complete the installation
Step 5. Make sure to add the values for UID, GID, Login Shell, Home Directory
![](https://www.ezeelogin.com/kb/assets/Win-AD/win-2012.png)
Let's configure PAM_LDAP Authentication for SSH
base OU=developers,DC=adez,DC=com
uri ldap://192.168.1.15
binddn cn=admin,dc=eztest,dc=net
bindpw chaSD@#234JH56hj^7
In Ubuntu 16.x, run the command " ln -s /etc/ldap /etc/openldap" as well.
root@jumpserver:~# cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat ldap
group: compat ldap
shadow: compat ldap
hosts: files mdns4_minimal [NOTFOUND=return] dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
root@jumpserver:~# vi /etc/pam.d/common-password
#look for the lines starting with the password and add the line below to enable authentication via LDAP.
password [success=1 user_unknown=ignore default=die] pam_ldap.so use_authtok try_first_pass
Ensure the login shell of LDAP user is /usr/local/bin/ezsh
Run an LDAP search to check the values returned from your AD server as follows. This is used for troubleshooting. Ensure that it returns the values of uid, gid, home directory, and login shell.
Troubleshooting Steps
ERROR: Could not authenticate with any LDAP server
ERROR: Could not bind to any LDAP server: 80090308
Error log file and configuration file to troubleshoot.
Related Articles
How do I configure Ezeelogin to authenticate using Windows_AD(Pam-LDAP) in CentOS
Assigning user group for LDAP users?
Can we map existing user group in ldap to ezeelogin as ezeelogin user group ?