GridShibCA::NameMapper

Interface to mapping Shibboleth authentication to X.509 DN.

Methods

new()
Create a new NameMapper object.

Arguments: None

Returns: Authorization instance

mapUser()
Return the RFC 2253 formatted DN for the given user.

Arguments:

$user - user id.

$idp - user idp as string

Returns: RFC 2253-formatted DN as string, undef on error.

getIdpPolicy()
Given an Idp name, return the name mapping policy associated with it from the authorizedIdps file.

Arguments:

$idp - Idp id as a string

Returns: Policy as string, undef on error

getError()
Return the last error message as a string.

Arguments: None

Returns: Error string

Internal methods

These internal methods not intended for external use.

_error()
Handle a error message.

Arguments: As to sprintf()

Returns: Nothing

Version

GridShib-CA version 0.4.0 ($Id: NameMapper.pm.in,v 1.3 2007/04/30 22:11:08 welch Exp $)