Re: [Evolution] Evolution uses incorrect attributes when storing contact-lists to LDAP-Server



Hi Milan Crha, hi all, 

try to run e-addressbook-factory from a terminal as follows to see
some debug output from LDAP backend. It seems to me like it didn't
recognize that you've an EvolutionPerson schema installed, but maybe
you've right and the storing function just does the thing wrong.

OK, I did so. I'll paste the result below. 

What I see from the output is that the evolitionPerson schema is
installed, because single contacts are stored as evolutionPerson.

Adding an empty list fails with "object class 'groupOfNames' requires
attribute 'member'". That's right, at least one member is mandatory for
a groupOfNames. Perhaps the Contact-List Editor should keep the
"OK"-button deactivated untill there are entries. 

Adding a list with manually typed mail-addresses fails with "no values
for attribute type"

Adding a list with dropped adressbook-entries fails with "attribute
'uid' not allowed". Indeed, groupOfNames does not know an entry called
uid, it's just cn, member, businessCategory, description, o, oi, owner
and seeAlso. If I define a groupOfNames manually, the cn is shown as
listname in Evolution.

I browsed through the code today (again), but this is not easy to
understand if you're neither familiar with C nor with gui programming.
If anyone told me wich functions are concerned it would definitely
help :)

Greets Kalle, following the whold debug-output of
LDAP_DEBUG=1 /usr/lib/evolution/e-addressbook-factory

***************** Adding a single contact: 
Create Contact: vcard = BEGIN:VCARD
VERSION:3.0
.EMAIL;TYPE=WORK;X-EVOLUTION-UI-SLOT=1:test person de
X-MOZILLA-HTML:FALSE
X-EVOLUTION-VIDEO-URL:
FBURL:
CALURI:
X-EVOLUTION-BLOG-URL:
X-EVOLUTION-FILE-AS:Person\, Test
N:Person;Test;;;
FN:Test Person
NOTE:
X-EVOLUTION-SPOUSE:
NICKNAME:
X-EVOLUTION-ASSISTANT:
X-EVOLUTION-MANAGER:
ROLE:
TITLE:
URL:
END:VCARD
generated dn: uid=person.1297170404
generated full dn: uid=person.1297170404,ou=adressen,dc=grolle
Sending the following to the server as ADD
Adding DN: uid=person.1297170404,ou=adressen,dc=grolle
add      uid:
                'person.1297170404'
add      cn:
                'Test Person'
add      givenName:
                'Test'
add      sn:
                'Person'
add ber  mail:
                'test person de'
add      fileAs:
                'Person, Test'
add      objectClass:
                'top'
                'person'
                'organizationalPerson'
                'inetOrgPerson'
                'evolutionPerson'
e_book_backend_ldap_reconnect ... 
ldap_add_ext returned 0


***************** Trying to add an empty list
Create Contact: vcard = BEGIN:VCARD
VERSION:3.0
X-EVOLUTION-LIST-SHOW_ADDRESSES:FALSE
X-EVOLUTION-LIST:TRUE
N:;Testlistenname;;;
FN:Testlistenname
X-EVOLUTION-FILE-AS:Testlistenname
END:VCARD
generated dn: uid=1297169816
generated full dn: uid=1297169816,ou=adressen,dc=grolle
Sending the following to the server as ADD
Adding DN: uid=1297169816,ou=adressen,dc=grolle
add      uid:
                '1297169816'
add      cn:
                'Testlistenname'
add      givenName:
                'Testlistenname'
add      objectClass:
                'top'
                'groupOfNames'
e_book_backend_ldap_reconnect ... 
ldap_add_ext returned 0

(e-addressbook-factory:7658): libebookbackend-WARNING **:
create_contact_handler: 41 (Object class violation), additional info:
object class 'groupOfNames' requires attribute 'member'


***************** Trying to add a list with typed adresses:
Create Contact: vcard = BEGIN:VCARD
VERSION:3.0
EMAIL;X-EVOLUTION-DEST-HTML-MAIL=FALSE:bla blubb de
EMAIL;X-EVOLUTION-DEST-HTML-MAIL=FALSE:foo bar com
X-EVOLUTION-LIST-SHOW_ADDRESSES:FALSE
X-EVOLUTION-LIST:TRUE
N:;Testliste2;;;
FN:Testliste2
X-EVOLUTION-FILE-AS:Testliste2
END:VCARD
generated dn: uid=1297169964
generated full dn: uid=1297169964,ou=adressen,dc=grolle
Sending the following to the server as ADD
Adding DN: uid=1297169964,ou=adressen,dc=grolle
add      uid:
                '1297169964'
add      cn:
                'Testliste2'
add      givenName:
                'Testliste2'
add ber  member:
add      objectClass:
                'top'
                'groupOfNames'
e_book_backend_ldap_reconnect ... 
ldap_add_ext returned 0

(e-addressbook-factory:7658): libebookbackend-WARNING **:
create_contact_handler: 02 (Protocol error), additional info: no values
for attribute type



Neue Liste mit drag'n'drop:
Create Contact: vcard = BEGIN:VCARD
VERSION:3.0
EMAIL;X-EVOLUTION-DEST-HTML-MAIL=FALSE;X-EVOLUTION-DEST-EMAIL-NUM=0;X-EVOLU

TION-DEST-CONTACT-UID="uid=person.1297170404,ou=adressen,dc=grolle":Test
P
 erson <test person de>
X-EVOLUTION-LIST-SHOW_ADDRESSES:FALSE
X-EVOLUTION-LIST:TRUE
N:liste;test;;;
FN:test liste
X-EVOLUTION-FILE-AS:test liste
END:VCARD
generated dn: uid=liste.1297170503
generated full dn: uid=liste.1297170503,ou=adressen,dc=grolle
Sending the following to the server as ADD
Adding DN: uid=liste.1297170503,ou=adressen,dc=grolle
add      uid:
                'liste.1297170503'
add      cn:
                'test liste'
add      givenName:
                'test'
add      sn:
                'liste'
add ber  member:
                'uid=person.1297170404,ou=adressen,dc=grolle'
add      objectClass:
                'top'
                'groupOfNames'
e_book_backend_ldap_reconnect ... 
ldap_add_ext returned 0

(e-addressbook-factory:7658): libebookbackend-WARNING **:
create_contact_handler: 41 (Object class violation), additional info:
attribute 'uid' not allowed






Am Montag, den 07.02.2011, 10:05 +0100 schrieb Milan Crha:
On Sat, 2011-02-05 at 19:31 +0100, Karl Meyerbeer wrote:
Short Version: I use evolution 2.30.3 (Debian Squeeze) with OpenLDAP
(slapd 2.4.11 on Debian Lenny). If  I try to create a contact list,
Evolution tells me "Error adding list. Other Error." 
The logfile of slapd says "attribute uid not allowed" or "object class
'groupOfNames' requires attribute 'member'" and indicates that
evolution
tries to create lists as "groupOfNames", not (as I expected) as
evolutionPersonList. 

      Hi,
try to run e-addressbook-factory from a terminal as follows to see some
debug output from LDAP backend. It seems to me like it didn't recognize
that you've an EvolutionPerson schema installed, but maybe you've right
and the storing function just does the thing wrong.

The command is:
   $ LDAP_DEBUG=1 /usr/libexec/e-addressbook-factory

Make sure there is none running, neither evolution, before you'll start
it. Then start evolution from another console.
      Hope that helps,
      Milan

_______________________________________________
evolution-list mailing list
evolution-list gnome org
To change your list options or unsubscribe, visit ...
http://mail.gnome.org/mailman/listinfo/evolution-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]