Bug 6178 - Samba crashes on startup with ldap
Summary: Samba crashes on startup with ldap
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Domain Control (show other bugs)
Version: 3.2.3
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-10 11:37 UTC by Stefan
Modified: 2009-03-11 02:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan 2009-03-10 11:37:07 UTC
Hi,

i don't know if its a bug, but i wanna post this output of my log.smbd. This happens when I startup the samba. It should connect to my openLdap but it didn't. The OpenLdap Server works fine, I can add/modifiy users, groups etc. 

This is supposed to be an PDC, in the near future i wanna add a BDC. Thats why I need the LDAP support. But i always get stuck on this error.

I hope you can help me. In addition I post my smb.conf ... If you need to know anything more, let me know :-)

  Copyright Andrew Tridgell and the Samba Team 1992-2008
[2009/03/10 17:23:11,  0] lib/smbldap_util.c:smbldap_search_domain_info(310)
  smbldap_search_domain_info: Adding domain info for APS failed with NT_STATUS_U
NSUCCESSFUL
[2009/03/10 17:23:41,  0] lib/fault.c:fault_report(40)
  ===============================================================
[2009/03/10 17:23:41,  0] lib/fault.c:fault_report(41)
  INTERNAL ERROR: Signal 6 in pid 14607 (3.2.3)
  Please read the Trouble-Shooting section of the Samba3-HOWTO
[2009/03/10 17:23:41,  0] lib/fault.c:fault_report(43)
  
  From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2009/03/10 17:23:41,  0] lib/fault.c:fault_report(44)
  ===============================================================
[2009/03/10 17:23:41,  0] lib/util.c:smb_panic(1663)
  PANIC (pid 14607): internal error
[2009/03/10 17:23:41,  0] lib/util.c:log_stack_trace(1767)
  BACKTRACE: 11 stack frames:
   #0 /usr/sbin/smbd(log_stack_trace+0x1c) [0x7f1e208e7ccd]
   #1 /usr/sbin/smbd(smb_panic+0x5b) [0x7f1e208e7ddb]
   #2 /usr/sbin/smbd [0x7f1e208d44c4]
   #3 /lib/libpthread.so.0 [0x7f1e1ee9e0f0]
   #4 /lib/libc.so.6(gsignal+0x35) [0x7f1e1d42c015]
   #5 /lib/libc.so.6(abort+0x183) [0x7f1e1d42db83]
   #6 /usr/lib/libtalloc.so.1(talloc_free+0x1f1) [0x7f1e1d979c51]
   #7 /usr/sbin/smbd(init_guest_info+0xca) [0x7f1e20928baa]
   #8 /usr/sbin/smbd(main+0xa4f) [0x7f1e207a724c]
   #9 /lib/libc.so.6(__libc_start_main+0xe6) [0x7f1e1d417466]
   #10 /usr/sbin/smbd [0x7f1e207a5d89]
[2009/03/10 17:23:41,  0] lib/fault.c:dump_core(201)
  dumping core in /var/log/samba/cores/smbd

SMB.CONF

[global]
  unix charset = LOCALE
  workgroup = APS
  netbios name = augustus
  comment = %h samba server (APS) PDC
  interfaces = eth0,lo,lo:0
  log level = 1
  syslog = 0
  time server = Yes

  
  os level = 33
  preferred master = yes
  domain master = yes
  local master = yes
  security = user
  domain logons = yes
  wins support = yes
  logon path = \\caligula.aps.intern\profiles\%u
  logon drive = H:
  logon script = logon.cmd
  logon home = \\caligula.aps.intern\profiles\%u

  #passdb backend = tdbsam
  passdb backend = ldapsam:ldap://127.0.0.1
  #passdb backend = ldapsam:"ldap://192.168.0.200 ldap://192.168.0.210"
  #passdb backend = ldapsam:"ldap://augustus.aps.intern ldap://tiberius.aps.intern"
  #encrypt passwords = yes

  add user script = /usr/sbin/smbldap-useradd -m '%u'
  delete user script = /usr/sbin/smbldap-userdel '%u'
  add group script = /usr/sbin/smbldap-groupadd '%g'
  delete group script = /usr/sbin/smbldap-groupdel '%g'
  add user to group script = /usr/sbin/smbldap-groupmod -m '%g' '%u'
  delete user from group script = /usr/sbin/smbldap-groupmod -x '%g' '%u'
  set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
  add machine script = /usr/sbin/smbldap-useradd -w '%u'
  shutdown script = /var/lib/samba/scripts/shutdown.sh
  abort shutdown script = /sbin/shutdown -c
  add machine script = /usr/sbin/useradd -d /dev/null -g clientpc -s /bin/false %u

# performance optimization all users stored in ldap
  ldapsam:trusted = yes
  ldap suffix = dc=aps,dc=intern
  ldap machine suffix = ou=Computers,ou=Users
  ldap user suffix = ou=People,ou=Users
  ldap group suffix = ou=Groups
  ldap idmap suffix = ou=Idmap
  ldap admin dn = cn=admin,dc=aps,dc=intern
  idmap backend = ldap://127.0.0.1

  

  #add user script = /usr/sbin/useradd -m %u
  #delete user script = /usr/sbin/userdel -r %u
  #add group script = /usr/sbin/groupadd %g
  #delete group script = /usr/sbin/groupdel %g
  #add user to group script = /usr/sbin/groupmod -A %u %g
  #delete user from group script = /usr/sbin/groupmod -R %u %g
  #add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u


[homes]
  comment = Home Directories
  valid users = %S
  read only = No
  browseable = No

[netlogon]
  comment = Network Logon Service
  path = /var/lib/samba/netlogon
  read only = yes
  write list = ntadmin

[profiles]
  comment = Profile Share
  path = /var/lib/samba/profiles
  read only = No
  create mask = 0600
  directory mask = 0700
  browsable = no
  guest ok = no
Comment 1 Volker Lendecke 2009-03-11 02:10:20 UTC
It is highly likely that this is a configuration problem with your LDAP and not really a bug in Samba, that's why I'm closing this as invalid.

I would guess that your Samba daemon is just not able to write to your LDAP DIT, possibly due to access controls or another mis-configuration of either Samba or LDAP.

Please post your smb.conf and a network trace between smbd and your LDAP server to the Samba users' mailing list samba@samba.org. Information on how to create useful network traces can be found under

http://wiki.samba.org/index.php/Capture_Packets

Thanks,

Volker