[samba] ldapsam:trusted = yes kills smbd

Daniel Wilson daniel.wilson at sunderland.ac.uk
Thu Sep 29 21:43:26 GMT 2005


Hi,

Compiled as:

bash# ./configure --prefix=/usr/local/uni-staff --with-ldapsam

no didnt know was unsafe with threads!!

out put from single step:


(gdb) b smbldap_search
Breakpoint 1 at 0x5daa33
(gdb) n
The program is not being run.
(gdb) run
Starting program: /usr/local/uni-staff/sbin/smbd -d 10 -i
get_current_groups: user is in 1 groups: 0
smbd version 3.0.14a started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
uid=0 gid=0 euid=0 egid=0
Build environment:
   Built by:    root at ketwol
   Built on:    Thu Jun 30 16:17:25 BST 2005
   Built using: gcc
   Build host:  Linux ketwol 2.6.8-24.14-smp #1 SMP Tue Mar 29 
09:27:43 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux
   SRCDIR:      /opt/samba-3.0.14a/source
   BUILDDIR:    /opt/samba-3.0.14a/source

Paths:
   SBINDIR: /usr/local/uni-staff//sbin
   BINDIR: /usr/local/uni-staff//bin
   SWATDIR: /usr/local/uni-staff//swat
   CONFIGFILE: /usr/local/uni-staff//lib/smb.conf
   LOGFILEBASE: /usr/local/uni-staff//var
   LMHOSTSFILE: /usr/local/uni-staff//lib/lmhosts
   LIBDIR: /usr/local/uni-staff//lib
   SHLIBEXT: so
   LOCKDIR: /usr/local/uni-staff//var/locks
   PIDDIR: /usr/local/uni-staff//var/locks
   SMB_PASSWD_FILE: /usr/local/uni-staff//private/smbpasswd
   PRIVATE_DIR: /usr/local/uni-staff//private

 System Headers:
   HAVE_SYS_CAPABILITY_H
   HAVE_SYS_CDEFS_H
   HAVE_SYS_FCNTL_H
   HAVE_SYS_IOCTL_H
   HAVE_SYS_IPC_H
   HAVE_SYS_MMAN_H
   HAVE_SYS_MOUNT_H
   HAVE_SYS_PARAM_H
   HAVE_SYS_QUOTA_H
   HAVE_SYS_RESOURCE_H
   HAVE_SYS_SELECT_H
   HAVE_SYS_SHM_H
   HAVE_SYS_SOCKET_H
   HAVE_SYS_STATFS_H
   HAVE_SYS_STATVFS_H
   HAVE_SYS_STAT_H
   HAVE_SYS_SYSCALL_H
   HAVE_SYS_SYSLOG_H
   HAVE_SYS_SYSMACROS_H
   HAVE_SYS_TIME_H
   HAVE_SYS_TYPES_H
   HAVE_SYS_UNISTD_H
   HAVE_SYS_VFS_H
   HAVE_SYS_WAIT_H
   HAVE_SYS_XATTR_H

 Headers:
   HAVE_ARPA_INET_H
   HAVE_ASM_TYPES_H
   HAVE_CTYPE_H
   HAVE_DIRENT_H
   HAVE_DLFCN_H
   HAVE_EXECINFO_H
   HAVE_FCNTL_H
   HAVE_GLOB_H
   HAVE_GRP_H
   HAVE_INTTYPES_H
   HAVE_LANGINFO_H
   HAVE_LASTLOG_H
   HAVE_LBER_H
   HAVE_LDAP_H
   HAVE_LIMITS_H
   HAVE_LOCALE_H
   HAVE_MEMORY_H
   HAVE_MNTENT_H
   HAVE_NETINET_IN_SYSTM_H
   HAVE_NETINET_IP_H
   HAVE_NETINET_TCP_H
   HAVE_NET_IF_H
   HAVE_NSS_H
   HAVE_POLL_H
   HAVE_RPCSVC_NIS_H
   HAVE_RPCSVC_YPCLNT_H
   HAVE_RPCSVC_YP_PROT_H
   HAVE_RPC_RPC_H
   HAVE_SHADOW_H
   HAVE_STDARG_H
   HAVE_STDINT_H
   HAVE_STDLIB_H
   HAVE_STRINGS_H
   HAVE_STRING_H
   HAVE_STROPTS_H
   HAVE_SYSCALL_H
   HAVE_SYSLOG_H
   HAVE_TERMIOS_H
   HAVE_TERMIO_H
   HAVE_UNISTD_H
   HAVE_UTIME_H

 UTMP Options:
   HAVE_GETUTMPX
   HAVE_UTMPX_H
   HAVE_UTMP_H
   HAVE_UT_UT_ADDR
   HAVE_UT_UT_EXIT
   HAVE_UT_UT_HOST
   HAVE_UT_UT_ID
   HAVE_UT_UT_NAME
   HAVE_UT_UT_PID
   HAVE_UT_UT_TIME
   HAVE_UT_UT_TYPE
   HAVE_UT_UT_USER
   PUTUTLINE_RETURNS_UTMP
   WITH_UTMP

 HAVE_* Defines:
   HAVE_ASPRINTF
   HAVE_ASPRINTF_DECL
   HAVE_ATEXIT
   HAVE_BACKTRACE_SYMBOLS
   HAVE_BER_SCANF
   HAVE_C99_VSNPRINTF
   HAVE_CHMOD
   HAVE_CHOWN
   HAVE_CHROOT
   HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
   HAVE_CONNECT
   HAVE_CREAT64
   HAVE_CRYPT
   HAVE_DEVICE_MAJOR_FN
   HAVE_DEVICE_MINOR_FN
   HAVE_DIRENT_D_OFF
   HAVE_DLCLOSE
   HAVE_DLERROR
   HAVE_DLOPEN
   HAVE_DLSYM
   HAVE_DUP2
   HAVE_ENDMNTENT
   HAVE_ENDNETGRENT
   HAVE_ERRNO_DECL
   HAVE_EXECL
   HAVE_EXPLICIT_LARGEFILE_SUPPORT
   HAVE_FCHMOD
   HAVE_FCHOWN
   HAVE_FCNTL_LOCK
   HAVE_FCVT
   HAVE_FGETXATTR
   HAVE_FLISTXATTR
   HAVE_FOPEN64
   HAVE_FREMOVEXATTR
   HAVE_FSEEKO64
   HAVE_FSETXATTR
   HAVE_FSTAT
   HAVE_FSTAT64
   HAVE_FSYNC
   HAVE_FTELLO64
   HAVE_FTRUNCATE
   HAVE_FTRUNCATE64
   HAVE_FTRUNCATE_EXTEND
   HAVE_FUNCTION_MACRO
   HAVE_GETCWD
   HAVE_GETDIRENTRIES
   HAVE_GETGRENT
   HAVE_GETGRNAM
   HAVE_GETMNTENT
   HAVE_GETNETGRENT
   HAVE_GETRLIMIT
   HAVE_GETSPNAM
   HAVE_GETTIMEOFDAY_TZ
   HAVE_GETXATTR
   HAVE_GLOB
   HAVE_GRANTPT
   HAVE_ICONV
   HAVE_IFACE_IFCONF
   HAVE_IMMEDIATE_STRUCTURES
   HAVE_INITGROUPS
   HAVE_INNETGR
   HAVE_KERNEL_CHANGE_NOTIFY
   HAVE_KERNEL_OPLOCKS_LINUX
   HAVE_KERNEL_SHARE_MODES
   HAVE_LDAP
   HAVE_LDAP_DOMAIN2HOSTLIST
   HAVE_LDAP_INIT
   HAVE_LDAP_INITIALIZE
   HAVE_LDAP_SET_REBIND_PROC
   HAVE_LGETXATTR
   HAVE_LIBLBER
   HAVE_LIBLDAP
   HAVE_LINK
   HAVE_LISTXATTR
   HAVE_LLISTXATTR
   HAVE_LLSEEK
   HAVE_LONGLONG
   HAVE_LREMOVEXATTR
   HAVE_LSEEK64
   HAVE_LSETXATTR
   HAVE_LSTAT64
   HAVE_MAKEDEV
   HAVE_MEMMOVE
   HAVE_MEMSET
   HAVE_MKNOD
   HAVE_MKTIME
   HAVE_MMAP
   HAVE_NANOSLEEP
   HAVE_NATIVE_ICONV
   HAVE_NL_LANGINFO
   HAVE_NO_ACLS
   HAVE_OPEN64
   HAVE_PATHCONF
   HAVE_PIPE
   HAVE_POLL
   HAVE_PREAD
   HAVE_PREAD64
   HAVE_PUTUTLINE
   HAVE_PUTUTXLINE
   HAVE_PWRITE
   HAVE_PWRITE64
   HAVE_RAND
   HAVE_RANDOM
   HAVE_READDIR64
   HAVE_READLINK
   HAVE_REALPATH
   HAVE_REMOVEXATTR
   HAVE_RENAME
   HAVE_ROOT
   HAVE_SECURE_MKSTEMP
   HAVE_SELECT
   HAVE_SENDFILE64
   HAVE_SETBUFFER
   HAVE_SETENV
   HAVE_SETGROUPS
   HAVE_SETLINEBUF
   HAVE_SETLOCALE
   HAVE_SETMNTENT
   HAVE_SETNETGRENT
   HAVE_SETPGID
   HAVE_SETRESGID
   HAVE_SETRESGID_DECL
   HAVE_SETRESUID
   HAVE_SETRESUID_DECL
   HAVE_SETSID
   HAVE_SETXATTR
   HAVE_SHMGET
   HAVE_SIGACTION
   HAVE_SIGBLOCK
   HAVE_SIGPROCMASK
   HAVE_SIGSET
   HAVE_SIG_ATOMIC_T_TYPE
   HAVE_SNPRINTF
   HAVE_SNPRINTF_DECL
   HAVE_SOCKLEN_T_TYPE
   HAVE_SRAND
   HAVE_SRANDOM
   HAVE_STAT64
   HAVE_STAT_ST_BLKSIZE
   HAVE_STAT_ST_BLOCKS
   HAVE_STRCASECMP
   HAVE_STRCHR
   HAVE_STRDUP
   HAVE_STRERROR
   HAVE_STRFTIME
   HAVE_STRNDUP
   HAVE_STRNLEN
   HAVE_STRPBRK
   HAVE_STRTOUL
   HAVE_STRUCT_DIRENT64
   HAVE_STRUCT_FLOCK64
   HAVE_STRUCT_STAT_ST_RDEV
   HAVE_ST_RDEV
   HAVE_SYMLINK
   HAVE_SYSCALL
   HAVE_SYSCONF
   HAVE_SYSLOG
   HAVE_TIMEGM
   HAVE_UNIXSOCKET
   HAVE_UPDWTMP
   HAVE_UPDWTMPX
   HAVE_USLEEP
   HAVE_UTIMBUF
   HAVE_UTIME
   HAVE_UTIMES
   HAVE_VASPRINTF
   HAVE_VASPRINTF_DECL
   HAVE_VA_COPY
   HAVE_VOLATILE
   HAVE_VSNPRINTF
   HAVE_VSNPRINTF_DECL
   HAVE_VSYSLOG
   HAVE_WAITPID
   HAVE_YP_GET_DEFAULT_DOMAIN
   HAVE___CLOSE
   HAVE___DUP2
   HAVE___FCNTL
   HAVE___FORK
   HAVE___FSTAT
   HAVE___FXSTAT
   HAVE___LSEEK
   HAVE___LSTAT
   HAVE___LXSTAT
   HAVE___OPEN
   HAVE___OPEN64
   HAVE___PREAD64
   HAVE___PWRITE64
   HAVE___READ
   HAVE___STAT
   HAVE___WRITE
   HAVE___XSTAT

 --with Options:
   WITH_LDAP_SAMCONFIG
   WITH_SENDFILE
   WITH_UTMP
   WITH_WINBIND

 Build Options:
   BROKEN_NISPLUS_INCLUDE_FILES
   COMPILER_SUPPORTS_LL
   DEFAULT_DISPLAY_CHARSET
   DEFAULT_DOS_CHARSET
   DEFAULT_UNIX_CHARSET
   LDAP_SET_REBIND_PROC_ARGS
   LINUX
   LINUX_SENDFILE_API
   PACKAGE_BUGREPORT
   PACKAGE_NAME
   PACKAGE_STRING
   PACKAGE_TARNAME
   PACKAGE_VERSION
   REALPATH_TAKES_NULL
   REPLACE_GETPASS
   RETSIGTYPE
   SEEKDIR_RETURNS_VOID
   SIZEOF_INO_T
   SIZEOF_INT
   SIZEOF_LONG
   SIZEOF_OFF_T
   SIZEOF_SHORT
   STAT_STATVFS64
   STAT_ST_BLOCKSIZE
   STDC_HEADERS
   STRING_STATIC_MODULES
   SYSCONF_SC_NGROUPS_MAX
   TIME_WITH_SYS_TIME
   USE_SETRESUID
   WITH_LDAP_SAMCONFIG
   WITH_SENDFILE
   WITH_WINBIND
   _FILE_OFFSET_BITS
   _GNU_SOURCE
   _LARGEFILE64_SOURCE
   _POSIX_C_SOURCE
   _POSIX_SOURCE
   charset_CP437_init
   charset_CP850_init
   offset_t
   static_init_auth
   static_init_charset
   static_init_idmap
   static_init_pdb
   static_init_rpc
   static_init_vfs
   vfs_audit_init
   vfs_cap_init
   vfs_default_quota_init
   vfs_expand_msdfs_init
   vfs_extd_audit_init
   vfs_fake_perms_init
   vfs_full_audit_init
   vfs_netatalk_init
   vfs_readonly_init
   vfs_recycle_init
   vfs_shadow_copy_init

Type sizes:
   sizeof(char):    1
   sizeof(int):     4
   sizeof(long):    8
   sizeof(uint8):   1
   sizeof(uint16):  2
   sizeof(uint32):  4
   sizeof(short):   2
   sizeof(void*):   8

Builtin modules:
    pdb_ldap pdb_smbpasswd pdb_tdbsam pdb_guest rpc_lsa rpc_reg 
rpc_lsa_ds rpc_wks rpc_net rpc_dfs rpc_srv rpc_spoolss rpc_samr 
idmap_ldap idmap_tdb auth_rhosts auth_sam auth_unix auth_winbind 
auth_server auth_domain auth_builtin
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/usr/local/uni-
staff//lib/smb.conf"
Processing section "[global]"
doing parameter netbios name = ketwol
handle_netbios_name: set global_myname to: KETWOL
doing parameter workgroup = uni-staff
doing parameter enable privileges = yes
doing parameter passdb backend = ldapsam:ldap://vila.sunderland.ac.uk
doing parameter ldap delete dn = no
doing parameter ldap suffix = dc=sunderland,dc=ac,dc=uk
doing parameter ldap machine suffix = ou=uos,ou=domains,ou=network
doing parameter ldap group suffix = ou=groups,ou=filestore
doing parameter ldap admin dn = "cn=Directory Manager"
doing parameter ldap ssl = on
doing parameter ldap passwd sync = yes
doing parameter idmap backend = ldap:ldap://vila.sunderland.ac.uk
doing parameter ldap idmap suffix = 
ou=groups,ou=filestore,dc=sunderland,dc=ac,dc=uk
doing parameter os level = 33
doing parameter log level = 2
doing parameter preferred master = yes
doing parameter domain master = yes
doing parameter local master = yes
doing parameter security = user
doing parameter domain logons = yes
doing parameter logon home =
doing parameter logon path =
doing parameter username map = /mnt/netlogon/usermap
doing parameter interfaces = eth0
doing parameter bind interfaces only = Yes
doing parameter ldapsam:trusted = yes
Processing section "[netlogon]"
add_a_service: Creating snum = 0 for netlogon
doing parameter comment = netlogon share
doing parameter path = /mnt/netlogon
doing parameter read only = yes
pm_process() returned Yes
lp_servicenumber: couldn't find homes
add_a_service: Creating snum = 1 for IPC$
adding IPC service
add_a_service: Creating snum = 2 for ADMIN$
adding IPC service
set_server_role: role = ROLE_DOMAIN_PDC
Attempting to register new charset UCS-2LE
Registered charset UCS-2LE
Attempting to register new charset UTF-16LE
Registered charset UTF-16LE
Attempting to register new charset UCS-2BE
Registered charset UCS-2BE
Attempting to register new charset UTF-16BE
Registered charset UTF-16BE
Attempting to register new charset UTF8
Registered charset UTF8
Attempting to register new charset UTF-8
Registered charset UTF-8
Attempting to register new charset ASCII
Registered charset ASCII
Attempting to register new charset 646
Registered charset 646
Attempting to register new charset ISO-8859-1
Registered charset ISO-8859-1
Attempting to register new charset UCS2-HEX
Registered charset UCS2-HEX
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
lp_servicenumber: couldn't find printers
reloading printcap cache
reload status: ok
reloading printcap cache
reload status: ok
lp_servicenumber: couldn't find printers
lp_servicenumber: couldn't find printers
lp_file_list_changed()
file /usr/local/uni-staff//lib/smb.conf -> /usr/local/uni-
staff//lib/smb.conf  last mod_time: Thu Sep 29 22:23:01 2005

added interface ip=157.228.98.42 bcast=157.228.255.255 
nmask=255.255.0.0
Netbios name list:-
my_netbios_names[0]="KETWOL"
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
NT user token: (NULL)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
Trying to load: ldapsam:ldap://vila.sunderland.ac.uk
Attempting to register passdb backend ldapsam
Successfully added passdb backend 'ldapsam'
Attempting to register passdb backend ldapsam_compat
Successfully added passdb backend 'ldapsam_compat'
Attempting to register passdb backend NDS_ldapsam
Successfully added passdb backend 'NDS_ldapsam'
Attempting to register passdb backend NDS_ldapsam_compat
Successfully added passdb backend 'NDS_ldapsam_compat'
Attempting to register passdb backend smbpasswd
Successfully added passdb backend 'smbpasswd'
Attempting to register passdb backend tdbsam
Successfully added passdb backend 'tdbsam'
Attempting to register passdb backend guest
Successfully added passdb backend 'guest'
Attempting to find an passdb backend to match 
ldapsam:ldap://vila.sunderland.ac.uk (ldapsam)
Found pdb backend ldapsam
Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=UNI-STAFF))]

Breakpoint 1, 0x00000000005daa33 in smbldap_search ()
(gdb)
(gdb)
(gdb) n
Single stepping until exit from function smbldap_search,
which has no line number information.
smbldap_search: base => [dc=sunderland,dc=ac,dc=uk], filter => [(&
(objectClass=sambaDomain)(sambaDomainName=UNI-STAFF))], scope => [2]
The connection to the LDAP server was closed
smbldap_open_connection: ldap://vila.sunderland.ac.uk
smbldap_open_connection: connection opened
ldap_connect_system: Binding to ldap server 
ldap://vila.sunderland.ac.uk as "cn=Directory Manager"
ldap_connect_system: succesful connection to the LDAP server
ldap_connect_system: LDAP server does not support paged results
The LDAP server is succesfully connected
0x00000000005db1b7 in smbldap_search_suffix ()
(gdb) n
Single stepping until exit from function smbldap_search_suffix,
which has no line number information.
0x00000000005dbbdb in smbldap_search_domain_info ()
(gdb) n
Single stepping until exit from function smbldap_search_domain_info,
which has no line number information.
0x000000000055b097 in pdb_init_ldapsam ()
(gdb) n
Single stepping until exit from function pdb_init_ldapsam,
which has no line number information.
0x000000000054fa91 in make_pdb_methods_name ()
(gdb) n
Single stepping until exit from function make_pdb_methods_name,
which has no line number information.
pdb backend ldapsam:ldap://vila.sunderland.ac.uk has a valid init
0x000000000054ff14 in make_pdb_context_list ()
(gdb) n
Single stepping until exit from function make_pdb_context_list,
which has no line number information.
Attempting to find an passdb backend to match guest (guest)
Found pdb backend guest
pdb backend guest has a valid init
0x00000000005501b2 in pdb_get_static_context ()
(gdb) n
Single stepping until exit from function pdb_get_static_context,
which has no line number information.
0x00000000005502f5 in pdb_getsampwsid ()
(gdb) n
Single stepping until exit from function pdb_getsampwsid,
which has no line number information.

Breakpoint 1, 0x00000000005daa33 in smbldap_search ()
(gdb) n
Single stepping until exit from function smbldap_search,
which has no line number information.
smbldap_search: base => [dc=sunderland,dc=ac,dc=uk], filter => [(&
(sambaSID=S-1-5-21-82148923-2461359520-1342846908-501)
(objectclass=sambaSamAccount))], scope => [2]
0x00000000005db1b7 in smbldap_search_suffix ()
(gdb) n
Single stepping until exit from function smbldap_search_suffix,
which has no line number information.
0x0000000000553db8 in ldapsam_search_suffix_by_sid ()
(gdb) n
Single stepping until exit from function ldapsam_search_suffix_by_sid,
which has no line number information.
0x00000000005569c6 in ldapsam_get_ldap_user_by_sid ()
(gdb) n
Single stepping until exit from function ldapsam_get_ldap_user_by_sid,
which has no line number information.
0x0000000000556a73 in ldapsam_getsampwsid ()
(gdb) n
Single stepping until exit from function ldapsam_getsampwsid,
which has no line number information.
ldapsam_getsampwsid: Unable to locate SID [S-1-5-21-82148923-
2461359520-1342846908-501] count=0
0x000000000054e9a7 in context_getsampwsid ()
(gdb) n
Single stepping until exit from function context_getsampwsid,
which has no line number information.
pdb_set_username: setting username nobody, was
pdb_set_full_name: setting full name nobody, was
pdb_set_domain: setting domain UNI-STAFF, was
pdb_set_user_sid: setting user sid S-1-5-21-82148923-2461359520-
1342846908-501
pdb_set_user_sid_from_rid:
        setting user sid S-1-5-21-82148923-2461359520-1342846908-501 
from rid 501
pdb_set_group_sid: setting group sid S-1-5-21-82148923-2461359520-
1342846908-514
pdb_set_group_sid_from_rid:
        setting group sid S-1-5-21-82148923-2461359520-1342846908-514 
from rid 514
0x0000000000550345 in pdb_getsampwsid ()
(gdb) n
Single stepping until exit from function pdb_getsampwsid,
which has no line number information.
0x00000000005b5306 in make_new_server_info_guest ()
(gdb) n
Single stepping until exit from function make_new_server_info_guest,
which has no line number information.
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[Thread debugging using libthread_db enabled]
[New Thread 182909114432 (LWP 8489)]
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
NT user token: (NULL)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
[Switching to Thread 182909114432 (LWP 8489)]

Breakpoint 1, 0x00000000005daa33 in smbldap_search ()
(gdb) n
Single stepping until exit from function smbldap_search,
which has no line number information.
smbldap_search: base => 
[ou=groups,ou=filestore,dc=sunderland,dc=ac,dc=uk], filter => [(&
(objectClass=posixGroup)(|(memberUid=nobody)(gidNumber=65533)))], 
scope => [2]
0x0000000000559503 in ldapsam_enum_group_memberships ()
(gdb) n
Single stepping until exit from function 
ldapsam_enum_group_memberships,
which has no line number information.
primary group of [nobody] not found
0x000000000054f349 in context_enum_group_memberships ()
(gdb) n
Single stepping until exit from function 
context_enum_group_memberships,
which has no line number information.
0x00000000005507e4 in pdb_enum_group_memberships ()
(gdb) n
Single stepping until exit from function pdb_enum_group_memberships,
which has no line number information.
0x00000000005b4b5d in get_user_groups ()
(gdb) n
Single stepping until exit from function get_user_groups,
which has no line number information.
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
0x00000000005b4e96 in add_user_groups ()
(gdb) n
Single stepping until exit from function add_user_groups,
which has no line number information.
get_user_groups_from_local_sam failed
attempting to free (and zero) a server_info structure
0x00000000005b514f in make_server_info_sam ()
(gdb) n
Single stepping until exit from function make_server_info_sam,
which has no line number information.
attempting to free (and zero) a server_info structure
0x00000000005b5328 in make_new_server_info_guest ()
(gdb) n
Single stepping until exit from function make_new_server_info_guest,
which has no line number information.
0x00000000005b547d in init_guest_info ()
(gdb) n
Single stepping until exit from function init_guest_info,
which has no line number information.
0x00000000005dd880 in main ()
(gdb) n
Single stepping until exit from function main,
which has no line number information.
0x0000002a95c2100d in __libc_start_main () from /lib64/tls/libc.so.6
(gdb) n
Single stepping until exit from function __libc_start_main,
which has no line number information.

Program exited with code 0377.
(gdb) n

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Daniel Wilson
Systems Administrator

IT & Communications Service
University of Sunderland
Unit1 Technology Park
Chester Road
Sunderland
SR2 7PT

Tel: 0191 515 2695

This e-mail contains information which is confidential and may be 
privileged and is for the exclusive use of the recipient. 
It is the responsibility of the recipient to ensure that this message 
and its attachments are virus free. 
Any views or opinions presented are solely those of the author and do 
not necessarily represent those of the University, unless otherwise 
specifically
stated. 

----- Original Message -----
From: Jeremy Allison <jra at samba.org>
Date: Thursday, September 29, 2005 10:25 pm
Subject: Re: [samba] ldapsam:trusted = yes kills smbd

> On Thu, Sep 29, 2005 at 10:25:11PM +0100, Daniel Wilson wrote:
> > ok done that and produces this: (which ends in "Cannot access 
> memory 
> > at address 0x7fc0000000")
> > ....
> > ..
> > 
> > [Thread debugging using libthread_db enabled]
> > [New Thread 182909114432 (LWP 8451)]
> > push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
> > push_conn_ctx(0) : conn_ctx_stack_ndx = 0
> > setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
> > NT user token: (NULL)
> > UNIX token of user 0
> > Primary group is 0 and contains 0 supplementary groups
> > smbldap_search: base => 
> > [ou=groups,ou=filestore,dc=sunderland,dc=ac,dc=uk], filter => [(&
> > 
> (objectClass=posixGroup)(|(memberUid=nobody)(gidNumber=65533)))], 
> > scope => [2]
> > primary group of [nobody] not found
> > pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
> > get_user_groups_from_local_sam failed
> > attempting to free (and zero) a server_info structure
> > attempting to free (and zero) a server_info structure
> > [Switching to Thread 182909114432 (LWP 8451)]
> 
> Ah - this isn't useful I'm afraid, but there is something
> interesting here - why is smbd using threads ? You do know
> it's not thread safe...
> 
> I'm afraid you'll need to set a breakpoint on smbldap_search
> and then single step until the thing exits to see what it's
> doing. How are you building smbd - it shouldn't be linked to
> pthreads.
> 
> Jeremy.
> 


More information about the samba mailing list