> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/pdia-data-integration/10.2-data-integration/advanced-topics-pentaho-data-integration-overview/use-carte-clusters/set-up-a-carte-cluster/carte-cluster-configuration/configure-carte-servers-for-jaas.md). Agents can also search and read this documentation through its [MCP server](https://docs.pentaho.com/~gitbook/mcp).

# Configure Carte servers for JAAS

You can configure Carte to use the Java Authentication and Authorization Service (JAAS) for user authentication. Perform the following steps to configure Carte with JAAS:

1. Modify the following code sample for your LDAP server or properties file environment and save it as `carte-ldap.jaas.conf` in the `openldap` directory of your Carte server:

   ```
   Kettle {
       org.eclipse.jetty.jaas.spi.LdapLoginModule required
       debug="true"
       contextFactory="com.sun.jndi.ldap.LdapCtxFactory"
       hostname="localhost"
       port="389"
       bindDn="cn=admin,dc=example,dc=com"
       bindPassword="admin"
       authenticationMethod="simple"
       forceBindingLogin="true"
       userBaseDn="ou=People,dc=example,dc=com"
       userRdnAttribute="uid"
       userIdAttribute="uid"
       userPasswordAttribute="userPassword"
       userObjectClass="inetOrgPerson";

      };
      
   Kettle2 {
      org.eclipse.jetty.jaas.spi.PropertyFileLoginModule required
      debug="true"
      file="/installs/common/carte.users";
   }; 

   ```

   **Note:** You may want to set the **debug** parameter to `false` in production environments.
2. Add the following options (with updated path) to `Spoon.bat` (Windows) or `spoon.sh` (Linux)

   ```
   -Djava.security.auth.login.config=<your install path>/openldap/carte-ldap.jaas.conf" "-Dloginmodulename=Kettle
   ```
3. Start Carte and visit the server's page. Verify that it does not prompt for BASIC authentication.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.pentaho.com/pdia-data-integration/10.2-data-integration/advanced-topics-pentaho-data-integration-overview/use-carte-clusters/set-up-a-carte-cluster/carte-cluster-configuration/configure-carte-servers-for-jaas.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
