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 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 <gnu...@gmail.com> wrote:

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 email based on the uid except if CoS support macros 
like ACI. To do that you have to create your own plugin see 
:https://access.redhat.com/documentation/en-us/red_hat_directory_server/9.0/html/plug-in_guide/
I did the same for another kind of attribute.
It works fine for me
Le sam. 16 févr. 2019 à 14:29, Rosario Esposito <rosario.espos...@na.infn.it> a 
écrit :

Hello,
let's say whenever I create a new entry:

uid=myuser,ou=people,dc=example,dc=com

I would like this entry to have the attribute:

mail: myu...@example.com

(i.e. the value of 'mail' should be automatically set to the value of
'uid' + '@example.com')

Is there a way for 389ds to do this task automatically ?


Thanks,
--
Rosario Esposito
System Administrator
INFN - Napoli
Phone: +39 081 676170
Email: rosario.espos...@na.infn.it
_______________________________________________
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
_______________________________________________
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
—
Sincerely,

William Brown
Software Engineer, 389 Directory Server
SUSE Labs
_______________________________________________
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
_______________________________________________
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org

Reply via email to