On 18 Dec 2012, at 23:42, John Rodkey wrote:
> I have a specific need to which I think an authproc filter might be the solution, but I'm confused as to how to go about it.
>
> My SP wants a unique userID that would be an email address. e.g.
rod...@westmont.edu
> My first solution was to send the LDAP attribute 'mail' from our IdP.
>
> However, mail is a multivalue variable, so doesn't satisfy the unique prerequisite.
> I only want to send the equivalent of <cn>@
mydomain.com where CN comes from the LDAP IdP.
>
> Here's what I've got in metadata/saml20-sp-remote.php now to send the mail attribute:
> 'simplesaml.nameidattribute' => 'mail',
> 'simplesaml.attributes' => true,
> 'attributes' => array('givenName','sn','mail','groupMembership')
>
> How do I set up authproc to munge cn into cnmail?
>
> Presumably I would then have a sp-remote containing
> 'simplesaml.nameidattribute' => 'cnmail',
> 'simplesaml.attributes' => true,
> 'attributes' => array('givenName','sn','cnmail','groupMembership')
>
> And something somewhere else that does something like
> cnmail =
cn+'@mydomain.com'
>
> It's that last piece that I have no idea where or how to do.
>
> Can the authproc experts come to my rescue?