From aa4078ce016b968f00b69bf2b51635e81d846b88 Mon Sep 17 00:00:00 2001 From: Remy Blom <remy.blom@hku.nl> Date: Wed, 21 Jun 2017 15:23:25 +0200 Subject: [PATCH] added an example with array in the docs --- modules/core/docs/authproc_attributecopy.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/core/docs/authproc_attributecopy.md b/modules/core/docs/authproc_attributecopy.md index 37c99eaec..6f663d395 100644 --- a/modules/core/docs/authproc_attributecopy.md +++ b/modules/core/docs/authproc_attributecopy.md @@ -1,13 +1,13 @@ `core:AttributeCopy` =================== -Filter that renames attributes. +Filter that copies attributes. Examples -------- -Copy a single attribute (user's uid will be copied to the user's username): +Copy a single attribute (user's `uid` will be copied to the user's `username`): 'authproc' => array( 50 => array( @@ -16,3 +16,11 @@ Copy a single attribute (user's uid will be copied to the user's username): ), ), +Copy a single attribute to more then one attribute (user's `uid` will be copied to the user's `username` and to `urn:mace:dir:attribute-def:uid`) + + 'authproc' => array( + 50 => array( + 'class' => 'core:AttributeCopy', + 'uid' => array('username', 'urn:mace:dir:attribute-def:uid'), + ), + ), -- GitLab