Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

auth-ldap: Issue with CN containing comma

osTicket version: v1.9.5.1

The auto-fill functionality (the automatic filling in of E-mail, Full Name, Phone Number, etc) of the 'Lookup or create a user' dialog that appears when creating a 'New Ticket' does not appear to work for users that have a comma in the CN

For example, this user's info will not auto-fill:

CN=Doe\, John - jdoe,OU=Users,OU=HRM,OU=Departments,DC=mycompany,DC=com

Typing 'john' as a search term, the name and e-mail address will appear, however selecting the name does not transfer data to the fields

Alternatively this user does work (no comma in the CN):

CN=test,OU=Users,OU=HRM,OU=Departments,DC=mycompany,DC=com

Watching the AJAX request for John Doe, I can see:

http://mycompany.com/osticket/scp/ajax.php/users/select/auth:ldap:CN=Doe\, John - jdoe,OU=Users,OU=HRM,OU=Departments,DC=mycompany,DC=com (decoded)

With a response of: 'User not found'

The string does appear to carry the proper escaping \

I was able to reproduce this in both a production AD environment and a fresh AD set up for testing

I extracted the PHAR and looked at the Net_LDAP2's ldap_explode_dn() function-- and don't see anything glaringly wrong with the preg's

Do you know what else in the phar might be causing the issue?

Comments

Sign In or Register to comment.