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

Re: using kpasswd with ldap db (0.7.2)




"Eric Ortego" <ericortego@gmail.com> writes:

> On 5/24/06, Love Hörnquist Åstrand <lha@kth.se> wrote:
>> I think its a bug somewhere where the krb5EncryptionType is set, but I
>> can't figure out what it is. If you have time to debug the code its in
>> lib/hdb/hdb-ldap.c:LDAP_entry2mods() where the krb5EncryptionType is set.
>
> I am not very proficient in C but my curiosity leads me to take a stab at it.
>
>> if you can't find the error, you can just comment out the while "if
>> (ent->etypes) { " section in that file.
>
> My guess is that in this section(i.e. ent->etypes) the LDAP_MOD_ADD
> should be LDAP_MOD_REPLACE.
> Seems logical that if the ldap entry is in fact a heimdal entry that
> it would already have the "krb5EncryptionType" set in the entry thus
> leading to my error when trying to add instead of replace. Ill also
> guess that the for loops twice and is why I get the error twice.

Ok, I think I understan why the problem happen. But I needs to read up more
on how to deal with updaing multivalue attributes in openldap.

Thanks,
Love

PGP signature