> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.generaltranslation.app/llms.txt
> Use this file to discover all available pages before exploring further.

> Describes how to map AD/LDAP profile attributes to Auth0 user profile attributes using the Profile Mapper in the Connector Admin Console.

# Map AD/LDAP Profile Attributes to Auth0 User Profile

You can modify the mapping of profile attributes from AD/LDAP attributes to attributes in the Auth0 user profile.

1. From a browser, go to `http://localhost:8357` to launch the **Connector Admin Console** on the AD/LDAP Connector server.
2. Click **Profile Mapper** to open a code editor screen which maps attributes from a source directory service (represented by the `raw_data` variable) to a variable that gets returned to populate the Auth0 user profile.
   The first part of the function instantiates a variable called `profile` and has a mapping for the core portion of the Auth0 User Profile. Additional attributes can be set below that using syntax in the form:
   `profile['department'] = raw_data['companydept'];`
   In this example, `department` is the name of the attribute in the Auth0 user profile and `companydept` is the name of the attribute in the source directory service (such as AD).
3. Click **Save** when you are done modifying the LDAP configuration.
4. After the Connector runs the tests, ensure that all the tests are green.

<table class="table">
  <thead>
    <tr>
      <th>Test</th>
      <th>Description</th>
      <th>Troubleshoot</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>Test 1</td>
      <td>Attempts to establish a TCP connection to the LDAP server and port specified.</td>
      <td>Check basic network connectivity and firewall settings that might prevent such a connection.</td>
    </tr>

    <tr>
      <td>Test 2</td>
      <td>Attempts to perform an LDAP bind on the LDAP server and port specified and with the username and password provided.</td>
      <td>Check the LDAP connection string, search path, username and password.</td>
    </tr>

    <tr>
      <td>Test 3</td>
      <td>Attempts to perform an LDAP search against the directory to check the privileges of the specified username.</td>
      <td>Check the privileges of the username in the target directory.</td>
    </tr>

    <tr>
      <td>Test 4</td>
      <td>Attempts to establish a connection to the Auth0 server.</td>
      <td>Check network connectivity and firewall settings that might prevent such a connection.</td>
    </tr>
  </tbody>
</table>
