plugin problem using slapi_entry_attr_find
by Deas, Jim
My bet, a rookie mistake. Am I forgetting to init a pointer etc???
Adding the line surrounded by ****** in this routine makes dirsrv unstable and crashes it after a few queries.
/* Registered preop_result routine */
int gnest_preop_results( Slapi_PBlock *pb){
Slapi_Entry *e;
Slapi_Attr **a;
If (slapi_pblock_get( pb, SLAPI_SEARCH_ATTRS, &e) !=0 )return (-1);
/*****************This line makes the server unstable and crashes it after one or two queries ********************/
If(slapi_entry_attr_find(e, "memberUid",&a) == 0) slapi_log_error(SLAPI_LOG_PLUGIN, "gnest preop","memberUid found in record);
/******************************************************************************************************/
Return (0);
}
JD
10 years, 2 months
Preop plugin for nested posix groups
by Deas, Jim
Current and legacy Linux boxes are using posix (memberuid) for rights management. I need to alter this to add one layer of nested groups. The best solution I can currently think of is to write a preop plugin.
This plugin would need to find all returned memberuid values starting with a dot and treat them like a nested group, expanding the returned memberuid list with that subgroups memberuid values as well.
I.E. two users and two subgroups to expand into users
frankJ
joycek
.engineering
.finance
Is there a better solution already known?
JD
10 years, 2 months