> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell/es/remote-desktop-manager-powershell/remote-desktop-manager-macos-enable-integrated-authentication-with-kerberos.md).

# Remote Desktop Manager macOS: habilitar la autenticación integrada con Kerberos

Para usar la autenticación integrada (autenticación de Windows) en macOS, deberá configurar un ***ticket de Kerberos*** que vincule su usuario actual con una cuenta de dominio de Windows. A continuación se incluye un resumen de los pasos clave.

{% hint style="danger" %}
Esta función experimental ha funcionado en nuestras pruebas internas y es una solución alternativa a la función de seguridad integrada, que no funciona en macOS con SQL Server.

Dicho esto, la implementación inicial de Kerberos tenía como objetivo ayudar a nuestra comunidad a utilizar este método de autenticación. Sin embargo, desde la implementación se han realizado múltiples cambios en Kerberos, por lo que es posible que este método esté ahora obsoleto.
{% endhint %}

### Requisito previo: obtener la configuración del controlador de dominio de Kerberos (KDC)

Ofrecemos dos métodos: la detección manual o un script de PowerShell

Ejecutar en: un PC con Windows unido a su dominio de Active Directory. Tenga en cuenta que cualquier dominio de nivel de producción tendrá más de un controlador de dominio. Cualquiera de los siguientes métodos podría responder con un servidor diferente en función de multitud de factores. Prepárese para volver a ejecutar esta detección si el servidor designado deja de estar disponible.

#### Detección manual

{% hint style="info" %}
**nltest.exe** es una utilidad de consola que puede ejecutar mediante el intérprete de comandos básico o PowerShell.
{% endhint %}

Ejecute nltest en el shell de comandos que prefiera.

```powershell
nltest /dsgetdc:%USERDNSDOMAIN%

DC: \\dc-33.domain.company.com
Address: \\2111:4444:2111:33:1111:ecff:ffff:3333

The command completed successfully
```

Copie el nombre del DC, que es el valor de configuración del KDC requerido, en este caso dc-33.domain.company.com

#### Script de PowerShell

Ejecute lo siguiente en una ventana de PowerShell (recuerde que el PC debe estar unido al dominio de destino)

```powershell
$dcinfo = Get-ADDomainController -Discover
Write-Output "Domain name $($dcinfo.Domain)"
Write-Output "Domain Controller $($dcinfo.HostName)"
Write-Output "`nSuggested krb5.conf content`n-----------------------------------------"
Write-Output "[libdefaults]"
Write-Output "default_realm = $($dcinfo.Domain.ToUpper())"
Write-Output "
Write-Output "[realms]`n$($dcinfo.Domain.ToUpper()) = {"
Write-Output "kds = $($dcinfo.HostName)"
Write-Output "}"
```

### Configurar Kerberos en macOS

#### Paso 1: configurar el KDC en krb5.conf

Edite el fichero /etc/krb5.conf con el editor que prefiera; tenga en cuenta que necesita elevar sus privilegios (sudo u otro). Si ha obtenido el resultado del script de PowerShell, simplemente copie las líneas correspondientes. A continuación se indican los pasos necesarios si ha utilizado la detección manual.

{% hint style="warning" %}
El dominio debe estar en MAYÚSCULAS.
{% endhint %}

Configure los siguientes ajustes:

```powershell
[libdefaults]
 default_realm = DOMAIN.COMPANY.COM

[realms]
DOMAIN.COMPANY.COM = {
 kdc = dc-33.domain.company.com
}
```

A continuación, guarde el fichero krb5.conf y salga.

#### Paso 2: probar la obtención del ticket de concesión de tickets

Use el comando kinit <username@DOMAIN.COMPANY.COM> para obtener un TGT del KDC. Se le solicitará su contraseña de dominio.

`kinit username<area>@DOMAIN.COMPANY.COM`

Use klist para ver los tickets disponibles. Si el kinit se ha realizado correctamente, debería ver un ticket.

```
klist

krbtgt/DOMAIN.COMPANY.COM@ DOMAIN.COMPANY.COM.
```

#### Paso 3: conectarse en Remote Desktop Manager

1. Cree un nuevo espacio de trabajo de SQL Server.
2. Rellene la información del espacio de trabajo (nombre y host).
3. Seleccione el modo “ ***Seguridad integrada (Active Directory)*** – ***Experimental*** ”.
4. Seleccione la base de datos.
5. Guarde el espacio de trabajo.

<figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB4792.png" alt=""><figcaption></figcaption></figure>

Si ha seguido todos los pasos anteriores, debería poder conectarse correctamente al espacio de trabajo.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell/es/remote-desktop-manager-powershell/remote-desktop-manager-macos-enable-integrated-authentication-with-kerberos.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
