How to use name locking with RSA ACE/Agent 5.0 API
Originally Published: 2001-09-24
Article Number
Applies To
UNIX (AIX, HP-UX, Solaris)
Microsoft Windows NT 4.0
Microsoft Windows 2000
SD_LOCK
Issue
The sync2.c example code provided with RSA ACE/Agent 5.0 API is used to demonstrate name locking and Server fail over. The example is put into a continuous loop broken only by an error condition, which then results in SD_Close being called. When a name lock is established the user gets ACCESS DENIED even though there are available ACE/Server Replicas to authenticate against. The next authentication works correctly.
Cause
Resolution
The status file created is %SystemRoot%\System32\sdstatus.12 on Windows NT/2000 systems and $VAR_ACE/sdstatus.12 on UNIX systems. The following is an example of how a name lock can be establish to a valid server using the sync2.c example program:
int acmRet = 0; // ACM return status
//...
acmRet = SD_Lock(SdiHandle, username);
if (acmRet != ACM_OK)
{
// The name lock failed. The chosen Server must be down.
// Now to update this information to status.12 file
// and continue with the authentication.
// First close the API handle.
SD_Close(SdiHandle);
// Now re-open the handle for a new session.
acmRet = SD_Init(&SdiHandle);
if (acmRet != ACM_OK)
{
printf("Cannot communicate with the ACE/Server.\n");
return 1;
}
// As this is a new session the SD_Lock function will do a new search
// for available servers, updating the status file and ensuring no other
// down'ed servers are chosen.
// If this SD_Lock fails then there are no available ACE/Servers!
acmRet = SD_Lock(SdiHandle, username);
if (acmRet != ACM_OK)
{
printf("Access denied. Unable to locate a valid ACE/Server.\n");
return 1;
}
}
Related Articles
PAM Agent Solaris 10 sshd allows SecurID challenged user with blank Unix password access without challenge 67Number of Views A completed change request to remove Aveksa Application/Directory entitlements from a user does not remove the access from… 208Number of Views FIM Error cleaning up temporary users 4Number of Views RSA Authentication Agent 8.0.6 for Web for IIS Release Notes 88Number of Views RSA Announces the Availability of New Dashboards in the RSA Advanced Dashboards Library 14Number of Views
Trending Articles
How to manipulate imported RSA SecurID Software Token(s) on an iPhone or iPad device How to implement SAML SSO Authentication with Microsoft Azure Active Directory and RSA Identity Governance & Lifecycle Do TCP Agent using API ver. 8.5 & 8.6 need a new sdconf.rec file after a new Primary is promoted? RSA Authentication Manager 8.9 Patches and Hotfixes Readme "No decryption codes were found in the zip file" error when decrypting RSA SecurID tokens
Don't see what you're looking for?