gdb smbpasswdGNU gdb (Debian 7.7.1+dfsg-5) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i586-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from smbpasswd...done. (gdb) run -a ldap05 Starting program: /usr/local/samba/bin/smbpasswd -a ldap05 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1". INFO: Current debug levels: all: 10 tdb: 10 printdrivers: 10 lanman: 10 smb: 10 rpc_parse: 10 rpc_srv: 10 rpc_cli: 10 passdb: 10 sam: 10 auth: 10 winbind: 10 vfs: 10 idmap: 10 quota: 10 acls: 10 locking: 10 msdfs: 10 dmapi: 10 registry: 10 scavenger: 10 dns: 10 ldb: 10 tevent: 10 doing parameter printing = bsd doing parameter printcap name = /dev/null doing parameter store dos attributes = yes doing parameter map read only = no doing parameter map archive = no doing parameter dos filetime resolution = yes doing parameter fake directory create times = yes doing parameter csc policy = disable pm_process() returned Yes lp_servicenumber: couldn't find homes Netbios name list:- my_netbios_names[0]="TESTPDC" 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 wbc_sam Successfully added passdb backend 'wbc_sam' Attempting to register passdb backend samba_dsdb Successfully added passdb backend 'samba_dsdb' Attempting to register passdb backend samba4 Successfully added passdb backend 'samba4' Attempting to register passdb backend ldapsam Successfully added passdb backend 'ldapsam' Attempting to register passdb backend NDS_ldapsam Successfully added passdb backend 'NDS_ldapsam' Attempting to register passdb backend IPA_ldapsam Successfully added passdb backend 'IPA_ldapsam' Attempting to find a passdb backend to match ldapsam (ldapsam) Found pdb backend ldapsam smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=EXAMPLE))] smbldap_search_ext: base => [dc=example,dc=com], filter => [(&(objectClass=sambaDomain)(sambaDomainName=EXAMPLE))], scope => [2] The connection to the LDAP server was closed smb_ldap_setup_connection: ldap://localhost StartTLS issued: using a TLS connection smbldap_open_connection: connection opened ldap_connect_system: Binding to ldap server ldap://localhost as "cn=admin,dc=example,dc=com" ldap_connect_system: successful connection to the LDAP server ldap_connect_system: LDAP server does support paged results The LDAP server is successfully connected pdb backend ldapsam has a valid init New SMB password: Retype new SMB password: smbldap_search_ext: base => [dc=example,dc=com], filter => [(&(uid=ldap05)(objectclass=sambaSamAccount))], scope => [2] ldapsam_getsampwnam: Unable to locate user [ldap05] count=0 smbldap_search_ext: base => [dc=example,dc=com], filter => [(&(uid=ldap05)(objectClass=posixAccount))], scope => [2] smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=EXAMPLE))] smbldap_search_ext: base => [dc=example,dc=com], filter => [(&(objectClass=sambaDomain)(sambaDomainName=EXAMPLE))], scope => [2] attribute sambaNextGroupRid does not exist smbldap_make_mod: deleting attribute |sambaNextRid| values |1006| smbldap_make_mod: adding attribute |sambaNextRid| value |1007| smbldap_modify: dn => [sambaDomainName=EXAMPLE,dc=example,dc=com] pdb_set_username: setting username ldap05, was pdb_set_domain: setting domain EXAMPLE, was pdb_set_user_sid: setting user sid S-1-5-21-2191808595-1146454302-329779850-1007 smbldap_make_mod: adding attribute |uid| value |ldap05| init_ldap_from_sam: Setting entry for user: ldap05 smbldap_make_mod: adding attribute |sambaSID| value |S-1-5-21-2191808595-1146454302-329779850-1007| smbldap_make_mod: adding attribute |sambaAcctFlags| value |[DU ]| ldapsam_create_user: Creating new posix user Opening cache file at /usr/local/samba/var/cache/gencache.tdb Opening cache file at /usr/local/samba/var/lock/gencache_notrans.tdb Parsing value for key [IDMAP/SID2XID/S-1-5-21-2191808595-1146454302-329779850-513]: value=[2000:G] Parsing value for key [IDMAP/SID2XID/S-1-5-21-2191808595-1146454302-329779850-513]: id=[2000], endptr=[:G] sid S-1-5-21-2191808595-1146454302-329779850-513 -> gid 2000 smbldap_add: dn => [uid=ldap05,ou=users,dc=example,dc=com] ldapsam_create_user: added account [ldap05] in the LDAP database smbldap_search_ext: base => [dc=example,dc=com], filter => [(&(uid=ldap05)(objectclass=sambaSamAccount))], scope => [2] init_sam_from_ldap: Entry found for user: ldap05 pdb_set_username: setting username ldap05, was pdb_set_domain: setting domain EXAMPLE, was pdb_set_nt_username: setting nt username ldap05, was pdb_set_user_sid_from_string: setting user sid S-1-5-21-2191808595-1146454302-329779850-1007 pdb_set_user_sid: setting user sid S-1-5-21-2191808595-1146454302-329779850-1007 attribute sambaPwdLastSet does not exist attribute sambaLogonTime does not exist attribute sambaLogoffTime does not exist attribute sambaKickoffTime does not exist attribute sambaPwdCanChange does not exist attribute displayName does not exist pdb_set_full_name: setting full name ldap05, was attribute sambaHomeDrive does not exist pdb_set_dir_drive: setting dir drive , was NULL attribute sambaHomePath does not exist pdb_set_homedir: setting home dir , was attribute sambaLogonScript does not exist pdb_set_logon_script: setting logon script , was attribute sambaProfilePath does not exist pdb_set_profile_path: setting profile path , was attribute description does not exist attribute sambaUserWorkstations does not exist attribute sambaMungedDial does not exist attribute sambaLMPassword does not exist attribute sambaNTPassword does not exist Adding cache entry with key=[ACCT_POL/password history] and timeout=[Thu Jan 1 01:00:00 1970 BST] (-1456834221 seconds in the past) ldapsam_get_account_policy_from_ldap smbldap_search_ext: base => [sambaDomainName=EXAMPLE,dc=example,dc=com], filter => [(objectClass=sambaDomain)], scope => [0] cache_account_policy_set: updating account pol cache Adding cache entry with key=[ACCT_POL/password history] and timeout=[Tue Mar 1 12:11:21 2016 GMT] (60 seconds ahead) attribute sambaBadPasswordCount does not exist attribute sambaBadPasswordTime does not exist attribute sambaLogonHours does not exist attribute gecos does not exist Adding cache entry with key=[IDMAP/SID2XID/S-1-5-21-2191808595-1146454302-329779850-1007] and timeout=[Tue Mar 8 12:10:21 2016 GMT] (604800 seconds ahead) Adding cache entry with key=[IDMAP/UID2SID/2004] and timeout=[Tue Mar 8 12:10:21 2016 GMT] (604800 seconds ahead) gid 2000 -> sid S-1-5-21-2191808595-1146454302-329779850-513 gid 2000 -> sid S-1-5-21-2191808595-1146454302-329779850-513 Did not store value for IDMAP/SID2XID/S-1-5-21-2191808595-1146454302-329779850-513, we already got it Did not store value for IDMAP/GID2SID/2000, we already got it Opening cache file at /usr/local/samba/var/cache/login_cache.tdb Looking up login cache for user ldap05 No cache entry found No cache entry, bad count = 0, bad time = 0 pdb_set_username: setting username ldap05, was pdb_set_domain: setting domain EXAMPLE, was pdb_set_nt_username: setting nt username ldap05, was pdb_set_full_name: setting full name ldap05, was pdb_set_homedir: setting home dir , was pdb_set_dir_drive: setting dir drive , was NULL pdb_set_logon_script: setting logon script , was pdb_set_profile_path: setting profile path , was pdb_set_workstations: setting workstations , was pdb_set_user_sid: setting user sid S-1-5-21-2191808595-1146454302-329779850-1007 pdb_set_user_sid_from_rid: setting user sid S-1-5-21-2191808595-1146454302-329779850-1007 from rid 1007 pdb_set_group_sid: setting group sid S-1-5-21-2191808595-1146454302-329779850-513 ldapsam_update_sam_account: user ldap05 to be modified has dn: uid=ldap05,ou=users,dc=example,dc=com init_ldap_from_sam: Setting entry for user: ldap05 smbldap_get_single_attribute: [sambaLMPassword] = [] smbldap_get_single_attribute: [sambaNTPassword] = [] smbldap_make_mod: adding attribute |sambaNTPassword| value |EF82A6C17193B4E20D1AE4B45408E606| smbldap_get_single_attribute: [sambaPasswordHistory] = [] smbldap_make_mod: adding attribute |sambaPasswordHistory| value |0000000000000000000000000000000000000000000000000000000000000000| smbldap_get_single_attribute: [sambaPwdLastSet] = [] smbldap_make_mod: adding attribute |sambaPwdLastSet| value |1456834221| smbldap_make_mod: deleting attribute |sambaAcctFlags| values |[DU ]| smbldap_make_mod: adding attribute |sambaAcctFlags| value |[U ]| ldapsam_modify_entry: LDAP Password changed for user ldap05 smbldap_modify: dn => [uid=ldap05,ou=users,dc=example,dc=com] ldapsam_update_sam_account: successfully modified uid = ldap05 in the LDAP database Added user ldap05. Program received signal SIGSEGV, Segmentation fault. 0xb7140578 in ldap_mods_free () from /usr/lib/i386-linux-gnu/libldap_r-2.4.so.2 (gdb) bt #0 0xb7140578 in ldap_mods_free () from /usr/lib/i386-linux-gnu/libldap_r-2.4.so.2 #1 0xb70e0964 in ldapmod_destructor (mod=0x80028978) at ../source3/lib/smbldap.c:266 #2 0xb7daaaa4 in _talloc_free_internal (ptr=0x80028978, location=0x80005d58 "../source3/utils/smbpasswd.c:631") at ../lib/talloc/talloc.c:1046 #3 0xb7dab880 in _talloc_free_children_internal (tc=0x8001e858, ptr=0x8001e888, location=0x80005d58 "../source3/utils/smbpasswd.c:631") at ../lib/talloc/talloc.c:1525 #4 0xb7daac03 in _talloc_free_internal (ptr=0x8001e888, location=0x80005d58 "../source3/utils/smbpasswd.c:631") at ../lib/talloc/talloc.c:1072 #5 0xb7dabbed in _talloc_free (ptr=0x8001e888, location=0x80005d58 "../source3/utils/smbpasswd.c:631") at ../lib/talloc/talloc.c:1647 #6 0x80003fce in main (argc=3, argv=0xbffffcf4) at ../source3/utils/smbpasswd.c:631 (gdb) quit A debugging session is active. Inferior 1 [process 18482] will be killed. Quit anyway? (y or n) y