How do I get ldapsearch to stop automatically minimizing base-64 encoded results?

It appears that: when executing an ldapsearch, any result that is base-64 encoded will automatically be decoded.
In cases of the user password that is an encoded salted hash, it ends up removing the "SHA" from the password value. This is not desired. In other instances of ldapsearch such as linux or sun, there is a flag (-e) for example to actually cause the minimizing of a base-64 value because it defaults to not-minimize. With the ldapsearch on Mac, it's the other way around.
So how do I get it to not minimize? Here is an example where the password is "base-64" minimized:
Example 1.
ldapsearch -b "o=mybase" -LLL -D cn=myAdminName -H "ldaps://ldapserver.anycompany.com" -w mypassword-x "cn=john.smith" userpassword
dn: cn=john.smith,ou=here,o=mybase
userPassword:: eolk3ru093jrkahflj90jAFDF3ruiodfanklgh
Normally, you see the following result where the value of password is not altered:
Example 2.
ldapsearch ......<yada yada>
dn: cn=john.smith,ou=here,o=mybase
userPassword: {SSHA}IJatTTSrueiovCAPjWWrnmadjfkdfuegjda8923rv==
In other iterations of ldapsearch such as on Sun (Oracle), you can execute the search with -e flag and it will produce the same result as example 1. (Not what I want).
uname -a
Darwin <REMOVED> 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64

QUOTIENT works with integers (or the integer part of a decimal numbers, so what you're seeing it the result of this arithmetic exercise (without the remainder):
The remainder is provided by the MOD (short for modul0) function.
Jerry is correct in describing the result you want as the "precise" answer rather than the "exact" answer. While both are the same for your example, the example is a special case.
Had you spent only a penny more (or a penny less) there would be no "exact" answer to the question "amount" divided by seven. There would be a correct answer, precise to the nearest hundredth of a dollar.
Regards,
Barry

Similar Messages

  • How can I get Mail to stop automatically opening on startup of my MacBook?

    How can I get Mail to stop automatically opening on startup of my MacBook Pro? It's not in my startup items folder. But it auto-opens every time I boot up

    In System Preferences / General make sure the Restore Windows ...... is unchecked.
    Also uncheck in the shutdown dialog box

  • How do you get ITunes to STOP automatically scanning my hard drives?

    How do you get ITunes to STOP automatically scanning my hard drives for files? I have a number of audio and video files located all over my computer. However, my music folder is located in one place. I only want ITunes to look there to ad music to my IPod? I don't want to add any videos to my IPod however, it automatically scans for this as well. Infact... I don't want ITunes to automatically scan for anything. Why is this doing this?

    You can configure iTunes to sync only a subset of your music. Create a playlist in iTunes of the music you want on the iPod, and change the iPod sync settings. More info is here.

  • I don't use Mail - how do I get it to stop automatically opening?

    Mail opens up all the time, and I don't like using it. I really don't like having to close a million times a day. How do I stop it from opening by itself in the first place? Is that even possible?

    Your fan(s) will run at high speed (i.e., loudly) while video is playing, and you can't get around that.
    If your fans are not slowing down within 2-4 minutes after CPU- and/or GPU-intensive usage ends, and the application that was showing the video is still running, Quit that application. (In fact, if you're accustomed to Windows, you may not realize that simply closing a Mac application's window does not quit the application. You still need to use the Quit command in the application-name menu. There will always be a bright dot beside or below the application icon in your Dock for each application that is open.) Quit the ones you aren't using, and see whether that allows the fans to slow down without restarting the machine. If that doesn't do the trick, reset the SMC:
    http://support.apple.com/kb/HT3964?viewlocale=en_US&locale=en_US

  • How do I get Firefox to stop automatically sorting my bookmarks

    I like to do it manually so that the most recent is at the bottom but for the last month or so Firefox has been sorting bookmarks however it wants. Seems to be doing it by whatever is the last added so everything is all over the place. If I move them around they'll stay for a few minutes but then get mixed up again.

    I got this problem too. Everytime Firefox syncs, it seems trying to get the bookmarks in whatever sort it is using server side. So I need to manually sort ALL bookmarks again each time it's doing so. Painful. Plus it is eating my cpu when I sort manually.

  • When my daughter downloads an app, it automatically downloads to my other daughters ipad too. how do i get this to stop?

    when my daughter downloads an app to her ipad it automatically downloads it to my other daughter's ipad. how do i get this to stop?

    Automatic Downloads...
    http://support.apple.com/kb/ht4539
    Settings > Store > Automatic Downloads > Music/Apps > Off

  • Whenever I want to open a template in Microsoft Word it automatically opens in Pages.  how do I get this to stop?

    Whenever I open a template document in Microsoft word, it automatically opens in Pages.  THis has happened since I downloaded Mavericks.  How do I get this to stop and allow me to use Microsoft word templates in Miicrosoft word?

    Right click on a template and choose Get Info. Find the "Open with" section, and change it to Word. Click Change All if you want all templates to be opened in Word by default.

  • How do I get iTunes to stop asking me to sign in?

    How do I get iTunes to stop asking me to sign in?  I will never buy from iTunes so there is no point in me signing in.  A year ago I bought a couple of albums off iTunes but I was sorely disappointed that I did not have the hard copy and album art in a physical form.  That made me resolve to only buy music (or any content) in solid form and from the artist themselves if possible.  And this is not to mention the proprietary format of iTunes music which basically makes every purchase a lease and not an ownership.  So with that said, it is very annoying that iTunes on start-up asks me to sign in, not once, but TWICE.  For such a little thing, you would think it would be infuriating.  But alas, I'm very tired of being bullied and that is all it is to me.  ITunes is a marketing BULLY.  I'll stop now before I start in on all the explicatives I can think of for iTunes Store.
    CAN ANYONE HELP?

    tcharlesl wrote:
    How do I get iTunes to stop asking me to sign in?
    Try this...
    Sign into the iTunes store and View account.
    Uncheck Ping (to turn it off).
    Also, iTunes prefs > Store. Uncheck Automatic downloads
    And this is not to mention the proprietary format of iTunes music
    Good thing we don't mention it then because AAC is not proprietary.
    which basically makes every purchase a lease and not an ownership.
    You mean exactly like when you purchase music on a CD (or from any other online store or source)?
    You do own the actual CD, but for the music, all you are purchasing is a license to use it (a lease) in accordance with that license.

  • How to I get autofill to stop filling in my browser?

    I have gone to preferences>autofill and gotten rid of things that were being filled in.
    It's not working. I will start to type a letter in the browser, and it's filled in automatically. I don't want it to do that. How can I get it to stop? I did check Private Browsing as well. thanks!

    HI,
    Safari/Preferences - AutoFill web forms.
    Make sure you unchecked those boxes.
    Also, make note of all your preferences.
    Then delete this file. com.apple.safari.plist
    Go here: ~/Library/Preferences.
    Move that .plist file to the Trash and restart your Mac.
    Carolyn

  • How do I get it to stop?

    I have W8.1 on my HP laptop. I am using my Bluetooth headset to listen to programs, videos, etc. My problem is, especially when I switch between my laptop and cell phone, the Windows Media Player starts up. HOW DO I GET IT TO STOP?
    It seems when I hang up from a phone conversation, WMP automatically opens with NO assistance from me. I seldom listen to it, yet it just opens and plays. 
    Aside from deleting it altogether, what can I do to stop autoplay. Yes, I have tried to stop the autoplay but that does no good. I have over 900 songs on here and do like to listen to it WHEN I CHOOSE, not when it does. Someone please help me!

    Unfortunately your post is off topic here, in the TechNet Site Feedback forum, because it is not Feedback about the TechNet Website or Subscription.  This is a standard response I’ve written up in advance to help many people (thousands, really.)
    who post their question in this forum in error, but please don’t ignore it.  The links I share below I’ve collected to help you get right where you need to go with your issue.
    For technical issues with Microsoft products that you would run into as an
    end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products. Office related forums are also here:
    http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an
    IT professional (like technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
    http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the subscription or the TechNet Website, and I screwed up, I apologize!  Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots
    of the issue (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing. 
    If you really had no idea where to post this question but you still posted it here, you still shouldn’t have because we have a forum just for you!  It’s called the Where is the forum for…? forum and it’s here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Moving to off topic. 
    Thanks, Mike
    MSDN and TechNet Subscriptions Support <br/> Read the Subscriptions <a href="http://blogs.msdn.com/msdnsubscriptions">Blog! </a>

  • I'm trying to enter a decimal. How do I get it to stop rounding to a whole number?

    I have to enter in data as a decimal, but it rounds it up or down everytime I move to the next cell.  How do I get it to stop rounding automatically?

    select the the column of cells and apply the formatting you want using the cells inspector:
    To open the inspector select the menu item "View > Show Inspector"

  • Every app I download on my iphone also downloads on my husband's iphone.  How do I get this to stop?

    every app i download on my iphone also downloads on my husband's iphone.  How do I get this to stop?  I don't think I have HomeSharing on...

    ckuan wrote:
    Use a different Apple ID for purchasing. (You can't share anymore)
    That is incorrect. You can, and most people do, share one Apple ID for purchases.
    All you need to do is turn off Automatic Downloads in the Store Settings of the iPhone. You do that by launching the settings app and selecting Store. There you will find the on-off toggles for the Automatic downloads.

  • TS3989 My 5th gen ipod touch was stolen.  I removed the device from my iTunes account, but their pictures still show up on the photostream on the one I purchased to replace it.  How do I get this to stop, the cops have no interest in their faces, nor do I

    My 5th gen iPod touh was stolen a month ago.  I immediately removed that device from my account and yet today I looked at my photostream and there are tons of pics of these people on my photostream.  How do I get this to stop?!?

    Change your iCloud ID password: http://support.apple.com/kb/HT5624.  After doing so, go to Settings>iCloud, tap Delete Account, then sign back in with the new password.

  • I downloaded the new 6 software. Me and my boyfriend share the same iTunes account and now every time I text him I also get a copy of the text sent to my from my number. How do I get that to stop?

    I downloaded the new 6 software. Me and my boyfriend share the same iTunes account and now every time I text him I also get a copy of the text sent to my from my number. How do I get that to stop?

    Go to settings > messages > send & receive
    check or uncheck the correct phones numbers and/or email addresses

  • When I click the home button, it takes me to my home page AND opens a blank tab. How can I get it to stop opening the new tab!

    I have igoogle as my hompage. When I click the home button, it will open my igoogle page but also open up a blank tab as well. Firefox didn't always do this, it just started. Maybe when I upgraded to the 5.0. I've tried looking in the options and I can't find something there and there doesn't seem to be a solution on the web. How do I get it to stop doing that?

    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Restore the default home page
    * https://support.mozilla.com/en-US/kb/How%20to%20set%20the%20home%20page#w_restore-the-default-home-page
    Check and tell if its working.

Maybe you are looking for