[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using kpasswd with ldap db (0.7.2)
- To: "Eric Ortego" <ericortego@gmail.com>
- Subject: Re: using kpasswd with ldap db (0.7.2)
- From: Love Hörnquist Åstrand <lha@kth.se>
- Date: Mon, 12 Jun 2006 20:08:12 -0400
- Cc: heimdal-discuss@sics.se
- In-Reply-To: <6f3edef40605310719y1940969k22f03238994b2e08@mail.gmail.com> (EricOrtego's message of "Wed, 31 May 2006 09:19:21 -0500")
- References: <6f3edef40605191020n260b881fj84b9576144ec2091@mail.gmail.com><m264jvy8vj.fsf@nutcracker-2.local><6f3edef40605310719y1940969k22f03238994b2e08@mail.gmail.com>
- Sender: owner-heimdal-discuss@sics.se
- User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/22.0.50 (darwin)
"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