Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Converting Active Directory's Base64-Encoded UTF8 data to ISO-8859-1 inline

by bronto (Priest)
on Jan 27, 2005 at 11:55 UTC ( [id://425532]=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ldapsearch -x -h 10.11.12.13 -p 3268 -b dc=ourdomain,dc=com -D a_dn_al
    +lowed_to_search_and -w its_password '(manager=the_dn_of_our_boss)' cn
    + | perl -MEncode -MMIME::Base64 -lpe 'if (/::/) { ($attr,$_)=split ; 
    +Encode::from_to($_=decode_base64($_),"utf8","iso-8859-1") ; $_="$attr
    +: $_" }'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-03-29 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found