How do I configure Ezeelogin to authenticate using Windows_AD(Pam-LDAP) in CentOS?
Integration of WINDOWS-AD (PAM-LDAP) in CentOS 7/6
Overview: This article detailing the steps to integrate WINDOWS-AD (PAM-LDAP) in CentOS 7/6. It includes PHP-LDAP installation, LDAP configuration via web GUI, and setting up PAM_LDAP for SSH access, ensuring seamless LDAP user import and configuration verification.
root@jumpserver:~# yum install php-ldap openldap openldap-clients; apachectl restart
Step 1. Login to Web-GUI > open settings > Ldap
Add the details of LDAP configurations & Check the Windows Active Directory
Step 2. Under Settings -> General Settings -> Authentication -> Change webpanel authentication to LDAP & Check External SSH Auth
Step 3. Select the LDAP users and import them to Ezeelogin
![](https://www.ezeelogin.com/kb/assets/img_663919a67c1dc.png)
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.
Step 4. Make sure that UNIX ATTRIBUTES are enabled on WINDOWS(2003,2008,2012) SERVER
You do not need to install Unix attributes on windows 10, windows 2012 and windows 2016 server OS
Login to Windows server, open Command Prompt, and enter the following command:
Reboot the server to complete the installation
Win 2008 Unix Attributes
Window 2016 AD for a user . Note that the attributes such as uidNumber = 10001 , gidNumber = 12001 , unixHomeDirectory = /home/jake , loginShell=/usr/local/bin/ezsh are set.
![windows 2016 AD](https://www.ezeelogin.com/kb/assets/windows-ad-jake.png)
![windows AD Unix Attributes](https://www.ezeelogin.com/kb/assets/Win-AD/winad-2016-unix-attributes.png)
Let's configure PAM_LDAP Authentication for SSH
![](https://www.ezeelogin.com/kb/assets/ssh%20jumphost%20%20Integrate.png)
If you are using LDAPS, then change SSL to YES
Ensure the login shell of LDAP user is /usr/local/bin/ezsh
root@gateway ~]# finger jake
Login: jake Name: jake
Directory: /home/jake Shell: /usr/local/bin/ezsh
Last login Tue Jul 3 12:23 (IST) on pts/2 from 10.11.1.189
No mail.
No Plan.
root@gateway ~]# id jake
uid=10001(jake) gid=12000 groups=12000
Run a ldapsearch to check the values returned from your AD server as follows. This is used for troubleshooting.
root@gateway ~]# ldapsearch -x -LLL -E pr=200/noprompt -h 10.11.1.164 -D "[email protected]" -w admod_2016 -b "cn=jake,cn=users,dc=ad2016,dc=admod,dc=net"
dn: CN=jake,CN=Users,DC=ad2016,DC=admod,DC=net
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
cn: jake
givenName: jake
distinguishedName: CN=jake,CN=Users,DC=ad2016,DC=admod,DC=net
instanceType: 4
whenCreated: 20180703063304.0Z
whenChanged: 20180703063554.0Z
displayName: jake
uSNCreated: 45128
uSNChanged: 45136
name: jake
objectGUID:: ldpkFlnRs0O6irphlTq1AA==
userAccountControl: 512
badPwdCount: 0
codePage: 0
countryCode: 0
badPasswordTime: 0
lastLogoff: 0
lastLogon: 0
pwdLastSet: 131750731848783837
primaryGroupID: 513
objectSid:: AQUAAAAAAAUVAAAAmhs/bgMv2mlWATm4VQQAAA==
accountExpires: 9223372036854775807
logonCount: 0
sAMAccountName: jake
sAMAccountType: 805306368
userPrincipalName: [email protected]
objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=ad2016,DC=admod,DC=net
dSCorePropagationData: 16010101000000.0Z
uidNumber: 10001
gidNumber: 12000
unixHomeDirectory: /home/jake
loginShell: /usr/local/bin/ezsh
# pagedresults: cookie=
Related Articles
Configure Ezeelogin to authenticate using Windows_AD(Pam-Ldap) in ubuntu
How do I configure Ezeelogin to authenticate using OpenLdap(Pam-Ldap) in CentOS ?