Result: Leave empty to use the Administrator in LDAP Settings
calling ldap_connect with: "192.168.0.3" and port "389"
setting LDAP_OPT_PROTOCOL_VERSION to 3 and LDAP_OPT_REFERRALS to 0
binding to ldap with "admin@***.local" and his password
using the filter: "(&(sAMAccountName=osticket))"
calling ldap_search with the domain: "DC=***,DC=local", the Filter: "(&(sAMAccountName=osticket))" and the Attributes: "array("telephonenumber")"
LDAP returned field data: "1234567"
Debug of function ldapGetEmail():
getting the email of user: "osticket"
binding to ldap with "admin@***.local" and his password
calling ldap_search with the domain: "DC=***,DC=local", the Filter: "(&(sAMAccountName=osticket))" and the Attributes: "array("mail")"
LDAP returned field data: "osticket@mail.***.ru"
Debug of function ldapGetUsernameFromEmail():
getting the user of email: "osticket@mail.***.ru"
binding to ldap with "admin@elara.local" and his password
calling ldap_search with the domain: "DC=***,DC=local", the Filter: "(&(mail=osticket@mail.***.ru))" and the Attributes: "array("sAMAccountName")"
LDAP returned field data: ""
LDAP returned field data: "" could not determine the