[Samba] pam_winbind.c

Anders.Strandberg at tietoenator.com Anders.Strandberg at tietoenator.com
Fri Apr 20 08:18:08 GMT 2007


Hi,

I was running this with -d10 -i , so I am not quite sure that this is
the same event, but I think it is related to this:


[2007/04/18 10:10:12, 3] libsmb/namequery.c:resolve_hosts(1029)
  resolve_hosts: Attempting host lookup for name dc12.test.com<0x20>
[2007/04/18 10:10:12, 4] libsmb/namequery.c:get_dc_list(1599)
  get_dc_list: returning 0 ip addresses in an unordered list
[2007/04/18 10:10:12, 4] libsmb/namequery.c:get_dc_list(1600)
  get_dc_list: 
[2007/04/18 10:10:12, 8] libsmb/namequery.c:get_sorted_dc_list(1626)
  get_sorted_dc_list: attempting lookup for name (null) (sitename NULL)
using [host]
[2007/04/18 10:10:12, 2] libsmb/namequery.c:saf_fetch(119)
  saf_fetch: Empty domain name!
[2007/04/18 10:10:12, 3] libsmb/namequery.c:get_dc_list(1489)
  get_dc_list: preferred server list: ", *"
[2007/04/18 10:10:12, 0] lib/fault.c:fault_report(41)
  ===============================================================
[2007/04/18 10:10:12, 0] lib/fault.c:fault_report(42)
  INTERNAL ERROR: Signal 11 in pid 345 (3.0.25rc1)
  Please read the Trouble-Shooting section of the Samba3-HOWTO
[2007/04/18 10:10:12, 0] lib/fault.c:fault_report(44)
  
  From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2007/04/18 10:10:12, 0] lib/fault.c:fault_report(45)
  ===============================================================
[2007/04/18 10:10:12, 0] lib/util.c:smb_panic(1620)
  PANIC (pid 345): internal error
[2007/04/18 10:10:12, 0] lib/util.c:log_stack_trace(1724)
  BACKTRACE: 31 stack frames:
   #0 /app/samba/3.0.25/sbin/winbindd(log_stack_trace+0x2d) [0x800cccd9]
   #1 /app/samba/3.0.25/sbin/winbindd(smb_panic+0x86) [0x800ccb47]
   #2 /app/samba/3.0.25/sbin/winbindd [0x800b8714]
   #3 /app/samba/3.0.25/sbin/winbindd [0x800b8725]
   #4 [0xffffe420]
   #5 /app/samba/3.0.25/sbin/winbindd [0x801269f0]
   #6 /app/samba/3.0.25/sbin/winbindd(get_sorted_dc_list+0xe5)
[0x801271dd]
   #7 /app/samba/3.0.25/sbin/winbindd [0x801f2dff]
   #8 /app/samba/3.0.25/sbin/winbindd(get_dc_name+0xb8) [0x801f305d]
   #9 /app/samba/3.0.25/lib/idmap/ad.so [0xb79b12cb]
   #10 /app/samba/3.0.25/lib/idmap/ad.so [0xb79b13a4]
   #11 /app/samba/3.0.25/lib/idmap/ad.so [0xb79b1955]
   #12 /app/samba/3.0.25/sbin/winbindd [0x801f6bb9]
   #13 /app/samba/3.0.25/sbin/winbindd(idmap_unixids_to_sids+0x3ca)
[0x801f775d]
   #14 /app/samba/3.0.25/sbin/winbindd(idmap_uid_to_sid+0xab)
[0x801fa04f]
   #15 /app/samba/3.0.25/sbin/winbindd(winbindd_dual_uid2sid+0xa8)
[0x8006e16e]
   #16 /app/samba/3.0.25/sbin/winbindd [0x8006830f]
   #17 /app/samba/3.0.25/sbin/winbindd [0x80069d31]
   #18 /app/samba/3.0.25/sbin/winbindd [0x80067ee0]
   #19 /app/samba/3.0.25/sbin/winbindd(async_request+0x17c) [0x80067a81]
   #20 /app/samba/3.0.25/sbin/winbindd [0x80069fad]
   #21 /app/samba/3.0.25/sbin/winbindd(winbindd_sid2uid_async+0x83)
[0x8006ad1b]
   #22 /app/samba/3.0.25/sbin/winbindd [0x80041163]
   #23 /app/samba/3.0.25/sbin/winbindd [0x8006de76]
   #24 /app/samba/3.0.25/sbin/winbindd [0x80069e73]
   #25 /app/samba/3.0.25/sbin/winbindd [0x80067e9a]
   #26 /app/samba/3.0.25/sbin/winbindd [0x8003eeec]
   #27 /app/samba/3.0.25/sbin/winbindd [0x8003fc55]
   #28 /app/samba/3.0.25/sbin/winbindd(main+0x725) [0x800406e6]
   #29 /lib/libc.so.6(__libc_start_main+0xdc) [0xb7bcc87c]
   #30 /app/samba/3.0.25/sbin/winbindd [0x8003e591]
[2007/04/18 10:10:12, 0] lib/fault.c:dump_core(174)
  dumping core in /var/log/cores/winbindd
[2007/04/18 10:18:29, 10] lib/events.c:timed_event_destructor(66)
  Destroying timed event 8027be98 "check_domain_online_handler"



I also have an extract from /var/log/messages (not the same time frame
as the core dump above, but related to the attempt of offline logon     
(pam_sm_authenticate) )


Apr 17 11:23:09 ul000073 kernel: tg3: eth0: Link is down.
Apr 17 11:23:09 ul000073 dhclient: caught deadly SIGTERM
Apr 17 11:23:09 ul000073 dhclient: could not restore resolv.conf: No
such file or directory
Apr 17 11:23:09 ul000073 dhclient: DHCPRELEASE on eth0 to 10.41.80.66
port 67
Apr 17 11:23:10 ul000073 ntpd[16214]: ntpd exiting on signal 15
Apr 17 11:23:48 ul000073 login[19210]: pam_winbind(login:auth): [pamh:
0x08054508] ENTER: pam_sm_authenticate (flags: 0x0000)
Apr 17 11:23:48 ul000073 login[19210]: pam_winbind(login:auth): getting
password (0x00000391)
Apr 17 11:23:48 ul000073 login[19210]: pam_winbind(login:auth):
pam_get_item returned a password
Apr 17 11:23:48 ul000073 login[19210]: pam_winbind(login:auth): Verify
user 'testuser'
Apr 17 11:23:48 ul000073 login[19210]: pam_winbind(login:auth): CONFIG
file: krb5_ccache_type 'FILE'
Apr 17 11:23:48 ul000073 login[19210]: pam_winbind(login:auth): enabling
krb5 login flag
Apr 17 11:23:48 ul000073 login[19210]: pam_winbind(login:auth): enabling
cached login flag
Apr 17 11:23:48 ul000073 login[19210]: pam_winbind(login:auth): enabling
request for a FILE krb5 ccache
Apr 17 11:23:48 ul000073 login[19210]: pam_winbind(login:auth): user
'testuser' granted access
Apr 17 11:23:48 ul000073 login[19210]: pam_winbind(login:auth): User
testuser logged on using cached account
Apr 17 11:23:48 ul000073 login[19210]: pam_winbind(login:auth): request
returned KRB5CCNAME: FILE:/tmp/krb5cc_1730
Apr 17 11:23:48 ul000073 login[19210]: pam_winbind(login:auth): Returned
user was 'testuser'
Apr 17 11:23:48 ul000073 login[19210]: pam_winbind(login:auth): [pamh:
0x08054508] LEAVE: pam_sm_authenticate returning 0
Apr 17 11:24:18 ul000073 login[19210]: FAILED LOGIN 1 FROM /dev/tty2 FOR
, User not known to the underlying authentication module
Apr 17 11:24:59 ul000073 login[22986]: pam_winbind(login:auth): [pamh:
0x08054508] ENTER: pam_sm_authenticate (flags: 0x0000)
Apr 17 11:24:59 ul000073 login[22986]: pam_winbind(login:auth): getting
password (0x00000391)
Apr 17 11:24:59 ul000073 login[22986]: pam_winbind(login:auth):
pam_get_item returned a password
Apr 17 11:24:59 ul000073 login[22986]: pam_winbind(login:auth): Verify
user 'testuser'
Apr 17 11:24:59 ul000073 login[22986]: pam_winbind(login:auth): CONFIG
file: krb5_ccache_type 'FILE'
Apr 17 11:24:59 ul000073 login[22986]: pam_winbind(login:auth): [pamh:
0x08054508] LEAVE: pam_sm_authenticate returning 10
Apr 17 11:24:59 ul000073 login[22986]: pam_winbind(login:account):
[pamh: 0x08054508] ENTER: pam_sm_acct_mgmt (flags: 0x0000)
Apr 17 11:24:59 ul000073 login[22986]: pam_winbind(login:account): user
'testuser' not found
Apr 17 11:24:59 ul000073 login[22986]: pam_winbind(login:account):
[pamh: 0x08054508] LEAVE: pam_sm_acct_mgmt returning 10
Apr 17 11:24:59 ul000073 login[22986]: User not known to the underlying
authentication module


-----Original Message-----
From: Gerald (Jerry) Carter [mailto:jerry at samba.org] 
Sent: den 17 april 2007 18:23
To: Strandberg Anders
Cc: samba at lists.samba.org
Subject: Re: [Samba] pam_winbind.c

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

Anders.Strandberg at tietoenator.com wrote:
> Hi,
> 
> I get this warning when compiling 3.0.25rc1 on SLED 10:
> 
> Compiling nsswitch/pam_winbind.c
> nsswitch/pam_winbind.c: In function `pam_sm_authenticate':
> nsswitch/pam_winbind.c:1623: warning: passing arg 1 of `free' discards

> qualifiers from pointer target type
> 
> corresponds to :
> 
>         if ( real_username ) {
>                 free( real_username );
>         }

This is just a const warning IIRC.

> This is the only warning and the build continues and finishes OK. I 
> also get a core dump when attempting an offline logon using winbind 
> with idmap against AD. As far as I can see this is the approximatley 
> the spot where the core dump occurs.

A core dump in what process?





cheers, jerry
=====================================================================
Samba                                    ------- http://www.samba.org
Centeris                         -----------  http://www.centeris.com
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGJPRfIR7qMdg1EfYRAskgAKDcs4q5tjVYAiTitDJt/N/IUX0/gwCfd0TB
OK0k7UtiNL+x8WkFXzLi57w=
=CEbf
-----END PGP SIGNATURE-----


More information about the samba mailing list