Просмотр исходного кода

Ticket 47807 - SLAPI_REQUESTOR_ISROOT not set for extended operation plugins

Bug Description:  SLAPI_REQUESTOR_ISROOT not set for extended operation plugins

Fix Description:  Added the appropriate call to slapi_pblock_set just before
                  the plugin functions get called in extendop.c

https://fedorahosted.org/389/ticket/47807

Patch proivded by: Jochen Schneider <[email protected]> (Thanks!!)

Reviewed by: mreynolds
Mark Reynolds 11 лет назад
Родитель
Сommit
ce4ff66498
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      ldap/servers/slapd/extendop.c

+ 2 - 0
ldap/servers/slapd/extendop.c

@@ -361,6 +361,8 @@ do_extended( Slapi_PBlock *pb )
 
 	slapi_pblock_set( pb, SLAPI_EXT_OP_REQ_OID, extoid );
 	slapi_pblock_set( pb, SLAPI_EXT_OP_REQ_VALUE, &extval );
+	slapi_pblock_set( pb, SLAPI_REQUESTOR_ISROOT, &pb->pb_op->o_isroot);
+	
 	rc = plugin_call_exop_plugins( pb, extoid );
 
 	if ( SLAPI_PLUGIN_EXTENDED_SENT_RESULT != rc ) {