[Samba] Possible Winbind Bug ?!?!

Michael Gasch gasch at eva.mpg.de
Wed Jan 26 10:19:41 GMT 2005


hi,

today i experience a very crazy behaviour:

1) yesterday my winbindd crashed (s. log.crash) (status: "dead")
2) restarted winbind and saw that some files have no owner (just the 
uidNumber)

3) getent passwd, wbinfo -u shows me all users (authenticating agains 
Windows PDC)
4) i'm using nsswitch (passwd: files winbind, group: files winbind)

e.g. (getent passwd)

.... (snip)
install:x:10101:10016::/data/users/install:/bin/bash
.... (snip)

BUT: id install says "no such user" and files owned by install are 
visible as (ls -al) "drwx------ 10101.group filename"

WEIRD: after mapping the homedrive of user "install", id install gives 
the correct data ?!?!?!
all this starts since yesterday (after the crash)

winbind always says in the logs:

[2005/01/26 11:15:11, 3] lib/charcnv.c:convert_string_allocate(576)
   convert_string_allocate: Conversion error: Illegal multibyte 
sequence(..t)
[2005/01/26 11:15:11, 3] lib/charcnv.c:convert_string_allocate(567)
   convert_string_allocate: Conversion error: Incomplete multibyte 
sequence(.t)
[2005/01/26 11:15:11, 4] 
nsswitch/winbindd_group.c:get_sam_group_entries(561)
   get_sam_group_entries: Native Mode 2k domain; enumerating local 
groups as well
[2005/01/26 11:15:11, 4] 
nsswitch/winbindd_group.c:get_sam_group_entries(570)
   get_sam_group_entries: Returned 0 local groups
[2005/01/26 11:15:11, 3] nsswitch/winbindd_user.c:winbindd_getpwuid(225)
   [13474]: getpwuid 10101
[2005/01/26 11:15:11, 4] nsswitch/winbindd_acct.c:wb_getpwuid(414)
   wb_getpwuid: failed to locate uid == 10101

allthough wbinfo -u shows all users, wbinfo -S S-1-5-21-..... gives 
10101, and so on !!!!!!!! IT's CRAZY

please help !!!

versions:
samba-3.0.10-0.1
samba-python-3.0.10-0.1
samba-winbind-3.0.10-0.1
samba-doc-3.0.9-2.1.5
samba-client-3.0.10-0.1
samba-pdb-3.0.10-0.1
samba-vscan-0.3.5-11.7.6



######## smb.conf (domain member in NT domain) #########

[global]

    workgroup = EVAN
    netbios name = nevanfs01

    server string = Fileserver EVAN
#  netbios aliases = nevanfs02

    username map = /etc/samba/username.map
#  admin users = @"Domain Admins"
    admin users = @"EVAN\edv"

    log level = 5
    log file = /var/log/samba/log.%m
    max log size = 10000

#  passdb backend = ldapsam:"ldap://nevanpdc.eva.mpg.de:389 
ldap://nevanbdc.eva.mpg.de:389"
#  ldap passwd sync = yes
    ldap suffix = dc=eva,dc=mpg,dc=de
    ldap admin dn = uid=sambamanager,ou=Users,dc=eva,dc=mpg,dc=de
#  ldap filter = (&(objectclass=sambaSamAccount)(uid=%u))
    ldap machine suffix = ou=Computers
    ldap user suffix  = ou=Users
    ldap group suffix = ou=Groups
    ldap replication sleep = 2000
#  ldap delete dn = yes

#  idmap backend = ldap:ldap://nevanpdc.eva.mpg.de:389 
ldap:ldap://nevanbdc.eva.mpg.de:389 -> funktioniert (noch) nicht
    idmap backend = ldap:ldap://nevanpdc.eva.mpg.de:389
#  idmap backend = ldap:ldap://nevanbdc.eva.mpg.de:389
    ldap idmap suffix = ou=Idmap
    idmap uid = 10000-50000
    idmap gid = 10000-50000

    winbind use default domain = yes
#  winbind enum users = no
#  winbind enum groups = no
#  winbind trusted domains only = yes
    winbind cache time = 60
    template shell = /bin/bash
    template homedir = /data/users/%U

#  follow symlinks = yes
#  wide links = yes

    interfaces = 192.168.1.239
    bind interfaces only = yes

    guest ok = no
    guest account = Gast
#  guest account = nobody

    security = domain
    local master = no
    os level = 32
    domain master = no
    domain logons = no

    encrypt passwords = yes
#  password server = nevanpdc, nevanbdc, *
    password server = evanpdc

#  socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY

    wins support = no
    dns proxy = no

#  add user script = /root/bin/BDC/adduser.sh '%u'
#  add machine script = /root/bin/BDC/addmachine.sh '%u'
#  add group script = /root/bin/BDC/addgroup.sh '%g'
#  add user to group script = /root/bin/BDC/add_to_group.sh '%u' '%g'
#  delete user script = /root/bin/BDC/deleteuser_rpc.sh '%u'
#  delete group script = /root/bin/BDC/deletegroup.sh '%g'
#  delete user from group script = /root/bin/BDC/delete_from_group.sh 
'%u' '%g'

    display charset = UTF8
    unix charset = UTF8

    # store DOS ATTRIB (Archive, ReadOnly, ...) in extended attributes 
(FS must support it)
    # map options must be set "no"
    store dos attributes = yes
    map archive = no
    map system = no
    map hidden = no
    unix extensions = no

#  printing = CUPS
#  printcap name = CUPS
#  load printers = yes
#  use client driver = yes

[homes]

(snip)

######## LOGS ##########

# log.crash

Jan 25 17:11:41 nevanfs01 winbindd[3698]: 
===============================================================
Jan 25 17:11:41 nevanfs01 winbindd[3698]: [2005/01/25 17:11:41, 0] 
lib/fault.c:fault_report(37)
Jan 25 17:11:41 nevanfs01 winbindd[3698]:   INTERNAL ERROR: Signal 6 in 
pid 3698 (3.0.4-SUSE)
Jan 25 17:11:41 nevanfs01 winbindd[3698]:   Please read the appendix 
Bugs of the Samba HOWTO collection
Jan 25 17:11:41 nevanfs01 winbindd[3698]: [2005/01/25 17:11:41, 0] 
lib/fault.c:fault_report(39)
Jan 25 17:11:41 nevanfs01 winbindd[3698]: 
===============================================================
Jan 25 17:11:41 nevanfs01 winbindd[3698]: [2005/01/25 17:11:41, 0] 
lib/util.c:smb_panic2(1398)
Jan 25 17:11:41 nevanfs01 winbindd[3698]:   PANIC: internal error
Jan 25 17:11:41 nevanfs01 winbindd[3698]: [2005/01/25 17:11:41, 0] 
lib/util.c:smb_panic2(1406)
Jan 25 17:11:41 nevanfs01 winbindd[3698]:   BACKTRACE: 24 stack frames:
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #0 
/usr/sbin/winbindd(smb_panic2+0x1c5) [0x485db0]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #1 
/usr/sbin/winbindd(smb_panic+0xe) [0x485be6]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #2 /usr/sbin/winbindd 
[0x474081]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #3 /usr/sbin/winbindd 
[0x4740dd]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #4 /lib64/tls/libc.so.6 
[0x2a96612590]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #5 
/lib64/tls/libc.so.6(gsignal+0x3d) [0x2a9661250d]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #6 
/lib64/tls/libc.so.6(abort+0x12e) [0x2a96613ace]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #7 
/lib64/tls/libc.so.6(__assert_fail+0xf0) [0x2a9660c2a0]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #8 
/usr/lib64/liblber.so.199(ber_get_next+0xdb) [0x2a964dc1bb]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #9 
/usr/lib64/libldap.so.199 [0x2a963abb63]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #10 
/usr/lib64/libldap.so.199(ldap_result+0x232) [0x2a963acbf2]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #11 
/usr/lib64/libldap.so.199(ldap_search_s+0x2c) [0x2a963adc2c]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #12 
/usr/sbin/winbindd(smbldap_search+0x2d0) [0x5216cb]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #13 /usr/sbin/winbindd 
[0x5349c1]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #14 
/usr/sbin/winbindd(idmap_get_id_from_sid+0x76) [0x532ac5]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #15 
/usr/sbin/winbindd(idmap_sid_to_gid+0x87) [0x532f51]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #16 /usr/sbin/winbindd 
[0x433fb2]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #17 
/usr/sbin/winbindd(winbindd_getgroups+0x32f) [0x434382]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #18 
/usr/sbin/winbindd(ber_scanf+0x737) [0x42f03f]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #19 
/usr/sbin/winbindd(winbind_process_packet+0x16) [0x42f30f]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #20 /usr/sbin/winbindd 
[0x42fc0a]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #21 
/usr/sbin/winbindd(main+0x4e1) [0x4301cc]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #22 
/lib64/tls/libc.so.6(__libc_start_main+0xfd) [0x2a96600e5d]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:    #23 
/usr/sbin/winbindd(tcsetattr+0xb2) [0x42e9ca]
Jan 25 17:11:41 nevanfs01 winbindd[3698]:


-- 


                  Michael Gasch

            - Central IT Department -

Max Planck Institute for Evolutionary Anthropology
Deutscher Platz 6
04103 Leipzig

Germany




More information about the samba mailing list