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?
Integration of WINDOWS-AD (PAM-LDAP) in Ubuntu
[email protected]:~# apt-get install php5-ldap/php7-ldap /php-ldap
1. Login to Web-GUI > open settings > LDAP
Add the details of LDAP configurations & Check the Windows Active Directory
2. open Settings > General > Authentication > change webpanel authentication to LDAP & Check External SSH Auth
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
After importing the users to Ezeelogin, log in with the user and set up security code for the user under Account > Password > New Security Code.
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 windows server & open command prompt
Enter the below command
Reboot the server to complete the installation
5. Make sure to add the values for UID, GID, Login Shell, Home Directory



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 [email protected]#234JH56hj^7
In Ubuntu 16.x, run the command " ln -s /etc/ldap /etc/openldap" as well.
[email protected]:~# 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
[email protected]jumpserver:~# vi /etc/pam.d/common-password
#look for the lines starting with 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
Now run the id/finger command and see whether you are able to get AD user details
Run an ldapsearch 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.