[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Autogroup strange behaviour



Title: Luca Scamoni
forgot the log file in java case

Il 15/02/2011 16:10, Luca Scamoni ha scritto:
Hi,
    I'm using autogroup overlay (OpenLDAP 2.4.23, autogroup v. 1.2.2.11 but the behaviour was the same with 1.2.2.6) and I'm facing a strange situation.
Operations performed using openldap client tools work as expected. The same operations performed using a java client do not.
I've restricted the problematic operations to modifications of existing entries. Using attached slapd.conf and ldap.ldif it's quite simple to reproduce it.

Using openldap ldapmodify client:

cn=user2,ou=people,dc=example,dc=com
add: description
description: test

modifies the entry AND triggers autogroup modify operation on group cn=description adding user2 as a member of the group (see slapd.log.ok.add)

The same operation performed with JExplorer modifies the entry but does NOT triggers autogroup modification (see slapd.log.java.add)

I've compared the two logs and overlay related modifications are completely skipped in the java client test.
Anyone has an explanation?

Note: adding a new entry or deleting an existing one (if it matches any of the criteria in memberUrl) works even with Jexplorer.

thanks





--

Luca Scamoni

Gruppo Partners Associates
Tel. Milano +39 02 67380435 - Udine +39 0432 689815 - Roma +39 06 54832300
Fax Milano +39 02 67386214 - Udine +39 0432 570120 - Roma +39 06 91659273
Cell. +39 348 0471710
Email:
Luca.Scamoni@GruppoPA.it
Sito:
www.GruppoPA.it 


Prima di stampare, pensa all'ambiente ** Think about the environment before printing



--
Luca Scamoni

Luca Scamoni

Gruppo Partners Associates
Tel. Milano +39 02 67380435 - Udine +39 0432 689815 - Roma +39 06 54832300
Fax Milano +39 02 67386214 - Udine +39 0432 570120 - Roma +39 06 91659273
Cell. +39 348 0471710
Email:
Luca.Scamoni@GruppoPA.it
Sito:
www.GruppoPA.it 


Prima di stampare, pensa all'ambiente ** Think about the environment before printing

Feb 13 15:18:32 allianz slapd[22217]: daemon: activity on 1 descriptor 
Feb 13 15:18:32 allianz slapd[22217]: daemon: activity on:
Feb 13 15:18:32 allianz slapd[22217]:  14r
Feb 13 15:18:32 allianz slapd[22217]:  
Feb 13 15:18:32 allianz slapd[22217]: daemon: read active on 14 
Feb 13 15:18:32 allianz slapd[22217]: daemon: epoll: listen=7 active_threads=0 tvp=zero 
Feb 13 15:18:32 allianz slapd[22217]: daemon: epoll: listen=8 active_threads=0 tvp=zero 
Feb 13 15:18:32 allianz slapd[22217]: connection_get(14) 
Feb 13 15:18:32 allianz slapd[22217]: connection_get(14): got connid=1000 
Feb 13 15:18:32 allianz slapd[22217]: connection_read(14): checking for input on id=1000 
Feb 13 15:18:32 allianz slapd[22217]: op tag 0x66, time 1297606712 
Feb 13 15:18:32 allianz slapd[22217]: conn=1000 op=10 do_modify 
Feb 13 15:18:32 allianz slapd[22217]: conn=1000 op=10 do_modify: dn (cn=user2,ou=people,dc=example,dc=com) 
Feb 13 15:18:32 allianz slapd[22217]: => get_ctrls 
Feb 13 15:18:32 allianz slapd[22217]: => get_ctrls: oid="2.16.840.1.113730.3.4.2" (noncritical) 
Feb 13 15:18:32 allianz slapd[22217]: <= get_ctrls: n=1 rc=0 err="" 
Feb 13 15:18:32 allianz slapd[22217]: >>> dnPrettyNormal: <cn=user2,ou=people,dc=example,dc=com> 
Feb 13 15:18:32 allianz slapd[22217]: <<< dnPrettyNormal: <cn=user2,ou=people,dc=example,dc=com>, <cn=user2,ou=people,dc=example,dc=com> 
Feb 13 15:18:32 allianz slapd[22217]: conn=1000 op=10 modifications: 
Feb 13 15:18:32 allianz slapd[22217]: 	add: description 
Feb 13 15:18:32 allianz slapd[22217]: 		one value, length 5 
Feb 13 15:18:32 allianz slapd[22217]: conn=1000 op=10 MOD dn="cn=user2,ou=people,dc=example,dc=com" 
Feb 13 15:18:32 allianz slapd[22217]: conn=1000 op=10 MOD attr=description 
Feb 13 15:18:32 allianz slapd[22217]: => hdb_search 
Feb 13 15:18:32 allianz slapd[22217]: bdb_dn2entry("cn=user2,ou=people,dc=example,dc=com") 








Feb 13 15:18:32 allianz slapd[22217]: => access_allowed: search access to "cn=user2,ou=people,dc=example,dc=com" "entry" requested 
Feb 13 15:18:32 allianz slapd[22217]: <= root access granted 
Feb 13 15:18:32 allianz slapd[22217]: => access_allowed: search access granted by manage(=mwrscxd) 
Feb 13 15:18:32 allianz slapd[22217]: base_candidates: base: "cn=user2,ou=people,dc=example,dc=com" (0x00000008) 
Feb 13 15:18:32 allianz slapd[22217]: => test_filter 
Feb 13 15:18:32 allianz slapd[22217]:     EQUALITY 
Feb 13 15:18:32 allianz slapd[22217]: => access_allowed: search access to "cn=user2,ou=people,dc=example,dc=com" "objectClass" requested 
Feb 13 15:18:32 allianz slapd[22217]: <= root access granted 
Feb 13 15:18:32 allianz slapd[22217]: => access_allowed: search access granted by manage(=mwrscxd) 
Feb 13 15:18:32 allianz slapd[22217]: <= test_filter 5 
Feb 13 15:18:32 allianz slapd[22217]: hdb_search: 8 does not match filter 
Feb 13 15:18:32 allianz slapd[22217]: send_ldap_result: conn=1000 op=10 p=3 
Feb 13 15:18:32 allianz slapd[22217]: send_ldap_result: err=0 matched="" text="" 
Feb 13 15:18:32 allianz slapd[22217]: hdb_modify: cn=user2,ou=people,dc=example,dc=com 
Feb 13 15:18:32 allianz slapd[22217]: slap_queue_csn: queing 0x423ce290 20110213141832.749147Z#000000#000#000000 
Feb 13 15:18:32 allianz slapd[22217]: bdb_dn2entry("cn=user2,ou=people,dc=example,dc=com") 
Feb 13 15:18:32 allianz slapd[22217]: bdb_modify_internal: 0x00000008: cn=user2,ou=people,dc=example,dc=com 
Feb 13 15:18:32 allianz slapd[22217]: <= acl_access_allowed: granted to database root 
Feb 13 15:18:32 allianz slapd[22217]: bdb_modify_internal: add description 
Feb 13 15:18:32 allianz slapd[22217]: bdb_modify_internal: replace entryCSN 
Feb 13 15:18:32 allianz slapd[22217]: bdb_modify_internal: replace modifiersName 
Feb 13 15:18:32 allianz slapd[22217]: bdb_modify_internal: replace modifyTimestamp 
Feb 13 15:18:32 allianz slapd[22217]: oc_check_required entry (cn=user2,ou=people,dc=example,dc=com), objectClass "person" 
Feb 13 15:18:32 allianz slapd[22217]: oc_check_allowed type "cn" 
Feb 13 15:18:32 allianz slapd[22217]: oc_check_allowed type "objectClass" 
Feb 13 15:18:32 allianz slapd[22217]: oc_check_allowed type "sn" 
Feb 13 15:18:32 allianz slapd[22217]: oc_check_allowed type "structuralObjectClass" 
Feb 13 15:18:32 allianz slapd[22217]: oc_check_allowed type "entryUUID" 
Feb 13 15:18:32 allianz slapd[22217]: oc_check_allowed type "creatorsName" 
Feb 13 15:18:32 allianz slapd[22217]: oc_check_allowed type "createTimestamp" 
Feb 13 15:18:32 allianz slapd[22217]: oc_check_allowed type "description" 
Feb 13 15:18:32 allianz slapd[22217]: oc_check_allowed type "entryCSN" 
Feb 13 15:18:32 allianz slapd[22217]: oc_check_allowed type "modifiersName" 
Feb 13 15:18:32 allianz slapd[22217]: oc_check_allowed type "modifyTimestamp" 
Feb 13 15:18:32 allianz slapd[22217]: => key_change(DELETE,8) 
Feb 13 15:18:32 allianz slapd[22217]: bdb_idl_delete_key: 8  
Feb 13 15:18:32 allianz slapd[22217]: <= key_change 0 
Feb 13 15:18:32 allianz slapd[22217]: => key_change(ADD,8) 
Feb 13 15:18:32 allianz slapd[22217]: bdb_idl_insert_key: 8  
Feb 13 15:18:32 allianz slapd[22217]: <= key_change 0 
Feb 13 15:18:32 allianz slapd[22217]: => entry_encode(0x00000008):  
Feb 13 15:18:32 allianz slapd[22217]: <= entry_encode(0x00000008):  
Feb 13 15:18:32 allianz slapd[22217]: hdb_modify: updated id=00000008 dn="cn=user2,ou=people,dc=example,dc=com" 
Feb 13 15:18:32 allianz slapd[22217]: send_ldap_result: conn=1000 op=10 p=3 
Feb 13 15:18:32 allianz slapd[22217]: send_ldap_result: err=0 matched="" text="" 
Feb 13 15:18:32 allianz slapd[22217]: send_ldap_response: msgid=11 tag=103 err=0 
Feb 13 15:18:32 allianz slapd[22217]: conn=1000 op=10 RESULT tag=103 err=0 text= 
Feb 13 15:18:32 allianz slapd[22217]: slap_graduate_commit_csn: removing 0x1c80eba0 20110213141832.749147Z#000000#000#000000 
Feb 13 15:18:32 allianz slapd[22217]: daemon: activity on 1 descriptor 
Feb 13 15:18:32 allianz slapd[22217]: daemon: activity on:
Feb 13 15:18:32 allianz slapd[22217]:  14r
Feb 13 15:18:32 allianz slapd[22217]: