[Pkg-samba-maint] Bug#505452: samba: Usernames lovercase not working

Martin Sin martin.sin at zshk.cz
Wed Nov 12 14:56:43 UTC 2008


Package: samba
Version: 2:3.2.4-1
Severity: normal

Hi,
I have problem with Windows 98 PC. Usernames are not lovercase every time.
Here part of of my log:

-----
init_sam_from_ldap: Entry found for user: ucitel
  check_ntlm_password:  authentication for user [UCITEL] -> [UCITEL] -> [ucitel] succeeded
-----

There it is ok, but another user:

-----
init_sam_from_ldap: Entry found for user: g532007
  check_ntlm_password:  Authentication for user [G532007] -> [G532007] FAILED with error NT_STATUS_WRONG_PASSWORD
-----

It is interesting, there is problem with usernames XSomeNumber (a642008,e472006 and so on).
If username looks like: ucitel, tobi, vokat, student, ... It is OK every time. 
LDAP usernames are in lovercase and login into Windows XP works ok.

In /etc/smb.conf I have:

.....
lanman auth = yes
.....

I have tried 
.....
username level = 10
.....

too, but it still not working.

Best regards for your help and sorry for my bad English,
Martin Sin.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages samba depends on:
ii  adduser              3.110               add and remove users and groups
ii  debconf [debconf-2.0 1.5.22              Debian configuration management sy
ii  libacl1              2.2.47-2            Access control list shared library
ii  libattr1             1:2.4.43-1          Extended attribute shared library
ii  libc6                2.7-15              GNU C Library: Shared libraries
ii  libcomerr2           1.41.2-1            common error description library
ii  libcups2             1.3.8-1lenny2       Common UNIX Printing System(tm) - 
ii  libgnutls26          2.4.2-1             the GNU TLS library - runtime libr
ii  libkrb53             1.6.dfsg.4~beta1-4  MIT Kerberos runtime libraries
ii  libldap-2.4-2        2.4.11-1            OpenLDAP libraries
ii  libpam-modules       1.0.1-4+b1          Pluggable Authentication Modules f
ii  libpam-runtime       1.0.1-4             Runtime support for the PAM librar
ii  libpam0g             1.0.1-4+b1          Pluggable Authentication Modules l
ii  libpopt0             1.14-4              lib for parsing cmdline parameters
ii  libtalloc1           1.2.0~git20080616-1 hierarchical pool based memory all
ii  libwbclient0         2:3.2.4-1           client library for interfacing wit
ii  logrotate            3.7.1-5             Log rotation utility
ii  lsb-base             3.2-20              Linux Standard Base 3.2 init scrip
ii  procps               1:3.2.7-8           /proc file system utilities
ii  samba-common         2:3.2.4-1           Samba common files used by both th
ii  update-inetd         4.31                inetd configuration file updater
ii  zlib1g               1:1.2.3.3.dfsg-12   compression library - runtime

samba recommends no packages.

Versions of packages samba suggests:
pn  ldb-tools                   <none>       (no description available)
ii  openbsd-inetd [inet-superse 0.20080125-1 The OpenBSD Internet Superserver
ii  smbldap-tools               0.9.4-1      Scripts to manage Unix and Samba a

-- debconf information:
  samba/run_mode: daemons
  samba/tdbsam: false
  samba/generate_smbpasswd: true


-- part of smb.conf

[global]
	dos charset = 852
	workgroup = ZSHK
	server string = Samba
	passdb backend = ldapsam:ldap://127.0.0.1/
	passwd program = /usr/sbin/smbldap-passwd  %u
	passwd chat = "Changing UNIX password for*\nNew password*" %n\n "*Retype new password*" %n\n"
	username map = /etc/samba/smbusers
	username level = 10
	lanman auth = Yes
	log level = 2
	syslog = 2
	log file = /var/log/samba/log.%m
	max log size = 2000
	time server = Yes
	printcap name = cups
	add user script = /usr/sbin/smbldap-useradd -m "%u"
	delete user script = /usr/sbin/smbldap-userdel "%u"
	add group script = /usr/sbin/smbldap-groupadd -p "%g"
	delete group script = /usr/sbin/smbldap-groupdel "%g"
	add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
	delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
	set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
	add machine script = /usr/sbin/smbldap-useradd -t 0 -w "%u"
	logon script = %G.bat
	logon path = \\%L\profiles\%U
	logon drive = I:
	logon home = \\%L\homes
	domain logons = Yes
	os level = 99
	preferred master = Yes
	domain master = Yes
	wins support = Yes
	ldap admin dn = cn=admin,dc=zshk,dc=cz
	ldap group suffix = ou=group
	ldap idmap suffix = ou=Idmap
	ldap machine suffix = ou=machines
	ldap passwd sync = Yes
	ldap suffix = dc=zshk,dc=cz
	ldap user suffix = ou=people
	idmap backend = ldap:ldap://127.0.0.1/
	idmap uid = 15000-550000
	idmap gid = 15000-550000
	winbind trusted domains only = Yes
	winbind nested groups = No
	map acl inherit = Yes
	dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd





More information about the Pkg-samba-maint mailing list