Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SAMBA] Entrer le mot de passe a la connection au serveur?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
cron0
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2004
Posts: 132
Location: Montreal, Quebec

PostPosted: Fri Dec 03, 2004 6:05 pm    Post subject: [SAMBA] Entrer le mot de passe a la connection au serveur? Reply with quote

Est-il possible avec samba de faire en sorte que le mot de passe est necessaire des la connection au serveur, avant d'afficher les partages?

J'ai un partage qui a comme nom %U (le nom de l'usager). Donc je j'aimerais que les usagers soient authentifies des que je me connecte au serveur (pour lister les partages entre autres)

Ma config actuelle:
Code:

[global]
   workgroup = MONSMB
   netbios name = tux
   printing = cups
   log file = /var/log/samba3/log.%m
   max log size = 50
   log level = 5
   hosts allow = 192.168.200. 127.
   map to guest = bad user
   security = user
   ldap passwd sync = yes
   obey pam restrictions = yes
   template shell = /bin/bash
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   interfaces = 192.168.200.1/24
   remot local master = yes
   os level = 255
   domain master = yes
   preferred master = yes
   domain logons = yes
   logon path = \\%L\%U\profile
   logon home = \\%L\%Ue announce = 192.168.200.255
   add user script = /usr/share/samba/scripts/smbldap-useradd.pl '%u'
   delete user script = /usr/share/samba/scripts/smbldap-userdel.pl '%u'
   add user to group script = /usr/share/samba/scripts/smbldap-groupmod.pl -m '%u' '%g'
   delete user from group script = /usr/share/samba/scripts/smbldap-groupmod.pl -x '%u' '%g'
   set primary group script = /usr/share/samba/scripts/smbldap-usermod.pl -g '%g' '%u'
   add group script = /usr/share/samba/scripts/smbldap-groupadd.pl '%g' && /usr/share/samba/scripts/smbldap-groupshow.pl %g|awk '/^gidNumber:/ {print $2}'
   delete group script = /usr/share/samba/scripts/smbldap-userdel.pl '%g'
   add machine script = /usr/share/samba/scripts/smbldap-useradd.pl -w -d /dev/null -g machines -c 'Machine Account' -s /bin/false %u
   passdb backend = ldapsam:ldap://127.0.0.1
   ldap admin dn = cn=admin,dc=monsmb,dc=com
   ldap suffix = dc=monsmb,dc=com
   ldap filter =(uid=%u)
   ldap user suffix = ou=Users
   ldap wins support = yes
   dns proxy = no
 
   [%U]
   comment = Repertoire Prive
   valid users = %U
   writeable = yes
   user = %U
   path = /home/%U

   [partages]
   comment = Partages Publiques
   writeable = no
   browseable = yes
   path = /srv/samba-shares


Comme vous voyez, le premier partage se nomme %U selon le nom de l'utilisateur. Alors je repose ma question: comment demander une authentification au serveur meme, avant de pouvoir faire quoique ce soit?

Merci mille fois!
Jean-Francois
Back to top
View user's profile Send private message
niolou
n00b
n00b


Joined: 06 Jul 2004
Posts: 42
Location: Clermont Fd (63) - Choisy le Roi (94) / France

PostPosted: Wed Dec 15, 2004 11:57 pm    Post subject: Reply with quote

Dans la section global ajouter :

Code:

guest ok = no



ou sinon tu peux toujours changer la valeur du "map to guest = Bad User" en "map to guest = never" ainsi un User sans compte ni mdp valide ne pourra rentrer en compte "invite" comme samba le fait par défaut ici.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum