Re: Auto add attributes when entries are created

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> On 19 Nov 2018, at 09:30, Olivier JUDITH <gnulux@xxxxxxxxx> wrote:
> 
> Thank you for your reply. 
> 
> I'm not a C developer and i prefer Python but i'll try to write my plugin.
> It's a challenge for me I started to read plugins development documentation on Redhat page.
> From  my understanding i have to call SLAPI_PLUGIN_POST_ADD_FN , right ?. 

It’s a bit more than that. You have to call that function to register your function pointer. After that our server framework will call your function many times (threaded so in parallel too!). There is some more boilerplate around it too, but that’s the core of it, yes.

Also I’d probably do this as a “SLAPI_PLUGI_PRE_ADD_BETXN_FN”. That means it happens before the entry is commited to the database, and it happens within the write transaction so it’s properly able to be rolled back and such. We’d need to work out how to make the schema check pass for this situation however … (SLAPI_PLUGIN_PRE_ADD_FN could be before schema enforcement?).

> 
> If a use CoS template can i add a specific value.  I would like to add a generated value into this attributes.

CoS allows you to add a specific value to any entry matching a filter condition. So I think this may do exactly what you want. The only difference is CoS is “in memory” so all servers must be configured the same way to support it.

> 
> I'll come back to you for your advises. 
> 
> Thank again !!
> _______________________________________________
> 389-users mailing list -- 389-users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to 389-users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/389-users@xxxxxxxxxxxxxxxxxxxxxxx

—
Sincerely,

William


_______________________________________________
389-users mailing list -- 389-users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 389-users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-users@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux