wardmw has asked for the wisdom of the Perl Monks concerning the following question:
Good day all,
I have been banging my head on this problem for some time now, have searched the Internet for solutions but I can find nothing so I turn to you, who know all (well, most) concerning Perl.
I have a list of IP addresses, @mynets, and I want to store them in an LDAP database using the Net::LDAP module. The attribute that this list will be stored in is a binary one as the contents of the attribute are downloaded to a flat file by a different tool.
How do I add/update a binary value with the contents of a list using Net::LDAP? I have tried:
but it fails as it thinks I am trying to add multiple values to 'filestore'. Any ideas or suggestions as to other ways to do it?$result = $ldap->add( "cn=mynetworks,$ldapFileDN", attrs => [ 'fileStore' => [ @mynets ], 'homeDirectory' => '/etc/postfix' ] );
|\/|
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Updating a binary value in Net::LDAP
by NetWallah (Canon) on Dec 31, 2012 at 16:06 UTC | |
by wardmw (Acolyte) on Jan 02, 2013 at 15:07 UTC |
Back to
Seekers of Perl Wisdom