LDAP Authentification sAMAccountname with dots

Scripts which allow the use of special authentication methods (LDAP, AD, MySQL/PostgreSQL, etc).

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
czahn
OpenVpn Newbie
Posts: 1
Joined: Sun Jan 07, 2018 12:25 am

LDAP Authentification sAMAccountname with dots

Post by czahn » Sun Jan 07, 2018 12:30 am

Hello,

i've a Problem with LDAP (AD) Authentification. If i use a user without a dot in the unsername all works fine. If i use firtname.lastname it does not work.

Code: Select all

root@openvpnas2:/usr/local/openvpn_as/scripts# ./authcli --user vorname.nachname --pass xxxxxxxxx
API METHOD: authenticate
AUTH_RETURN
  status : FAIL
  reason : LDAP exception on ldap://10.0.0.202/ (facility='search (u'CN=Users, DC=domain, DC=eu', 2, '(userPrincipalName=vorname\\2enachname)')'): {'info': "0000208D: NameErr: DSID-03100238, problem 2001 (NO_OBJECT), data 0, best match of:\n\t'DC=domain,DC=eu'\n", 'matched': 'DC=domain,DC=eu', 'desc': 'No such object'}: auth/authldap:122,ldap/ldapobject:591,ldap/ldapobject:503,ldap/ldapobject:507,ldap/ldapobject:514,ldap/ldapobject:521,ldap/ldapobject:106 (ldap.NO_SUCH_OBJECT)
  user : vorname.nachname
Some Ideas ?

THX

Christian

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: LDAP Authentification sAMAccountname with dots

Post by TinCanTech » Sun Jan 07, 2018 1:40 pm

czahn wrote:
Sun Jan 07, 2018 12:30 am
root@openvpnas2
Is this OpenVPN Access Server ?

Post Reply