Bug 6889 - winbind crashes when queried from nss
Summary: winbind crashes when queried from nss
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.3
Classification: Unclassified
Component: Winbind (show other bugs)
Version: 3.3.9
Hardware: x64 Linux
: P3 major
Target Milestone: ---
Assignee: Guenther Deschner
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-11 05:59 UTC by Matthias Grimm
Modified: 2009-11-12 08:37 UTC (History)
0 users

See Also:


Attachments
core-file (183.00 KB, application/octet-stream)
2009-11-11 06:03 UTC, Matthias Grimm
no flags Details
level 10 logfile (3.61 KB, text/plain)
2009-11-11 06:03 UTC, Matthias Grimm
no flags Details
level 10 logfile (3.61 KB, text/plain)
2009-11-11 06:04 UTC, Matthias Grimm
no flags Details
level-10 logfile (750.94 KB, text/plain)
2009-11-11 06:04 UTC, Matthias Grimm
no flags Details
leve 10 logfile (winbindd) (305.43 KB, text/plain)
2009-11-11 06:05 UTC, Matthias Grimm
no flags Details
level 10 logfile (winbindd-idmap) (14.98 KB, text/plain)
2009-11-11 06:06 UTC, Matthias Grimm
no flags Details
attempt to fix the crash bug (v3-4-test) (1.06 KB, patch)
2009-11-11 09:44 UTC, Guenther Deschner
no flags Details
attempt to fix the crash bug (v3-3-test) (1.98 KB, patch)
2009-11-11 09:49 UTC, Guenther Deschner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Grimm 2009-11-11 05:59:26 UTC
Hi,

I've updated my server from 3.4.0 to 3.4.3 (sernet packages). After restarting smb, winbindd I couldn't access my share, ls couldn't map gid to name.

wbinfo -u & -g works as expected, id for a domain-users wait's for ca. 10 sec. and only reports numerical values.

net rpc testjoin reports nothing obvious. 

I've removed the installed samba and downgraded to 3.3.9 (sernet packages), same behaviour. 
When queriying winbind over nss winbind writes a panic to the log and creates a corefile.

Environment:

Windows 2003-R2 Domain, one CTDB-Cluster with two samba-servers (which are fine and still on 3.3.7)
Server: Dual Opteron, 4GB RAM, 3ware 9550sxu, Centos 5.3 x64

smb.conf:
[global]
        workgroup = RENZEL
        server string = Magic partitioning und fax server
        security = ADS
        password server = 10.0.0.43
        log file = /var/log/samba/log.%m
        load printers = No
        show add printer wizard = No
        template homedir = /samba/homes/%U
        template shell = /bin/bash
        map acl inherit = Yes
        posix locking = No
        winbind offline logon = true
        winbind normalize names = yes
        level2 oplocks = yes
        unix charset = UTF8
        idmap uid = 1000000-2000000
        idmap gid = 1000000-2000000
        idmap_hash:name_map = /etc/samba/name_map.cfg
        idmap backend = hash
        local master = no
        realm = RENZEL.DE.ISB
        name resolve order = wins bcast
        disable netbios = no
        client NTLMv2 auth = yes
        socket options = IPTOS_LOWDELAY TCP_NODELAY
        deadtime = 720
        netbios name = DMPUF
        log level = 1 winbind:10

[Archiv]
        path = /samba/archiv
        valid users = @RENZEL\domänen-benutzer
        read only = No
        create mask = 0775
        inherit acls = yes

examples from commandline made within 30 sec.:

root@dmpuf /var/log/samba#  wbinfo -G 1726480897
S-1-5-21-296725697-3454240351-952247576-513
root@dmpuf /var/log/samba#  id renzel\\mgr
uid=1726482152(RENZEL\mgr) gid=1726480897(RENZEL\domänen-benutzer) groups=1726480897(RENZEL\domänen-benutzer),1726482060(RENZEL\reflex-übersetzer),1726482145,1726480896,172648
2056
root@dmpuf /var/log/samba#  id renzel\\mgr
id: renzel\mgr: No such user
root@dmpuf /var/log/samba#  id renzel\\mgr
id: renzel\mgr: No such user
root@dmpuf /var/log/samba#  wbinfo -G 1726480897
Could not convert gid 1726480897 to sid
root@dmpuf /var/log/samba#


Matthias
Comment 1 Matthias Grimm 2009-11-11 06:03:09 UTC
Created attachment 4942 [details]
core-file
Comment 2 Matthias Grimm 2009-11-11 06:03:35 UTC
Created attachment 4943 [details]
level 10 logfile
Comment 3 Matthias Grimm 2009-11-11 06:04:02 UTC
Created attachment 4944 [details]
level 10 logfile
Comment 4 Matthias Grimm 2009-11-11 06:04:52 UTC
Created attachment 4945 [details]
level-10 logfile
Comment 5 Matthias Grimm 2009-11-11 06:05:31 UTC
Created attachment 4946 [details]
leve 10 logfile (winbindd)
Comment 6 Matthias Grimm 2009-11-11 06:06:00 UTC
Created attachment 4947 [details]
level 10 logfile (winbindd-idmap)
Comment 7 Guenther Deschner 2009-11-11 09:44:07 UTC
Created attachment 4948 [details]
attempt to fix the crash bug (v3-4-test)

This is a patch that just went into v3-4-test (for 3.4.4), do you have a chance to test with this patch ?
Comment 8 Guenther Deschner 2009-11-11 09:49:45 UTC
Created attachment 4949 [details]
attempt to fix the crash bug (v3-3-test)

The patch for 3.3.10 (v3-3-test)
Comment 9 Matthias Grimm 2009-11-11 10:00:22 UTC
I'll go and download 3.3.9, apply the patch etc. and test it..
Comment 10 Matthias Grimm 2009-11-12 06:38:15 UTC
Hi,

compiled the patched samba with makerpms.sh, copied them over to the failing machine, started winbind: presto

Comment 11 Guenther Deschner 2009-11-12 07:03:28 UTC
does this mean: bug fixed ?
Comment 12 Matthias Grimm 2009-11-12 07:43:41 UTC
From my point of view it's fixed, yes
Comment 13 Guenther Deschner 2009-11-12 08:37:29 UTC
Great, thanks so much for testing. Closing as fixed (for 3.4.4 and 3.3.10). Please reopen if still an issue.