
Likewise Open simplifies the necessary configuration needed to authenticate a Linux machine to an Active Directory domain. Based on winbind, the likewise-open package takes the pain out of integrating Kubuntu authentication into an existing Windows network.
Existen dos formas de utilizar Likewise Open: la utilidad likewise-open de la línea de comandos y likewise-open-gui. Esta sección se enfoca en la utilidad de línea de comandos.
Para instalar el paquete likewise-open abra un terminal e introduzca:
sudo apt-get install likewise-open
Starting with Kubuntu 9.04, Likewise Open 5.0 is available in the Universe repository. However, since upgrading from Likewise Open 4.1 currently requires the system to leave the domain and re-join, a separate package for version five was created.
Para instalar Likewise Open 5.0, introduzca:
sudo apt-get install likewise-open5
Warning
Installing likewise-open5 over an existing likewise-open (4.1) installation will replace it. The domain will have to be rejoined after install.
The main executable file of the likewise-open package
is /usr/bin/domainjoin-cli
, which is used to join a
computer to the domain. Before joining a domain, the following are needed:
Acceso a un usuario de Active Directory con privilegios apropiados para ingresar en el dominio.
The Fully Qualified Domain Name (FQDN) of the domain being joined. If the AD domain does not match a valid domain such as example.com, it is likely that it is in the form of domainname.local.
DNS for the domain set up properly. In a production AD environment, this is typically the case. Proper Microsoft DNS is needed so that client workstations can determine that the Active Directory domain is available.
If there is not a Windows DNS server on the network, see the section called “Microsoft DNS” for details.
Para unirse a un dominio, introduzca en un terminal:
sudo domainjoin-cli join ejemplo.com Administrador
Note
Replace example.com with the proper domain name, and Administrator with the appropriate user name.
There will be a prompt for the user's password. If all goes well, a SUCCESS message should be printed to the console.
Note
Después de unirse al dominio, es necesario reiniciar antes de intentar autenticarse contra el dominio.
After successfully joining an Kubuntu machine to an Active Directory domain, any valid AD user can be used to authenticate. To login, the user name must be entered as 'domain\username'. For example to ssh to a server joined to the domain, enter:
ssh 'ejemplo\pedro'@nombredelequipo
Note
If configuring a Desktop, the user name will need to be prefixed with domain\ in the graphical logon as well.
To make likewise-open use a default domain, the following statement can be added
to /etc/samba/lwiauthd.conf
:
winbind use default domain = yes
A continuación, reinicie los demonios de likewise-open:
sudo /etc/init.d/likewise-open restart
Note
Once configured for a default domain, the 'domain\' is no longer required. Users can login using only their username.
La utilidaddomainjoin-cli también puede utilizarse para abandonar un dominio. Introduzca en un terminal:
sudo domainjoin-cli leave
El paquete likewise-open viene con otras pocas herramientas que pueden ser utilizas para recopilar información sobre el entorno de Active Directory. Éstas herramientas son utilizadas para unir la maquina a un dominio, y son las mismas que las que están disponible en los paquetes samba-common y winbind:
lwinet: Devuelve información sobre la red y el dominio.
lwimsg: Permite la interacción con el demonio likewise-winbindd.
lwiinfo: Muestra información sobre varias partes del dominio.
Consulte las páginas de manual de cada utilidad para obtener información más específica.
If the client has trouble joining the domain, check that the Microsoft DNS is listed first in
/etc/resolv.conf
. For example:nameserver 192.168.0.1
Para más información cuando se una a un dominio, use las opciones --loglevel verbose o --advanced de la utilidad domainjoin-cli:
sudo domainjoin-cli --loglevel verbose join ejemplo.com Administrador
Si un usuario de Active Directory tiene problemas al conectarse, consulte
/var/log/auth.log
para más información.When joining an Kubuntu Desktop workstation to a domain, it may be necessary to edit
/etc/nsswitch.conf
if the AD domain uses the .local syntax. In order to join the domain, the "mdns4" entry should be removed from the hosts option. For example:hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
Cambie lo anterior por:
hosts: files dns [NOTFOUND=return]
Y reinicie la red tecleando:
sudo /etc/init.d/networking restart
It should now be possible to join the Active Directory domain.
Las siguientes instrucciones son para la instalación de DNS en un dominio de Active Directory con Windows Server 2003, pero las instrucciones pueden ser similares en otras versiones:
Click ->->. This will open the Server Role Management utility.
Pulse Añadir o eliminar un rol
Pulse «Siguiente»
Seleccione «Servidor DNS»
Pulse «Siguiente»
Para continuar pulse en Siguiente
Seleccione la opción «Crear una zona de resolución de reenvío» si no está seleccionada.
Pulse «Siguiente»
Asegúrese que «Este servidor mantiene la zona» esté seleccionado, y pulse siguiente.
Enter the domain name and click Next
Pulse en Siguiente para «Permitir sólo actualizaciones dinámicas seguras»
Introduzca la IP de los servidores DNS a los que redirigir las consultas, o seleccione «No, no debe redirigir las consultas» y pulse Siguiente.
Pulse «Finalizar»
Pulse «Finalizar»
Ahora DNS está instalado y puede configurarse usando el complemento de DNS en la Consola de administración de Microsoftapplication>.
A continuación, configure el servidor para que se use a sí mismo en las consultas DNS:
Pulse «Inicio»
Panel de control
Conexiones de red
Pulse con el botón derecho sobre «Conexión de área local»
Pulse «Propiedades»
Pulse dos veces sobre «Protocolo de Internet (TCP/IP)»
Introduzca la dirección IP del servidor como «Servidor DNS preferido»
Pulse «Aceptar»
Pulse «Aceptar» otra vez para guardar los cambios
Por favor, remítase a la página web de Likewise para más información.
Para más opciones de domainjoin-cli vea la página de manual: man domainjoin-cli.