Hi; OK but I must installed valgrind ! Else when I execute "net ads" in mode debug (-d5), I have this : #net ads join -S CINVW067 -U administrateur%laposte+1 -d10
[2011/11/21 11:04:50.935921, 5] rpc_parse/parse_prs.c:89(prs_debug) 000010 smb_io_rpc_hdr_req hdr_req 0010 alloc_hint: 00000014 0014 context_id: 0000 0016 opnum : 0001 [2011/11/21 11:04:50.935947, 5] rpc_client/cli_pipe.c:1372(rpc_api_pipe_send) rpc_api_pipe: host CINVW067 [2011/11/21 11:04:50.935963, 10] libsmb/clitrans.c:925(cli_trans_format) num_setup=2, max_setup=0, param_total=0, this_param=0, max_param=0, data_total=44, this_data=44, max_data=4280, param_offset=82, param_disp=0, data_disp=0 [2011/11/21 11:04:50.935984, 10] libsmb/smb_signing.c:115(smb_signing_md5) smb_signing_md5: sequence number 38 [2011/11/21 11:04:50.935999, 10] libsmb/smb_signing.c:209(smb_signing_sign_pdu) smb_signing_sign_pdu: sent SMB signature of [2011/11/21 11:04:50.936012, 10] ../lib/util/util.c:278(_dump_data) [0000] 8E 5B 81 B3 5C 7C 27 20 .[..\|' [2011/11/21 11:04:50.936762, 10] libsmb/smb_signing.c:115(smb_signing_md5) smb_signing_md5: sequence number 39 [2011/11/21 11:04:50.936789, 10] libsmb/smb_signing.c:267(smb_signing_check_pdu) smb_signing_check_pdu: seq 39: got good SMB signature of [2011/11/21 11:04:50.936802, 10] ../lib/util/util.c:278(_dump_data) [0000] F4 12 80 89 D3 21 B6 FC .....!.. [2011/11/21 11:04:50.936830, 5] rpc_parse/parse_prs.c:89(prs_debug) 000000 smb_io_rpc_hdr rpc_hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 02 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 0030 000a auth_len : 0000 000c call_id : 0000000f [2011/11/21 11:04:50.936884, 5] rpc_parse/parse_prs.c:89(prs_debug) 000010 smb_io_rpc_hdr_resp rpc_hdr_resp 0010 alloc_hint: 00000018 0014 context_id: 0000 0016 cancel_ct : 00 0017 reserved : 00 [2011/11/21 11:04:50.936912, 10] rpc_client/cli_pipe.c:1002(cli_pipe_validate_current_pdu) cli_pipe_validate_current_pdu: got pdu len 48, data_len 24, ss_len 0 [2011/11/21 11:04:50.936925, 10] rpc_client/cli_pipe.c:1471(rpc_api_pipe_got_pdu) rpc_api_pipe: got frag len of 48 at offset 0: NT_STATUS_OK [2011/11/21 11:04:50.936938, 10] rpc_client/cli_pipe.c:1522(rpc_api_pipe_got_pdu) rpc_api_pipe: host CINVW067 returned 48 bytes. [2011/11/21 11:04:50.936956, 1] ../librpc/ndr/ndr.c:251(ndr_print_function_debug) samr_Close: struct samr_Close out: struct samr_Close handle : * handle: struct policy_handle handle_type : 0x00000000 (0) uuid : 00000000-0000-0000-0000-000000000000 result : NT_STATUS_OK [2011/11/21 11:04:50.937014, 10] libsmb/smb_signing.c:115(smb_signing_md5) smb_signing_md5: sequence number 40 [2011/11/21 11:04:50.937029, 10] libsmb/smb_signing.c:209(smb_signing_sign_pdu) smb_signing_sign_pdu: sent SMB signature of [2011/11/21 11:04:50.937041, 10] ../lib/util/util.c:278(_dump_data) [0000] 5F 4A AA 02 CC E1 98 0E _J...... [2011/11/21 11:04:50.937449, 10] libsmb/smb_signing.c:115(smb_signing_md5) smb_signing_md5: sequence number 41 [2011/11/21 11:04:50.937471, 10] libsmb/smb_signing.c:267(smb_signing_check_pdu) smb_signing_check_pdu: seq 41: got good SMB signature of [2011/11/21 11:04:50.937491, 10] ../lib/util/util.c:278(_dump_data) [0000] EB 07 2D 87 FA E9 86 7E ..-....~ [2011/11/21 11:04:50.937517, 10] rpc_client/rpc_transport_np.c:81(rpc_transport_np_state_destructor) rpc_pipe_destructor: closed \samr [2011/11/21 11:04:50.937600, 10] lib/dbwrap_tdb.c:100(db_tdb_fetch_locked) Locking key 534543524554532F5349 [2011/11/21 11:04:50.937677, 10] lib/dbwrap_tdb.c:129(db_tdb_fetch_locked) Allocated locked data 0x0x555555ea6510 [2011/11/21 11:04:50.937696, 10] lib/dbwrap_tdb.c:42(db_tdb_record_destr) Unlocking key 534543524554532F5349 [2011/11/21 11:04:50.937746, 10] lib/dbwrap_tdb.c:100(db_tdb_fetch_locked) Locking key 534543524554532F4D41 [2011/11/21 11:04:50.937767, 10] lib/dbwrap_tdb.c:129(db_tdb_fetch_locked) Allocated locked data 0x0x555555ea4110 [2011/11/21 11:04:50.937793, 10] lib/dbwrap_tdb.c:42(db_tdb_record_destr) Unlocking key 534543524554532F4D41 [2011/11/21 11:04:50.950809, 10] lib/dbwrap_tdb.c:100(db_tdb_fetch_locked) Locking key 534543524554532F4D41 [2011/11/21 11:04:50.950841, 10] lib/dbwrap_tdb.c:129(db_tdb_fetch_locked) Allocated locked data 0x0x555555ea4110 [2011/11/21 11:04:50.950871, 10] lib/dbwrap_tdb.c:42(db_tdb_record_destr) Unlocking key 534543524554532F4D41 [2011/11/21 11:04:50.957654, 10] lib/dbwrap_tdb.c:100(db_tdb_fetch_locked) Locking key 534543524554532F4D41 [2011/11/21 11:04:50.957724, 10] lib/dbwrap_tdb.c:129(db_tdb_fetch_locked) Allocated locked data 0x0x555555ea4110 [2011/11/21 11:04:50.966013, 10] lib/dbwrap_tdb.c:42(db_tdb_record_destr) Unlocking key 534543524554532F4D41 [2011/11/21 11:04:50.971516, 10] lib/dbwrap_tdb.c:100(db_tdb_fetch_locked) Locking key 534543524554532F4D41 [2011/11/21 11:04:50.971663, 10] lib/dbwrap_tdb.c:129(db_tdb_fetch_locked) Allocated locked data 0x0x555555ea82b0 [2011/11/21 11:04:50.971776, 10] lib/dbwrap_tdb.c:42(db_tdb_record_destr) Unlocking key 534543524554532F4D41 [2011/11/21 11:04:50.971901, 10] libsmb/smb_signing.c:115(smb_signing_md5) smb_signing_md5: sequence number 42 [2011/11/21 11:04:50.972019, 10] libsmb/smb_signing.c:209(smb_signing_sign_pdu) smb_signing_sign_pdu: sent SMB signature of [2011/11/21 11:04:50.972238, 10] ../lib/util/util.c:278(_dump_data) [0000] 0C B3 4C DD 05 21 E6 95 ..L..!.. [2011/11/21 11:04:50.972350, 6] libsmb/clientgen.c:323(write_socket) write_socket(7,39) [2011/11/21 11:04:50.972456, 6] libsmb/clientgen.c:326(write_socket) write_socket(7,39) wrote 39 [2011/11/21 11:04:50.972903, 10] lib/util_sock.c:731(read_smb_length_return_keepalive) got smb length of 35 [2011/11/21 11:04:50.972932, 5] lib/util.c:617(show_msg) [2011/11/21 11:04:50.972945, 5] lib/util.c:627(show_msg) size=35 smb_com=0x71 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=51205 smb_tid=4103 smb_pid=24736 smb_uid=10241 smb_mid=24 smt_wct=0 smb_bcc=0 [2011/11/21 11:04:50.972999, 10] libsmb/smb_signing.c:115(smb_signing_md5) smb_signing_md5: sequence number 43 [2011/11/21 11:04:50.973013, 10] libsmb/smb_signing.c:267(smb_signing_check_pdu) smb_signing_check_pdu: seq 43: got good SMB signature of [2011/11/21 11:04:50.973027, 10] ../lib/util/util.c:278(_dump_data) [0000] 55 08 BA 26 7A CE DD 36 U..&z..6 [2011/11/21 11:04:50.973204, 10] libsmb/namequery.c:112(saf_join_store) saf_join_store: domain = [P9BIS], server = [CINVW067], expire = [1321873490] [2011/11/21 11:04:50.973236, 10] lib/gencache.c:180(gencache_set_data_blob) Adding cache entry with key = SAFJOIN/DOMAIN/P9BIS and timeout = Mon Nov 21 12:04:50 2011 (3600 seconds ahead) [2011/11/21 11:04:50.992394, 10] libsmb/namequery.c:112(saf_join_store) saf_join_store: domain = [p9bis.neoplus.laposte.poc], server = [CINVW067], expire = [1321873490] [2011/11/21 11:04:50.992542, 10] lib/gencache.c:180(gencache_set_data_blob) Adding cache entry with key = SAFJOIN/DOMAIN/P9BIS.NEOPLUS.LAPOSTE.POC and timeout = Mon Nov 21 12:04:50 2011 (3600 seconds ahead) [2011/11/21 11:04:50.992779, 10] lib/gencache.c:345(gencache_get_data_blob) Returning valid cache entry: key = AD_SITENAME/DOMAIN/P9BIS.NEOPLUS.LAPOSTE.POC, value = Default-First-Site-Name, timeout = Wed Feb 6 16:06:39 2036 [2011/11/21 11:04:50.992902, 5] libads/dns.c:810(sitename_fetch) sitename_fetch: Returning sitename for P9BIS.NEOPLUS.LAPOSTE.POC: "Default-First-Site-Name" [2011/11/21 11:04:50.993053, 10] libsmb/namequery.c:1400(internal_resolve_name) internal_resolve_name: looking up CINVW067#20 (sitename Default-First-Site-Name) [2011/11/21 11:04:50.993165, 10] lib/gencache.c:345(gencache_get_data_blob) Returning valid cache entry: key = NBT/CINVW067#20, value = 187.0.17.104:0, timeout = Mon Nov 21 11:08:05 2011 [2011/11/21 11:04:50.993273, 5] libsmb/namecache.c:192(namecache_fetch) name CINVW067#20 found. [2011/11/21 11:04:50.993470, 5] libads/ldap.c:226(ads_try_connect) ads_try_connect: sending CLDAP request to 187.0.17.104 (realm: p9bis.neoplus.laposte.poc) [2011/11/21 11:04:50.994773, 10] libads/dns.c:775(sitename_store) sitename_store: realm = [P9BIS], sitename = [Default-First-Site-Name], expire = [2085923199] [2011/11/21 11:04:50.994798, 10] lib/gencache.c:180(gencache_set_data_blob) Adding cache entry with key = AD_SITENAME/DOMAIN/P9BIS and timeout = (null) (764053309 seconds ahead) [2011/11/21 11:04:50.994840, 10] libads/dns.c:775(sitename_store) sitename_store: realm = [p9bis.neoplus.laposte.poc], sitename = [Default-First-Site-Name], expire = [2085923199] [2011/11/21 11:04:50.994860, 10] lib/gencache.c:180(gencache_set_data_blob) Adding cache entry with key = AD_SITENAME/DOMAIN/P9BIS.NEOPLUS.LAPOSTE.POC and timeout = (null) (764053309 seconds ahead) [2011/11/21 11:04:50.994899, 3] libads/ldap.c:634(ads_connect) Successfully contacted LDAP server 187.0.17.104 [2011/11/21 11:04:50.994918, 10] libads/ldap.c:62(ldap_open_with_timeout) Opening connection to LDAP server 'CINVW067.p9bis.neoplus.laposte.poc:389', timeout 15 seconds [2011/11/21 11:04:50.997825, 10] libads/ldap.c:76(ldap_open_with_timeout) Connected to LDAP server 'CINVW067.p9bis.neoplus.laposte.poc:389' [2011/11/21 11:04:50.997967, 3] libads/ldap.c:688(ads_connect) Connected to LDAP server CINVW067.p9bis.neoplus.laposte.poc [2011/11/21 11:04:50.998069, 10] libads/ldap.c:165(ads_closest_dc) ads_closest_dc: NBT_SERVER_CLOSEST flag set [2011/11/21 11:04:50.998204, 10] libsmb/namequery.c:83(saf_store) saf_store: domain = [P9BIS], server = [CINVW067.p9bis.neoplus.laposte.poc], expire = [1321870790] [2011/11/21 11:04:50.998225, 10] lib/gencache.c:180(gencache_set_data_blob) Adding cache entry with key = SAF/DOMAIN/P9BIS and timeout = Mon Nov 21 11:19:50 2011 (900 seconds ahead) [2011/11/21 11:04:50.998274, 10] libsmb/namequery.c:83(saf_store) saf_store: domain = [p9bis.neoplus.laposte.poc], server = [CINVW067.p9bis.neoplus.laposte.poc], expire = [1321870790] [2011/11/21 11:04:50.998292, 10] lib/gencache.c:180(gencache_set_data_blob) Adding cache entry with key = SAF/DOMAIN/P9BIS.NEOPLUS.LAPOSTE.POC and timeout = Mon Nov 21 11:19:50 2011 (900 seconds ahead) [2011/11/21 11:04:50.999036, 4] libads/ldap.c:2852(ads_current_time) time offset is -1 seconds [2011/11/21 11:04:50.999366, 4] libads/sasl.c:1116(ads_sasl_bind) Found SASL mechanism GSS-SPNEGO [2011/11/21 11:04:50.999888, 3] libads/sasl.c:784(ads_sasl_spnego_bind) ads_sasl_spnego_bind: got OID=1.3.6.1.4.1.311.2.2.30 [2011/11/21 11:04:50.999907, 3] libads/sasl.c:784(ads_sasl_spnego_bind) ads_sasl_spnego_bind: got OID=1.2.840.48018.1.2.2 [2011/11/21 11:04:50.999919, 3] libads/sasl.c:784(ads_sasl_spnego_bind) ads_sasl_spnego_bind: got OID=1.2.840.113554.1.2.2 [2011/11/21 11:04:50.999932, 3] libads/sasl.c:784(ads_sasl_spnego_bind) ads_sasl_spnego_bind: got OID=1.2.840.113554.1.2.2.3 [2011/11/21 11:04:50.999944, 3] libads/sasl.c:784(ads_sasl_spnego_bind) ads_sasl_spnego_bind: got OID=1.3.6.1.4.1.311.2.2.10 [2011/11/21 11:04:50.999956, 3] libads/sasl.c:793(ads_sasl_spnego_bind) ads_sasl_spnego_bind: got server principal name = not_defined_in_RFC4178@please_ignore [2011/11/21 11:04:51.001860, 3] libsmb/clikrb5.c:777(ads_krb5_mk_req) ads_krb5_mk_req: krb5_cc_get_principal failed (No credentials cache found) [2011/11/21 11:04:51.002038, 10] libads/sasl.c:814(ads_sasl_spnego_bind) ads_sasl_spnego_krb5_bind failed with: No credentials cache found, calling kinit [2011/11/21 11:04:51.002400, 10] libads/kerberos.c:188(kerberos_kinit_password_ext) kerberos_kinit_password: as administrat...@p9bis.neoplus.laposte.poc using [MEMORY:net_ads] as ccache and config [(null)] [2011/11/21 11:04:51.029707, 3] libsmb/clikrb5.c:622(ads_cleanup_expired_creds) ads_cleanup_expired_creds: Ticket in ccache[MEMORY:net_ads] expiration Mon, 21 Nov 2011 17:44:48 CET [2011/11/21 11:04:51.029936, 10] libsmb/clikrb5.c:811(ads_krb5_mk_req) ads_krb5_mk_req: Ticket (ldap/cinvw...@p9bis.neoplus.laposte.poc) in ccache (MEMORY:net_ads) is valid until: (Mon, 21 Nov 2011 17:44:48 CET - 1321893888) [2011/11/21 11:04:51.030089, 3] libsmb/clikrb5.c:830(ads_krb5_mk_req) ads_krb5_mk_req: server marked as OK to delegate to, building forwardable TGT [2011/11/21 11:04:51.032459, 10] libsmb/clikrb5.c:1024(get_krb5_smb_session_key) Got KRB5 session key of length 16 [2011/11/21 11:04:51.035702, 10] lib/util.c:2592(name_to_fqdn) name_to_fqdn: lookup for CILVS049 -> local.localdomain. [2011/11/21 11:04:51.037319, 3] libads/ldap.c:2910(ads_domain_func_level) ads_domain_func_level: 4 [2011/11/21 11:04:51.037470, 3] libads/kerberos.c:445(kerberos_secrets_store_des_salt) kerberos_secrets_store_des_salt: Storing salt "host/cilvs049.p9bis.neoplus.laposte....@p9bis.neoplus.laposte.poc" [2011/11/21 11:04:51.037707, 10] lib/dbwrap_tdb.c:100(db_tdb_fetch_locked) Locking key 534543524554532F5341 [2011/11/21 11:04:51.037831, 10] lib/dbwrap_tdb.c:129(db_tdb_fetch_locked) Allocated locked data 0x0x555555e89fe0 [2011/11/21 11:04:51.037952, 10] lib/dbwrap_tdb.c:42(db_tdb_record_destr) Unlocking key 534543524554532F5341 [2011/11/21 11:04:51.038241, 10] libsmb/clikrb5.c:1875(smb_krb5_open_keytab) smb_krb5_open_keytab: krb5_kt_default_name returned FILE:/etc/krb5.keytab [2011/11/21 11:04:51.038703, 10] libsmb/clikrb5.c:1928(smb_krb5_open_keytab) smb_krb5_open_keytab: resolving: WRFILE:/etc/krb5.keytab [2011/11/21 11:04:51.040795, 5] libads/ldap.c:1745(ads_get_kvno) ads_get_kvno: Searching for account CILVS049$ [2011/11/21 11:04:51.041741, 5] libads/ldap.c:1763(ads_get_kvno) ads_get_kvno: Using: CN=cilvs049,CN=Computers,DC=p9bis,DC=neoplus,DC=laposte,DC=poc [2011/11/21 11:04:51.041858, 5] libads/ldap.c:1782(ads_get_kvno) ads_get_kvno: Looked Up KVNO of: 29 [2011/11/21 11:04:51.042062, 3] libads/kerberos_keytab.c:64(smb_krb5_kt_add_entry_ext) smb_krb5_kt_add_entry_ext: Will try to delete old keytab entries Segmentation fault --- En date de : Lun 21.11.11, Volker Lendecke <volker.lende...@sernet.de> a écrit : De: Volker Lendecke <volker.lende...@sernet.de> Objet: Re: [Samba] ADS Problem : segmentation fault À: "djamel boussebha" <dbousse...@yahoo.fr> Cc: samba@lists.samba.org Date: Lundi 21 novembre 2011, 10h21 On Mon, Nov 21, 2011 at 09:12:04AM +0000, djamel boussebha wrote: > Hi; > > Please I would like to know which are the corrects values to set into the > samba/kerberos configuration to ads protocol works fine. > My platform is : > > Windows server 2008 R2 with AD LDAP is : 187.0.17.104 (CINVW067) > Linux server with Samba/Winbind version 3.5.12 + kerberos 1.4 : 187.0.22.177 > (CILVS049) > > When I try to join the AD via ADS protocol I have a error : segmentation > fault : > # net ads join -S CINVW067 -U administrateur%laposte+1 > Segmentation fault Can you try running that under valgrind? Volker -- SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de, mailto:kont...@sernet.de -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba