Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

Navigation (EnterpriseLibrary)



Search the wiki
»

RacfService

RSS
Modified on Thursday, 20 October 2011 12:12 PM by 156.75.200.43 Categorized as Uncategorized
The RacfService allows users to perform authentication and authorization against RACF.


Authenticate

The authenticate method allows a userid and password to be authenticated.

Code Sample

using (var client = new ClientNetTcpBindingChannelProvider<IRacfService>())
{
    var authenticationResult = client.Proxy.Authenticate("userid", "password");
}

AuthenticateAndChangePassword

The AuthenticateAndChangePassword method allows a password to be changed for a userid given the correct old password.

Code Sample

using (var client = new ClientNetTcpBindingChannelProvider<IRacfService>())
{
    var authenticateAndChangePasswordResult = client.Proxy.AuthenticateAndChangePassword("userid", "oldPassword","newPassword");
}

AuthenticateAndAuthorize

The AuthenticateAndAuthorize method allows a userid and password to be authenticated and authorized against a racfGroup.

Code Sample

using (var client = new ClientNetTcpBindingChannelProvider<IRacfService>())
{
    var authenticateAndAuthorizeResult = client.Proxy.AuthenticateAndAuthorize("userid", "password","racfGroup");
}

GetGroupsUserIsMemberOf

Checks against a list of racf groups for a given user.

Code Sample

using (var client = new ClientNetTcpBindingChannelProvider<IRacfService>())
{
    var groupsUserIsIn = client.Proxy.GetGroupsUserIsMemberOf("userid", "password", new List<string>{"Group1","Group2"});
}

See Also

ScrewTurn Wiki version 3.0.4.560. Some of the icons created by FamFamFam.