Previous section.

X/Open Single Sign-on Service (XSSO) -<br> Pluggable Authentication Modules

X/Open Single Sign-on Service (XSSO) -
Pluggable Authentication Modules
Copyright © 1997 The Open Group


pam_sm_get_mapped_username - get valid matched identity in new domain


#include <security/pam_appl.h>
#include <security/pam_modules.h>

int pam_sm_get_mapped_username ( pam_handle_t *pamh, char *src_username, char *src_module_type, char *src_authn_domain, char *target_module_type, char *target_authn_domain, char **target_module_username, int argc, const char **argv );


The pam_sm_get_mapped_username() function is used to obtain a valid identity in a new domain that matches the input identity. target_module_type and target_authn_domain are used to query the mapping database and extract the target_username.

The arguments for pam_sm_get_mapped_username() are:

pamh (in)

The PAM authentication handle, which has been returned from a previous call to pam_start().

src_username (in,out)

The source username used for the mapping. It this is NULL, then the value is obtained from the pam_hamdle. If a zero length string is specified, it is used to query the mapping service and the value is returned if found.

src_module_type (in)

The source authentication type; for example, DCE.

src_authn_domain (in)

The source domain; for example, the DCE cell name.

target_module_type (in)

The target authentication type; for example, UNIX.

target_authn_domain (in)

The target domain; for example, UNIX hostname.

target_module_username (out)

The target username which matches the input src_username.

argc (in)

The argc argument represents the number of module options defined in the PAM configuration.

argv (in)

Specifies the module options, which are interpreted and processed by the mapping module. If an unknown option is passed in, an error should be logged and the option ignored.


The following PAM status codes shall be returned:


Successful completion.


The username supplied is not recognized.


The mapping service does not support this module type.


The mapping service does not support this module's domain.


The mapping service failed in reading/writing data.


Ignore underlying session module regardless of whether the control flag is required, optional or sufficient.


The caller does not possess the required authority.


System error.


Memory buffer error.


Conversation error.

[??] Some characters or strings that appear in the printed document are not easily representable using HTML.

Why not acquire a nicely bound hard copy?
Click here to return to the publication details or order a copy of this publication.

Contents Next section Index