For Programmers: Free Programming Magazines  


Home > Archive > LDAP > December 2005 > Subject: Re: HowTo retrieve a userCertificate;binary from ldif file using Net::LDAP::









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Subject: Re: HowTo retrieve a userCertificate;binary from ldif file using Net::LDAP::
Bob Rion

2005-12-02, 9:46 pm

Chris thanks for the reply.


>On 1/12/05 1:06, Rion, Bob <Bob_Rion[at]csgsystems.com> wrote:
>
file[color=darkred]
[at]entries is[color=darkred]
>
>
>Does:
>
> (@entries) = $ldif->read();
>
>
>Change things? If you're running with -w and 'use strict;' in effect,

does
>that show any problems up?
>
>

Same thing, I examined the $ldif object and the @entries array and all
the entries and attributes are there from the ldif file but the
userCertificate;binary entry
>
information[color=darkred]
>
>
>Is the LDIF file encoding the certificate properly? It should look

something
>like:
>
>userCertificate;binary:: <base-64 encoded DER certificate>
>
> (The certificate could obviously be split across multiple lines...)

Yes, I manually unfolded and un-encoded the entry and it is a valid
certificate in DER format.
>
>Cheers,
>
>Chris


>




Bob


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com