jpegPhoto takes the binary data and then shoves it into the LDAP server.
Like this:
my $photofile ;
my $jpeg;
open(DATA,$photofile) || die("failed to open $photofile.$!\n");
binmode($photofile); #only required on Windows
{
local $/;
#slurp entire file
$jpeg = <DATA>;
}
$ldap = new Net::LDAP...
$ldap->modify($dn,
add => {"jpegphoto" => $jpeg}
);
...
Mark
Joshua Lavalleur wrote:
> When using Perl-LDAP what does the attribute jpegphoto require when you add
> or modify a record? I would guess just a path name? Is that correct?.
>
> Joshua J. Lavalleur
> IT Intern
> Advanced Radio Telecom
> P. 425-688-8700 ext 1973
> Jos...@ip...
|