From: Krzysztof B. <kb...@un...> - 2018-10-04 08:51:15
|
Hi Sander, W dniu 04.10.2018 o 08:02, Sander Apweiler pisze: > Hi Krzysztof, > > we are redesigning our attribute set, collected from IdP/users and we > want to replace CN by givenName and sn. The CN will be build by ourself > from givenName and SN for the services who needs it. > > Some users will have the CN but no givenName and sn for some time and > vice versa. How can I create the CN by givenName and sn if CN does not > exists? > > If I create both statements in output translation profile, the first > will be overwritten by the second one and send some null values. Hmm either I miss something or this can be achieved with proper rule condition? Like : condition: !(attr contains 'cn') && (attr contains 'sn') && (attr contains 'givenName') action: create cn from sn and given name HTH, KB |