Page 1 sur 1
Mise en place controleur de domaine principal sous Samba
Publié : lun. 24 mars 2008 16:33
par el_mazo
Bonjour, après plusieurs jours et nuits de galère je suis toujours au point mort :
¤ 1ère étape : Installation de Debian Etch --> Ok, pas de soucis majeur.
¤ 2ème étape : Installation des Paquets Apache2.2 PHP5 Mysql5 PhpMyAdmin --> Serveur Web Ok
¤ 3ème étape : Installation des Paquets Postfix Courier-Imap Courier-Pop --> Serveur Mail Ok
¤ 4ème étape : Installation des Webmails SquirrelMail & Roundcube --> Webmails Ok
¤ 5ème étape : Installation des Paquets Samba : apt-get install Samba ,configuration avec l'assistant Ok
Test avec une machine Windows Xp Pro : Impossible de se connecter au Domaine ...
Si quelqu'un pouvait m'aider pour Samba ... Il s'agit d'un controleur de domaine pour un usage personnel, c'est juste pour de petites machines qui vont sur le web et ou l'on a besoin de sauvegarder de petits fichiers et comme on change de pc au fur et à mesure des envies on ne veux pas à avoir a sauvegarder à chaque fois sur une clef ou disque dur USB.
Par ailleurs, je souhaiterais si possible que le samba puisse dans chaque §USER/HOME avoir un dossier "Mes document" qui se mettrait en place dès la connexion de l'utilisateur sur le domaine à la place du "Mes Documents" de windows.
Aussi est il possible de joindre ce domaine avec un pc qui est par exemple a l'autre bout de la planete, soit par un VPN ou bien une autre solution.
MERCI
Mise en place controleur de domaine principal sous Samba
Publié : lun. 24 mars 2008 19:11
par gizmo78
pour que tu puisse te connecter dessus il faut que tu créer l'utilisateur dans samba avec la commande suivante:
smb -a user
Mise en place controleur de domaine principal sous Samba
Publié : mar. 25 mars 2008 18:56
par Ryu_wm
Par ailleurs, je souhaiterais si possible que le samba puisse dans chaque §USER/HOME avoir un dossier "Mes document" qui se mettrait en place dès la connexion de l'utilisateur sur le domaine à la place du "Mes Documents" de windows.
une fois la connexion au domaine établie rien de plus simple
mapper un lecteur rzo ( ex : Z:\ ) pointant vers le /home de l'utilisateur
et sur le profil windows de l'utilisateur cliquer droit sur "mes documents" et demander propriétés et cliquer ensuite sur "déplacer", ensuite déplacer ledit dossier vers z:\
attention, temps de chargement de profil garanti !
Aussi est il possible de joindre ce domaine avec un pc qui est par exemple a l'autre bout de la planete, soit par un VPN ou bien une autre solution.
le VPN me semble etre la seule solution car les equipements actifs entre " l'autre bout de la planete" et le SAMBA bloqueront les accès réseau microsoft ( ex : ports 137,138,139 .... )
pour la config sur samba je te file ça demain à l'embauche

Mise en place controleur de domaine principal sous Samba
Publié : mer. 26 mars 2008 13:26
par Ryu_wm
voici le /etc/samba/smb.conf d'un PDC
attention samba est sous /etc/samba ça ne doit pas etre la meme chose sous Debian
ensuite il y a une authentif ldpa, faudra commenter
les profiles utilisateurs sont errants, faut commenter si tu n'en veux pas
on peux en discuter si tu ne saisie pas tout
Code : Tout sélectionner
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = mondomaine
# netbios name is the name you will see in "Network Neighbourhood",
# but defaults to your hostname
netbios name = PDC
# server string is the equivalent of the NT Description field
server string = Samba Server %v
deadtime = 5
oplocks = no
level2 oplocks = no
kernel oplocks = no
max smbd processes = 3000
use sendfile = no
# Message command is run by samba when a "popup" message is sent to it.
# The example below is for use with LinPopUp:
; message command = /usr/bin/linpopup "%f" "%m" %s; rm %s
# 2. Printing Options:
# CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK
# (as cups is now used in linux-mandrake 7.2 by default)
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
# printcap name = cups
load printers = no
# printcap cache time, so samba will automatically load new cups printers
# printcap cache time = 60
# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups
# printing = cups
# Samba 2.2 supports the Windows NT-style point-and-print feature. To
# use this, you need to be able to upload print drivers to the samba
# server. The printer admins (or root) may install drivers onto samba.
# Note that this feature uses the print$ share, so you will need to
# enable it below.
# Printer admins are now defined by granting the SePrintOperatorPrivilege, ie:
# run: net rpc rights grant 'DOMAIN\Printer Operators' SePrintOperatorPrivilege
# 3. Logging Options:
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Set the log (verbosity) level (0
Mise en place controleur de domaine principal sous Samba
Publié : mer. 26 mars 2008 13:51
par gizmo78
il est dans /etc/samba sous debian aussi

Mise en place controleur de domaine principal sous Samba
Publié : mer. 26 mars 2008 20:45
par littleyahyah
si tu as une interface graphique, installe webmin et ca sera plus facile pour configurer ton samba. j'ai longtemps galèré à écrire à la main le smb.conf
et webmin fait ca super bien !
Mise en place controleur de domaine principal sous Samba
Publié : mer. 26 mars 2008 22:17
par Ryu_wm
de mon coté j'ai eu pas mal de problemes avec webwin pour gerer samba
cependant si tu tiens à passer par là utilise swat en complément
ps : pas besoin d'interface graphique un simple naviguateur web depuis un autre poste suffit
Mise en place controleur de domaine principal sous Samba
Publié : jeu. 27 mars 2008 12:30
par littleyahyah
de mon coté j'ai eu pas mal de problemes avec webwin pour gerer samba
cependant si tu tiens à passer par là utilise swat en complément
ps : pas besoin d'interface graphique un simple naviguateur web depuis un autre poste suffit
exact !
avec fedora, webmin c'est super bien débrouillé !
Mise en place controleur de domaine principal sous Samba
Publié : ven. 28 mars 2008 23:20
par el_mazo

f
Mise en place controleur de domaine principal sous Samba
Publié : ven. 28 mars 2008 23:34
par el_mazo
Mon smb.conf :
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentary and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic
# errors.
#
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = mshome
# server string is the equivalent of the NT Description field
server string = %h server
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
; wins support = no
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z
# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no
# What naming service and in what order should we use to resolve host names
# to IP addresses
; name resolve order = lmhosts host wins bcast
#### Networking ####
# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
; interfaces = 127.0.0.0/8 eth0
# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself. However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
; bind interfaces only = true
#### Debugging/Accounting ####
# This tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
# Put a capping on the size of the log files (in Kb).
max log size = 1000
# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
; syslog only = no
# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
syslog = 0
# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
; security = user
# You may wish to use password encryption. See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
encrypt passwords = true
# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.
passdb backend = tdbsam
obey pam restrictions = yes
; guest account = nobody
invalid users = root
# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
; unix password sync = no
# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan
Mise en place controleur de domaine principal sous Samba
Publié : sam. 29 mars 2008 01:10
par Ryu_wm
oui mais que faut il comprendre à la capture d'ecran ? moi je vois ton samba dans le workgroup "mshome"
Mise en place controleur de domaine principal sous Samba
Publié : sam. 29 mars 2008 10:18
par gizmo78
pour te connecter aux partages samba il faut que les utilisateurs soient créer directement sur la machine serveur
Mise en place controleur de domaine principal sous Samba
Publié : dim. 30 mars 2008 11:25
par el_mazo
Bonjour, alors enfin sa marche je pense que cela devait etre du a un smb.conf erroné ... je posterai le nouveau beaucoup plus simple ça pourrait être utile a qqn.
Sinon je sais que l'on peut lancer un logon.bat à l'ouverture de session d'un user pour connecter automatiquement les lecteurs réseaux comment faire ?
Mise en place controleur de domaine principal sous Samba
Publié : dim. 30 mars 2008 14:19
par Ryu_wm
# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
# logon script = %m.bat
# run a specific logon batch file per username
# logon script = %u.bat
logon script = startup.cmd
# [netlogon]
# comment = Network Logon Service
# path = /var/lib/samba/netlogon
# guest ok = yes
# writable = no
# browseable = yes