Sun Java System Access Manager 7.1 C API Reference

am_auth_get_organization_name()

Retrieves the organization to which the user is authenticated.

Syntax

#include "am_auth.h"
AM_EXPORT const char *
am_auth_get_organization_name(am_auth_context_t auth_ctx);

Parameters

This function takes the following parameter:

auth_ctx

The am_auth_context_t type.


Note –

See am_auth_context_t for information.


Returns

This function returns a pointer with one of the following values:

Zero-terminated string representing the organization.

After the user successfully logs in.

NULL

If there was an error or the user has not successfully logged in.