How do I configure Ezeelogin to authenticate using Windows_AD(Pam-LDAP) in CentOS?
Integration of WINDOWS-AD (PAM-LDAP) in CentOS 7/6
root@jumpserver:~# yum install php-ldap openldap openldap-clients; apachectl restart
1. Login to Web-GUI > open settings > Ldap
Add the details of LDAP configurations & Check the Windows Active Directory
2. Under Settings > General Settings > Authentication > Change webpanel authentication to LDAP & Check External SSH Auth
3. Select the LDAP users and import them to Ezeelogin
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 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
Enter the below 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.


Let's configure PAM_LDAP Authentication for SSH

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
1. Configure Ezeelogin to authenticate using Windows_AD(Pam-Ldap) in ubuntu