IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Réseau Discussion :

Authentification via un PDC pour samba


Sujet :

Réseau

  1. #1
    Membre actif
    Profil pro
    Inscrit en
    Octobre 2004
    Messages
    314
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France

    Informations forums :
    Inscription : Octobre 2004
    Messages : 314
    Points : 206
    Points
    206
    Par défaut Authentification via un PDC pour samba
    Bonjour,

    Mon réseau dispose d'un contrôleur de domaine. J'ai un serveur soux fedora 4 avec un serveur Apache d'installé. Afin de permettre le partage de fichier entre les clients windows et le serveur Unix, j'ai mis en place un serveur samba.
    J'ai relayé l'authentification des clients Windows au contrôleur de domaine.
    Voici le message d'erreur que j'obtiens dans les logs de Samba lorsque q'une machine tente d'accèder au serveur Fedora.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
     
    [2006/07/03 09:49:28, 1] libsmb/cliconnect.c:cli_connect(1330)
      Error connecting to 140.120.1.6 (Permission denied)
    [2006/07/03 09:49:28, 1] libsmb/cliconnect.c:cli_connect(1330)
      Error connecting to 172.25.255.254 (Permission denied)
    [2006/07/03 09:49:28, 1] libsmb/cliconnect.c:cli_connect(1330)
      Error connecting to 172.18.0.1 (Permission denied)
    [2006/07/03 09:49:28, 0] auth/auth_server.c:server_cryptkey(83)
      password server not available
    [2006/07/03 09:49:28, 1] libsmb/cliconnect.c:cli_connect(1330)
      Error connecting to 140.120.1.6 (Permission denied)
    [2006/07/03 09:49:28, 1] libsmb/cliconnect.c:cli_start_connection(1410)
      cli_full_connection: failed to connect to NS2001<20> (140.120.1.6)
    [2006/07/03 09:49:28, 1] libsmb/cliconnect.c:cli_connect(1330)
      Error connecting to 140.120.1.6 (Permission denied)
    [2006/07/03 09:49:28, 1] libsmb/cliconnect.c:cli_connect(1330)
      Error connecting to 172.25.255.254 (Permission denied)
    [2006/07/03 09:49:28, 1] libsmb/cliconnect.c:cli_connect(1330)
      Error connecting to 172.18.0.1 (Permission denied)
    [2006/07/03 09:49:28, 0] auth/auth_server.c:server_cryptkey(83)
      password server not available
    [2006/07/03 09:49:28, 1] auth/auth_server.c:check_smbserver_security(252)
      password server is not connected (cli not initilised)
    [2006/07/03 09:49:29, 1] libsmb/cliconnect.c:cli_connect(1330)
    et voici mon smb.conf

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
     
    [global]
     
    # workgroup = NT-Domain-Name or Workgroup-Name
       workgroup = DOMVBB
     
    # server string is the equivalent of the NT Description field
       server string =
     
    # This option is important for security. It allows you to restrict
    # connections to machines which are on your local network. The
    # following example restricts access to two C class networks and
    # the "loopback" interface. For more examples of the syntax see
    # the smb.conf man page
    ;   hosts allow = 192.168.1. 192.168.2. 127.
     
    # if you want to automatically load your printer list rather
    # than setting them up individually then you'll need this
       printcap name = /etc/printcap
       load printers = no
     
    # 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
       printing = lprng
     
    # Uncomment this if you want a guest account, you must add this to /etc/passwd
    # otherwise the user "nobody" is used
    ;  guest account = pcguest
     
    # 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 = 0
     
    # Security mode. Most people will want user level security. See
    # security_level.txt for details.
       security = server
     
    # Use password server option only with security = server
    # The argument list may include:
    #   password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
    # or to auto-locate the domain controller/s
    #   password server = *
     
       password server = ns2001 ns2000 dc2000
     
    # Password Level allows matching of _n_ characters of the password for
    # all combinations of upper and lower case.
    ;  password level = 8
    ;  username level = 8
     
    # You may wish to use password encryption. Please read
    # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
    # Do not enable this option unless you have read those documents
       encrypt passwords = yes
       #smb passwd file = /etc/samba/smbpasswd
     
    # The following is needed to keep smbclient from spouting spurious errors
    # when Samba is built with support for SSL.
    ;   ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
     
    # The following are needed to allow password changing from Windows to
    # update the Linux system password also.
    # NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
    # NOTE2: You do NOT need these to allow workstations to change only
    #        the encrypted SMB passwords. They allow the Unix password
    #        to be kept in sync with the SMB password.
       unix password sync = Yes
       passwd program = /usr/bin/passwd %u
       passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
     
    # You can use PAM's password change control flag for Samba. If
    # enabled, then PAM will be used for password changes when requested
    # by an SMB client instead of the program listed in passwd program.
    # It should be possible to enable this without changing your passwd
    # chat parameter for most setups.
     
       pam password change = yes
     
    # Unix users can map to different SMB User names
    username map = /etc/samba/smbusers
     
    # Using the following line enables you to customise your configuration
    # on a per machine basis. The %m gets replaced with the netbios name
    # of the machine that is connecting
    ;   include = /etc/samba/smb.conf.%m
     
    # This parameter will control whether or not Samba should obey PAM's
    # account and session management directives. The default behavior is
    # to use PAM for clear text authentication only and to ignore any
    # account or session management. Note that Samba always ignores PAM
    # for authentication in the case of encrypt passwords = yes
     
      obey pam restrictions = yes
     
    # Most people will find that this option gives better performance.
    # See speed.txt and the manual pages for details
       socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
     
    # Configure Samba to use multiple interfaces
    # If you have multiple network interfaces then you must list them
    # here. See the man page for details.
    ;   interfaces = 192.168.12.2/24 192.168.13.2/24
     
    # Configure remote browse list synchronisation here
    #  request announcement to, or browse list sync from:
    #       a specific host or from / to a whole subnet (see below)
    ;   remote browse sync = 192.168.3.25 192.168.5.255
    # Cause this host to announce itself to local subnets here
    ;   remote announce = 192.168.1.255 192.168.2.44
     
    # Browser Control Options:
    # set local master to no if you don't want Samba to become a master
    # browser on your network. Otherwise the normal election rules apply
    ;   local master = no
     
    # OS Level determines the precedence of this server in master browser
    # elections. The default value should be reasonable
    ;   os level = 33
     
    # Domain Master specifies Samba to be the Domain Master Browser. This
    # allows Samba to collate browse lists between subnets. Don't use this
    # if you already have a Windows NT domain controller doing this job
    ;   domain master = yes
     
    # Preferred Master causes Samba to force a local browser election on startup
    # and gives it a slightly higher chance of winning the election
    ;   preferred master = yes
     
    # Enable this if you want Samba to be a domain logon server for
    # Windows95 workstations.
    ;   domain logons = yes
     
    # 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
     
    # Where to store roving profiles (only for Win95 and WinNT)
    #        %L substitutes for this servers netbios name, %U is username
    #        You must uncomment the [Profiles] share below
    ;   logon path = \\%L\Profiles\%U
     
    # Windows Internet Name Serving Support Section:
    # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
    ;   wins support = yes
     
    # 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 = 140.120.1.6
     
    # WINS Proxy - Tells Samba to answer name resolution queries on
    # behalf of a non WINS capable client, for this to work there must be
    # at least one  WINS Server on the network. The default is NO.
    ;   wins proxy = yes
    # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
    # via DNS nslookups. The built-in default for versions 1.9.17 is yes,
    # this has been changed in version 1.9.18 to no.
       dns proxy = no
     
    # Case Preservation can be handy - system default is _no_
    # NOTE: These can be set on a per share basis
    ;  preserve case = no
    ;  short preserve case = no
    # Default case is normally upper case for all DOS files
    ;  default case = lower
    # Be very careful with case sensitivity - it can break things!
    ;  case sensitive = no
     
    #============================ Share Definitions ==============================
     
    [wwwroot]
       comment = Racine des applications fonctionnant sur l'intranet
       path = /var/www/html
       valid users = apache root
       public = no
       writable = yes
       printable = no
       create mask = 0777
     
    [Intranet Prod]
       comment = Version de production de l'intranet
       path = /var/www/html/production/intranet
       valid users = apache root comm
       public = no
       writable = yes
       printable = no
       create mask = 0777
    Quelqu'un aurait-il une idée ?

    Merci.
    Nulla dies sin linea

  2. #2
    Membre éclairé
    Inscrit en
    Octobre 2005
    Messages
    847
    Détails du profil
    Informations forums :
    Inscription : Octobre 2005
    Messages : 847
    Points : 841
    Points
    841
    Par défaut
    est ce un oubli que tu n'a pas activé

    ???

    et je pense que c'est plutot :

    as tu crée des comptes pour tes machines sur ton serveur?
    as tu affecter des mdp à tes users?


    etc...
    Ce n’est pas en cassant le thermomètre que vous ferez baisser la température

  3. #3
    Membre actif
    Profil pro
    Inscrit en
    Octobre 2004
    Messages
    314
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France

    Informations forums :
    Inscription : Octobre 2004
    Messages : 314
    Points : 206
    Points
    206
    Par défaut
    security = server car l'authentification est effectuée au travers de mon PDC. Sinon le paramètre a résolu le problème.
    A quoi sert-il?

    Encore merci.
    Nulla dies sin linea

  4. #4
    Membre régulier
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    106
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Mars 2004
    Messages : 106
    Points : 104
    Points
    104
    Par défaut
    Citation Envoyé par illegalsene
    security = server car l'authentification est effectuée au travers de mon PDC. Sinon le paramètre a résolu le problème.
    A quoi sert-il?

    Encore merci.

    il sert à determiner ton PDC justement est ce qu il se fait au niveau de Samba ou non ==> veut dire que ton PDC est SAMBA

    Je me trompe?
    Amine

  5. #5
    Expert éminent

    Homme Profil pro
    Technicien Help Desk
    Inscrit en
    Juillet 2004
    Messages
    2 756
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Seine Maritime (Haute Normandie)

    Informations professionnelles :
    Activité : Technicien Help Desk

    Informations forums :
    Inscription : Juillet 2004
    Messages : 2 756
    Points : 6 686
    Points
    6 686
    Par défaut
    domain master:

    Définit si Samba doit être le "maître explorateur de domaine" pour son domaine. Ceci permet rassembler les listes de machines fournies par les maîtres explorateur locaux et de leur redistribuer ensuite une liste complète des machines du domaine.

    A ne pas utiliser si un PDC Windows NT existe dans le domaine
    @++
    .Olivier

  6. #6
    Membre régulier
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    106
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Mars 2004
    Messages : 106
    Points : 104
    Points
    104
    Par défaut
    +1 Ce que j'ai dis. enfin en plus clair cette fois Larkine
    Amine

  7. #7
    Membre éclairé
    Inscrit en
    Octobre 2005
    Messages
    847
    Détails du profil
    Informations forums :
    Inscription : Octobre 2005
    Messages : 847
    Points : 841
    Points
    841
    Par défaut
    content que c'était ça le pb....sinon moi j'ai

    et ça pause pas de pb??
    Ce n’est pas en cassant le thermomètre que vous ferez baisser la température

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Ajouter des machines pour samba sous mandriva
    Par jean christophe dans le forum Réseau
    Réponses: 2
    Dernier message: 05/03/2006, 14h06
  2. Authentification via un serveur LDAP
    Par jh0483 dans le forum PostgreSQL
    Réponses: 4
    Dernier message: 16/01/2006, 06h53
  3. Réponses: 1
    Dernier message: 14/10/2005, 22h14
  4. Option pour samba pour fermer des sessions windows
    Par cybernetique dans le forum Réseau
    Réponses: 7
    Dernier message: 04/10/2005, 11h05
  5. Configuration des droits pour samba avec ftp et www
    Par Alkmie dans le forum Réseau
    Réponses: 2
    Dernier message: 07/11/2004, 13h50

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo