I'm having trouble with LDAP authentication on a Proxmox 5.2 server. Everything appears to be configured properly but users are still unable to authenticate even though ldapsearch query works without any issues from Proxmox console. daemon.log on server are showing the following:
Nov 7 16:28:03 pve1 pvedaemon[35313]: authentication failure; rhost=xxx.xxx.xxx.xxx user=username@EXAMPLE.COM msg=no such user ('username@EXAMPLE.COM')
Here is the content of the host domain.cfg
root@xxx:/etc/pve# cat /etc/pve/domains.cfg
pve: pve
comment Proxmox VE authentication server
pam: pam
comment Linux PAM standard authentication
ldap: EXAMPLE.COM
comment LDAP authentication
base_dn cn=users,cn=accounts,dc=example,dc=com
server1 ipa.example.com
user_attr uid
default 0
port 389
secure 0
ldapsearch -x -W -b "cn=users,cn=accounts,dc=example,dc=com" -D "cn=Directory Manager"
# extended LDIF
#
# LDAPv3
# base <cn=users,cn=accounts,dc=example,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# users, accounts, example.com
dn: cn=users,cn=accounts,dc=example,dc=com
objectClass: top
objectClass: nsContainer
cn: users
::
::
# search result
search: 2
result: 0 Success
# numResponses: 30
# numEntries: 29
I also attempted to authenticate by setting <bind_dn uid=sys-ldap,cn=sysaccounts,cn=etc,dc=example,dc=com> then add the bind user password to /etc/pve/priv/ldap/example.com.pw without success. Any insight/assistance will be greatly appreciated.
Nov 7 16:28:03 pve1 pvedaemon[35313]: authentication failure; rhost=xxx.xxx.xxx.xxx user=username@EXAMPLE.COM msg=no such user ('username@EXAMPLE.COM')
Here is the content of the host domain.cfg
root@xxx:/etc/pve# cat /etc/pve/domains.cfg
pve: pve
comment Proxmox VE authentication server
pam: pam
comment Linux PAM standard authentication
ldap: EXAMPLE.COM
comment LDAP authentication
base_dn cn=users,cn=accounts,dc=example,dc=com
server1 ipa.example.com
user_attr uid
default 0
port 389
secure 0
ldapsearch -x -W -b "cn=users,cn=accounts,dc=example,dc=com" -D "cn=Directory Manager"
# extended LDIF
#
# LDAPv3
# base <cn=users,cn=accounts,dc=example,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# users, accounts, example.com
dn: cn=users,cn=accounts,dc=example,dc=com
objectClass: top
objectClass: nsContainer
cn: users
::
::
# search result
search: 2
result: 0 Success
# numResponses: 30
# numEntries: 29
I also attempted to authenticate by setting <bind_dn uid=sys-ldap,cn=sysaccounts,cn=etc,dc=example,dc=com> then add the bind user password to /etc/pve/priv/ldap/example.com.pw without success. Any insight/assistance will be greatly appreciated.