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