[Samba] Samba3+Win9x userlist, Bug596?!

Gémes Géza geza at kzsdabas.sulinet.hu
Tue Oct 21 21:53:15 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeremy Allison írta:
| On Tue, Oct 21, 2003 at 03:30:44PM +0200, jean-marc pouchoulon wrote:
|
|>Same problem here too.
|
|
| Interesting, can you give more information on your setup. I
| tested here with Win98 and all worked well.
|
| Jeremy.
As I wrote before everithing work with tdbsam, but not with ldapsam.
However my smb.conf is (it is working perfectly except this and some
profile issues posted before, they apear no mather the password backend):

[global]

~   workgroup = KZSDABAS
~   netbios name = PDC
~   server string = Samba Server %v
~   message command = /usr/bin/linpopup "%f" "%m" %s; rm %s
~   printcap name = cups
~   load printers = yes
~   printing = cups
~   printer admin = @adm
~   log file = /var/log/samba3/log.%m
~   max log size = 50
~   log level = 10
~   hosts allow = 127. 192.168.0. 192.168.1.
~   security = user
~   encrypt passwords = yes
~   smb passwd file = /etc/samba3/smbpasswd
~   unix password sync = Yes
~   pam password change = yes
~   username map = /etc/samba3/smbusers
~   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
~    interfaces = 127.0.0.1/8 192.168.0.2/24 192.168.1.2/24
~   local master = yes
~   os level = 64
~   domain master = yes
~   preferred master = yes
~   domain logons = yes
~   logon script = %U.bat
~   logon path = \\%L\Profiles\%U
~   logon home = \\%L\%U\profile
~   add user script = /usr/share/samba3/scripts/smbldap-useradd.pl '%u'
~   delete user script = /usr/share/samba3/scripts/smbldap-userdel.pl '%u'
~   add user to group script =
/usr/share/samba3/scripts/smbldap-groupmod.pl -m '%u' '%g'
~   delete user from group script =
/usr/share/samba3/scripts/smbldap-groupmod.pl -x '%u' '%g'
~   set primary group script =
/usr/share/samba3/scripts/smbldap-usermod.pl -g '%g' '%u'
~   add group script = /usr/share/samba3/scripts/smbldap-groupadd.pl '%g'
&& /usr/share/samba3/scripts/smbldap-groupshow.pl %g|awk '/^gidNumber:/
{print $2}'
~   delete group script = /usr/share/samba3/scripts/smbldap-userdel.pl '%g'
~   add machine script = /usr/share/samba3/scripts/smbldap-useradd.pl -w
- -d /dev/null -g machines -c 'Machine Account' -s /bin/false %u
~   passdb backend = ldapsam:ldaps://linux.kzsdabas.hu guest
~   ldap admin dn = cn=Manager,dc=kzsdabas,dc=hu
~   ldap suffix = dc=kzsdabas,dc=hu
~   ldap machine suffix = ou=Hosts
~   ldap user suffix = ou=People
~   ldap group suffix = ou=Group
~   ldap idmap suffix = ou=Idmap
~   name resolve order = wins lmhosts bcast
~   wins support = yes
~   dns proxy = no
~   dos charset = CP852
~   unix charset = ISO8859-2
~   time server = yes
~   dos filetimes = yes
~   fake directory create times = yes
~   dos filetime resolution = yes
~   delete readonly = yes
~   host msdfs = yes

[homes]
~   comment = Home Directories
~   browseable = no
~   writable = yes
~   veto files = /*.eml/*.nws/*.vbs/*.VBS/Maildir/Desktop/Documents/.*/
~   hide files = /profile/

[netlogon]
~    comment = Network Logon Service
~    path = /var/lib/samba3/netlogon
~    guest ok = yes
~    writable = no
~    root preexec = /usr/local/bin/logon.bat.sh %U /var/lib/samba3/netlogon/
~    root postexec = rm -f /var/lib/samba/netlogon/%U.bat

[Profiles]
~     path = /var/lib/samba3/profiles
~     browseable = no
~     guest ok = yes
~     root preexec = PROFILE=/var/lib/samba3/profiles/%u; if [ ! -e
$PROFILE ]; \
~                then mkdir -pm700 $PROFILE; chown %u.%g $PROFILE;fi
[printers]
~   comment = All Printers
~   path = /var/spool/samba3
~   browseable = no
~   guest ok = yes
~   writable = no
~   printable = yes
~   create mode = 0700
~   print command = lpr-cups -P %p -o raw %s -r   # using client side
printer drivers.

[print$]
~   path = /var/lib/samba3/printers
~   browseable = yes
~   read only = yes
~   write list = @adm root
~   guest ok = yes

[pdf-generator]
~   path = /var/tmp
~   guest ok = No
~   printable = Yes
~   comment = PDF Generator (only valid users)
~   #print command = /usr/share/samba3/scripts/print-pdf file path
win_path recipient IP &
~   print command = /usr/share/samba3/scripts/print-pdf %s ~%u //%L/%u %m
%I "%J" &

=================== OTHER SHARES ===================

Thanks,

Geza Gemes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/larK/PxuIn+i1pIRAko4AJ95tTeHVxnx4xEIa51PtSNR7vE0OACfbzcW
sAmoPy2vw6N8uZEVDwM9Z1c=
=wxpm
-----END PGP SIGNATURE-----




More information about the samba mailing list