[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldapsearch -y works great, -w barks



On Fri, 27 Jan 2012, Dan White spaketh thusly:

-}On 01/27/12 17:25 -0500, Randy Schultz wrote:
-}>  0020:  6d 2c 64 63 3d 65 64 75  80 0c 73 75 70 65 72 73   m,dc=edu..supers
-}>  0030:  65 63 52 45 54 0a                                  ecret.
-}
-}It appears your password file has a trailing newline character (0x0a).
-}
(snip,crinkle,drop)
-}>  0020:  6d 2c 64 63 3d 65 64 75  80 0b 73 75 70 65 72 73   m,dc=edu..supers
-}>  0030:  65 63 52 45 54                                     ecret
-}
-}Which is missing here.

Hrm.  I forgot to mention that not only was the pw file created with echo "string">pwf, but the script that
pulls in the pw file and echos it, and no NL was shown.  IOW, when run the

  P=`cat p2`
  echo "|$P|"

would show

  |supersecret|

so there shouldn't have been a NL in the file, yet the 0a is there.  Just for grins tho', your thoughts got me
thinking.  I just ran an md5 on the file and compared it to just the string.  Well lookee here, they're
different.  Run od on the file and !surprise - the NL shows up.

Tnx for jolt, Dan.  I never thought to closely cmp the 2.  It's "feeling much better now".  ;>

--
 Randy    (schulra@earlham.edu)      765.983.1283         <*>

nosce te ipsum