cron0 Tux's lil' helper
Joined: 05 Jan 2004 Posts: 132 Location: Montreal, Quebec
|
Posted: Fri Dec 03, 2004 6:05 pm Post subject: [SAMBA] Entrer le mot de passe a la connection au serveur? |
|
|
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 |
|