Pavnay

 
  • Increase font size
  • Default font size
  • Decrease font size
FrançaisEnglish

[System] Integrating Ubuntu in a Windows domain

Print
System
Wether we like or not Windows, most of companies have a domain under Microsoft Windows and by the way a network managed with an Active Directory server. If a Windows desktop is easily integrable in this kind of domain, it's not the same thing with a desktop on a Linux system.

Until now, it was necessary to be patient during some services configuration (winbind, samba, etc...) in order to be well authenticated. Now, there is a tool doing all these configurations : Likewise-open.

Likewise-open installation is quiet simple :

apt-get install likewise-open


When installed, we have to configure the desktop to connect it to the Active Directory domain.

By default, Ubuntu installs a tool which, on principle, simplifies network connections but bring some problems : Avahi. So, we have to deactivate it :

/etc/init.d/avahi-daemon stop
update-rc.d -f avahi-daemon remove


Now, the Active Directory domain connection :

domainjoin-cli join pavnay.local Administrator


The username used here is the networrk administrator username and you have to replace pavnay.local with your own domain name.
Once the administrator's password given, it's possible to be authenticated on the desktop using your own login / password from the Active Directory using the login as  : "DomainNameUsername".

Capturing the domain name before the username is restrictive and painful.
To not capture it, add at the end of the /etc/samba/lwiauthd.conf file the following line :

winbind use default domain = yes



To go further in the integration, it's possible to mount automaically network shared resources set up in the Active Directory at login.
To mount them, it's necessary to install 2 softwares : smbfs for shared file system and libpam-mount to setting up them :

apt-get install libpam-mount smbfs


Once these packages installed, it's time to configure the PAM module. In the /etc/security/pam_mount.conf.xml  file, add shared resources definitions.

For example, here, we mount the common$ shared folder hosted by the srv server from the PAVNAY domain into the /home/pavnay/DomainUsername folder. This XML structure is to add into the <volumes/> tags.

<volume fstype="cifs" server="srv" path="commun$" mountpoint="/home/pavnay/%(DOMAIN_USER)/Common" user="*" options="username=%(USER),user=%(USER),domain=PAVNAY,iocharset=utf8" />


Once the PAM module configured, we have to integrate it in the authentication process.
To do this, create the /etc/pam.d/common-pammount file and put inside the following lines :

auth    optional pam_mount.so use_first_pass
session    optional pam_mount.so


Then add a the end of the /etc/pam.d/gdm file :

@include common-pammount


Et voilà, now the Ubuntu desktop is configured to do authentication with the Active Directory (local authentication is always possible) and to auto-mount shared folders.

Comments
Add New
+/-
Write comment
Name:
Email:
 
Title:
 
:D:):(:0:shock::confused:8):lol::x:P:oops::cry:
:evil::twisted::roll::wink::!::?::idea::arrow:
 
Sibra  - Ne marche pas avec Ubuntu 10.04   |2010-05-27 16:12:54
J'ai essayé cette excellente méthode avec un pc sous Ubuntu 9.04. Pas de
problème.
Je voulais passer à la version 10.4 d'Ubuntu et la, ça ne marche
pas.
Avez-vous une idée...

Philippe
Febbweiss   |2010-05-29 00:33:47
Bonjour,

Je n'ai pas encore fais d'intégration de post sous Ubuntu 10.4 mais
après quelques recherches il en ressort que sous Ubuntu 9.10, Likewise était
en version 4.X et sous 10.4 en version 5.X ce qui a pour conséquence que les
fichiers de configuration diffèrent ou sont à des endroits différents.

Avez
vous des logs (/var/log ?) pour indice ?

Febb'
david  - likewise open   |2011-01-10 14:14:13
Bonjour, il faut récupérer la version 6.0 de likewise et réalisé le
domaincli
Febbweiss   |2011-01-15 18:54:18
Merci pour l'info
Cheun  - Pb montage de répertoire partagé   |2011-10-12 16:00:55
La procédure fonctionne très bien pour Win Server 2008+Ubuntu 10.10. (ajout au
domaine+authentification).
Par contre pour monter un répertoire partagé ça
coince.
A noter que si je fais le montage à la main en passant par
Menu>Raccourcis>Se connecter à un serveur ça marche.
Mais bon, faire ça pour
tous les users d'une classe c'est pas cool lol.
Si qq1 à une idée!
O'scour  - La même   |2012-03-29 15:57:54
Même problème, il me faut monter les répertoires à la main, il ne montent
pas automatiquement à la connexion des clients léger.
Si quelqu'un à une
idée, je prend !

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 

Actualités


AddThis Social Bookmark Button