[389-users] Re: Setting an attribute value automatically according to some rule

2019-02-21 Thread William Brown
So finally got some time for a code review for you :) This plugin seems pretty simple - and pretty specific to your needs. But it’s a good example of a place to start in 389 development. Something I’d love to see is a way for you to compile and test this with ASAN - it’s a dynamic analysis tool

[389-users] Re: Setting an attribute value automatically according to some rule

2019-02-19 Thread Olivier JUDITH
Sorry , i forgot my makefile To be honest i use the exemple provided in the documentation . For testing, i've deployed the compiled plugin on my local instance # Makefile for Directory Server plug-in examples # CC = gcc LD = gcc CFLAGS = -fPIC -I /usr/include/nspr4 -Wall LDFLAGS = -shared -z defs

[389-users] Re: Setting an attribute value automatically according to some rule

2019-02-19 Thread William Brown
> On 20 Feb 2019, at 09:56, Olivier JUDITH wrote: > > Hi William > > It's a simple testing code not finished yet but i think it could help > beginners like me > Don't be cruel with me i'm not a C progorammer. We do our best here to be constructive and helpful, not cruel. Thanks for provid

[389-users] Re: Setting an attribute value automatically according to some rule

2019-02-19 Thread Olivier JUDITH
Hi William It's a simple testing code not finished yet but i think it could help beginners like me Don't be cruel with me i'm not a C progorammer. The goal here is to create 4 new attributes aCode, bCode, aCodeHas,bCodeHash everytime a new entry is added. A step to add is how to filter by kind of

[389-users] Re: Setting an attribute value automatically according to some rule

2019-02-18 Thread Mark Reynolds
On 2/17/19 8:01 PM, William Brown wrote: Yeah, I don’t think cos can do templating. Right, COS can add pre-defined virtual values to an entry based on certain attribute values found in that entry, but it can not generate dynamic values like this. If you would be willing Oliver, would you sub

[389-users] Re: Setting an attribute value automatically according to some rule

2019-02-17 Thread William Brown
Yeah, I don’t think cos can do templating. If you would be willing Oliver, would you submit your code to the project, and allow it to be made generic? That could help quite a few people out with similar queries. > On 17 Feb 2019, at 00:20, Olivier JUDITH wrote: > > Hi , > > There is a way

[389-users] Re: Setting an attribute value automatically according to some rule

2019-02-16 Thread Olivier JUDITH
Hi , There is a way to add attribute to user entry automatically called CoS . You can take a look on this link https://access.redhat.com/documwanentation/en-us/red_hat_directory_server/9.0/html/administration_guide/advanced_entry_management-assigning_class_of_service But afaik you cannot add an e