I am having some issues with the BindSasl function.   I have not been
able to successfully do the DIGEST-MD5 type bind to our iSeries AS400
server.   To see what was going on, I started Wireshark to look the
conversation.   

 

For the first message getting sent, Wireshark complains with this error:

"BER Error: Wrong field in sequence  expected class:UNIVERSAL(0)
tag:4(OCTET STRING) but found class:UNIVERSAL(0) tag:5"

 

The code that is giving the problem is the following:

    digreq := ASNObject(ASNEncInt(FVersion), ASN1_INT)

>>>>>>>>>      + ASNObject('', ASN1_NULL)   <<<<<<<<<<<<<<<<<<<<<

      + ASNObject(ASNObject('DIGEST-MD5', ASN1_OCTSTR), $A3);

 

If I change that line to       + ASNObject('', ASN1_OCTSTR)         it
gets past the first message.    I had to also change this on the second
message.   I am now getting another Wireshark error when sending the
response back to LDAP.   

 

"BER Error: This field lies beyond the end of the known sequence
definition."

 

The error is on the response portion of the message.   I can't get past
this no matter what I try.    

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to