Hi Armin,

> Could you please try to modify the Optik Hähn contact and repleace all
> umlaute with ae etc and try again.

I  tried  some  debugging  with  DDD and found two locations of
conflicts. I'm quite sure about the first problem:

1) in:

int ldap_modify_entry(ldap_connection *conn, LDAPMod **data)
    int i = 0, x = 0;
    ldap_debug(conn, 3, "start: ldap modify entry");
    for (i = 0; data[i]; i++) {
        for (x = 0; data[i]->mod_values[x]; x++) {
            ldap_debug(conn, 3, "%s=%s", data[i]->mod_type, data[i]->mod_values[x]);
        }
}

After  I  found  out  what a weird alias mod_values is (strange
header definition in ldap.h, quite bad for debugging, I think),
I found another problem.

This  debug routine should list all attributes of an entry. But
the LDAP library returns a nullpointer which is not detected by
the for x loop condition (data[i]->mod_values[x]).

So  I  got  entries where objectClass is present 4 (0-3) times.
(top,  inetOrgPerson, organizationalPerson, person or something
like this) but in 5th (x=4) run through the loop header it does
not  exit but get into the loop although data[i]->mod_values[4]
is  not  accessible  -  so  it  crashes with an error in strlen
coming  from the debug output routine. So I don't know why this
happens    but    the    last    (non   existing)   entry   for
data[i]->mod_values[x] (in this case 4) is not correctly
set to NULL.

How can one prevent having nullpointers in the x loop?


2) Vague: The second point of crashing is in

int ldap_add_entry(ldap_connection *conn, LDAPMod **data, char *uidret, int duplicate)
 [..]
     if (result = ldap_add_s(conn->ld, quoted_decode(dn), data)) {

So  calling ldap_add_s crashes. For investigating this issue my
time was too short. Maybe I'll try this next time.

Hope this helps in any way,

Dominik



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Multisync-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/multisync-devel

Reply via email to