On Sat, 2007-12-29 at 16:06 +0100, Pierangelo Masarati wrote:
Pierangelo Masarati wrote:
Andrew Bartlett wrote:
The warning is gone, but the link between masteredBy and hasMasterNCs still doesn't appear.
It is actually a special case, as it is between containers/databases/partitions (what is the right term?).
OK, the overlay, the way you're using it (stacking within a database) will only allow reverse links between entities that belong to that database. You can try making that instance of the overlay as global (i.e. placing it before the first database). I don't think I ever tested it that way, so there might be pending issues, but in principle it should work.
I had to rework the frontend infrastructure a bit to allow the slapo-memberof to be used as global, but it seems to work now. I've filed ITS#5301 to take care of this issue.
Great. It seems to work!
However, my further tests (attempting to rename cn=ldaptestuser2,cn=users,DC=samba,DC=example,DC=com into cn=ldaptestuser3,cn=users,DC=samba,DC=example,DC=com)
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1170099088 (LWP 26101)] 0x0808a285 in slap_mods_obsolete_check () (gdb) bt full #0 0x0808a285 in slap_mods_obsolete_check () No symbol table info available. #1 0x0808a969 in fe_op_modify () No symbol table info available. #2 0x402e6cd0 in memberof_value_modify (op=0x9e42a68, rs=<value optimized out>, ndn=<value optimized out>, ad=0x9c06690, old_dn=0x9e42a7c, old_ndn=0x9e42a84, new_dn=0x45be36f4, new_ndn=0x45be36e4) at memberof.c:501 on = (slap_overinst *) 0x9c06520 mo = (memberof_t *) 0x9c06628 op2 = {o_hdr = 0x9e42b3c, o_tag = 102, o_time = 1198996875, o_tincr = 197, o_bd = 0x9c0a2d8, o_req_dn = {bv_len = 52, bv_val = 0x45be5b74 "cn=ldaptestgroup,cn=users,dc=samba,dc=example,dc=com"}, o_req_ndn = {bv_len = 52, bv_val = 0x45be5b74 "cn=ldaptestgroup,cn=users,dc=samba,dc=example,dc=com"}, o_request = {oq_add = {rs_modlist = 0x45be3490, rs_e = 0x0}, oq_bind = { rb_method = 1170093200, rb_cred = {bv_len = 0, bv_val = 0xffffffff <Address 0xffffffff out of bounds>}, rb_edn = { bv_len = 16, bv_val = 0x45be5394 "cn=ldaptestuser3"}, rb_ssf = 16, rb_mech = {bv_len = 1170101188, bv_val = 0x0}}, oq_compare = { rs_ava = 0x45be3490}, oq_modify = {rs_mods = {rs_modlist = 0x45be3490, rs_no_opattrs = 0 '\0'}, rs_increment = -1}, oq_modrdn = {rs_mods = { rs_modlist = 0x45be3490, rs_no_opattrs = 0 '\0'}, ---Type <return> to continue, or q <return> to quit--- rs_deleteoldrdn = -1, rs_newrdn = {bv_len = 16, bv_val = 0x45be5394 "cn=ldaptestuser3"}, rs_nnewrdn = {bv_len = 16, bv_val = 0x45be53c4 "cn=ldaptestuser3"}, rs_newSup = 0x0, rs_nnewSup = 0x45be407c}, oq_search = {rs_scope = 1170093200, rs_deref = 0, rs_slimit = -1, rs_tlimit = 16, rs_limit = 0x45be5394, rs_attrsonly = 16, rs_attrs = 0x45be53c4, rs_filter = 0x0, rs_filterstr = {bv_len = 1170096252, bv_val = 0x0}}, oq_abandon = { rs_msgid = 1170093200}, oq_cancel = {rs_msgid = 1170093200}, oq_extended = {rs_reqoid = {bv_len = 1170093200, bv_val = 0x0}, rs_flags = -1, rs_reqdata = 0x10}, oq_pwdexop = {rs_extended = { rs_reqoid = {bv_len = 1170093200, bv_val = 0x0}, rs_flags = -1, rs_reqdata = 0x10}, rs_old = {bv_len = 1170101140, bv_val = 0x10 <Address 0x10 out of bounds>}, rs_new = { bv_len = 1170101188, bv_val = 0x0}, rs_mods = 0x45be407c, rs_modtail = 0x0}}, o_abandon = 0, o_cancel = 0, o_groups = 0x0, o_do_not_cache = 0 '\0', o_is_auth_check = 0 '\0', o_acl_priv = ACL_NONE, o_nocaching = 0 '\0', o_delete_glue_parent = 0 '\0', o_no_schema_check = 0 '\0', o_no_subordinate_glue = 0 '\0', o_ctrlflag = '\0' <repeats 31 times>, o_controls = 0x9e42c64, o_authz = { sai_method = 0, sai_mech = {bv_len = 0, bv_val = 0x0}, sai_dn = { bv_len = 37, bv_val = 0x9c0a600 "cn=Manager,dc=samba,dc=example,dc=com"}, sai_ndn = { bv_len = 37, ---Type <return> to continue, or q <return> to quit--- bv_val = 0x9c0a660 "cn=manager,dc=samba,dc=example,dc=com"}, sai_ssf = 71, sai_transport_ssf = 71, sai_tls_ssf = 0, sai_sasl_ssf = 0}, o_ber = 0x9e33220, o_res_ber = 0x0, o_callback = 0x45be354c, o_ctrls = 0x0, o_csn = {bv_len = 40, bv_val = 0x45be57ec "20071230064115.762010Z#000000#000#000000"}, o_private = 0x0, o_next = {stqe_next = 0x0}} rs2 = {sr_type = REP_RESULT, sr_tag = 103, sr_msgid = 104, sr_err = 0, sr_matched = 0x0, sr_text = 0x45be2ce4 "modify/af\211�\aT<\210@\234��\t\005", sr_ref = 0x0, sr_ctrls = 0x0, sr_un = {sru_sasl = {r_sasldata = 0x0}, sru_extended = { r_rspoid = 0x0, r_rspdata = 0x0}, sru_search = {r_entry = 0x0, r_attr_flags = 0, r_operational_attrs = 0x0, r_attrs = 0x0, r_nentries = 0, r_v2ref = 0x0}}, sr_flags = 0} cb = {sc_next = 0x0, sc_response = 0x8081b70 <slap_null_cb>, sc_cleanup = 0, sc_private = 0x0} mod = {{sml_mod = {sm_desc = 0x9c06690, sm_values = 0x45be353c, sm_nvalues = 0x45be351c, sm_numvals = 1, sm_op = 1, sm_flags = 1, sm_type = {bv_len = 6, bv_val = 0x9bcec38 "member"}}, sml_next = 0x9e2efe8}, {sml_mod = {sm_desc = 0x0, sm_values = 0x0, sm_nvalues = 0x0, sm_numvals = 0, sm_op = 0, sm_flags = 0, sm_type = { bv_len = 0, bv_val = 0x0}}, sml_next = 0x0}} ml = <value optimized out> values = {{bv_len = 165948008, bv_val = 0x45be3744 "�\177\031 \b"}, { ---Type <return> to continue, or q <return> to quit--- bv_len = 1170093812, bv_val = 0x45be3568 "\0307�E�\202.@\220f�\t|*�\t\204*�\t�6�E�6�E \005"}, { bv_len = 52, bv_val = 0x45be5234 "cn=ldaptestuser2,cn=users,dc=samba,dc=example,dc=com"}, {bv_len = 0, bv_val = 0x0}} nvalues = {{bv_len = 0, bv_val = 0x0}, {bv_len = 0, bv_val = 0x9e436b8 "\bP�E(\�E\bP�E\001"}, {bv_len = 52, bv_val = 0x45be52d4 "cn=ldaptestuser2,cn=users,dc=samba,dc=example,dc=com"}, {bv_len = 0, bv_val = 0x0}} mcnt = 0 __PRETTY_FUNCTION__ = "memberof_value_modify" #3 0x402e82fc in memberof_response (op=0x9e42a68, rs=0x45be40f8) at memberof.c:1463 vals = <value optimized out>
Thank you very much for all your efforts on this so far!
Andrew Bartlett