Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Question about base64 encoded attributes with Net::LDAP::LDIF

by huck (Prior)
on Jun 27, 2019 at 01:11 UTC ( [id://11102011]=note: print w/replies, xml ) Need Help??


in reply to Question about base64 encoded attributes with Net::LDAP::LDIF

When i need this i use https://metacpan.org/pod/MIME::Base64. As in

use MIME::Base64; $buf='Authorization: Basic '.encode_base64($args{user}.':'.$args{passw +ord},'');
Note the second parm of the empty string.
Pass an empty string as second argument if you do not want the encoded string to be broken into lines.

Replies are listed 'Best First'.
Re^2: Question about base64 encoded attributes with Net::LDAP::LDIF
by steiner (Novice) on Jun 27, 2019 at 16:24 UTC

    well, yes I could manually do it myself but was hoping I could to this within the LDIF module since all I'm doing is 'read entry -> remove unneeded attributes -> write entry' and not touching most of the attributes in the entry.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11102011]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-23 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found