[PATCH] LDAP EXOP password change

Michael Gorven michael at gorven.za.net
Mon Nov 3 08:52:07 GMT 2008


On Monday 03 November 2008 10:21:40 Volker Lendecke wrote:
> "man ber_printf" does not show the "N" as a possible
> parameter. Has the OpenLDAP API changed?

I did notice that it isn't listed in the manpage. Here are the relevant parts 
from liblber/encode.c.

/* N tag */
static ber_tag_t lber_int_null = 0;

        case 'n':   /* null */
            rc = ber_put_null( ber, ber->ber_tag );
            break;

        case 'N':   /* Debug NULL */
            if( lber_int_null != 0 ) {
                /* Insert NULL to ensure peer ignores unknown tags */
                rc = ber_put_null( ber, lber_int_null );
            } else {
                rc = 0;
            }
            break;

So it seems that 'N' doesn't add anything to the packet (which is what I saw 
in the packet traces). I've also tested this patch with Samba 3.0.28a, but 
with the same version of OpenLDAP.

Perhaps someone could test this patch to see if it works in a different setup.

Michael

-- 
http://michael.gorven.za.net
PGP Key ID 6612FE85
S/MIME Key ID AAF09E0E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.samba.org/archive/samba-technical/attachments/20081103/1eb18921/attachment.bin


More information about the samba-technical mailing list