[Samba] Samba3+Win9x userlist, Bug?!

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


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

John H Terpstra írta:
| On Tue, 21 Oct 2003, [ISO-8859-2] G?mes G?za wrote:
|
|
|>Dear List,
|>
|>Few days ago I've posted, that my Win9x boxes are unable to get the list
|>of domain users and groups from samba-3.0.0 server (for details see bug
|>596). Unfortunately the same is true for samba-3.0.1pre1.
|>Please people also having win9x boxes and Samba3 PDC confirm that it is
|>a bug, or a configuration error.
|
|
| Looks like a configuration error at your end. I just checked with My
| Windows Me and with Windows 98 - both work just fine against 3.0.1pre.
|
|
|>Thanks for any suggestion.
|
|
| Email me your smb.conf file and I'll look at it when I get a moment.
|
|
|>I'm getting crazy, 3/4 of my windows boxes are win9x :-(
|
|
| Now we can understand why you are going crazy. :)
|
| - John T.
I forgot to mention, it works with tdbsam, but doesn't with ldapsam.
Here is my smb.conf with ldapsam (the only relevant diferences are in
domain name, netbios name, passdb backend, and add, modify or delete
user, group and machine scripts):

[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/lU4p/PxuIn+i1pIRAn71AJ4kyZVy3VMzqx6h723QkIAbFqngLACfUJY7
jeR8CzhQLPVcSbeAssSr8V0=
=UST5
-----END PGP SIGNATURE-----




More information about the samba mailing list