[Samba] Help for ber_printf(ber, "N}" in pdb_ldap.c
Volker Lendecke
Volker.Lendecke at SerNet.DE
Tue Jun 5 06:01:27 GMT 2007
On Mon, Jun 04, 2007 at 09:14:24PM -0000, Li, Ying (ESG) wrote:
> definition of the "N" format character either. I only saw the lower case
> format character "n"(Null). Therefore, I'd like to know what is the
> meaning of the encoding format character "N".
>
> ber_printf( ber, "N}" );
>
> Could somebody run into the problem, or can help me?
From 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 this is just something to confuse readers in
this case...
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20070605/d2cecf68/attachment.bin
More information about the samba
mailing list