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
New PIN rejected on first attempt in RSA ACE/Agent 5.0 or Agent based on 5.0 API 24Number of Views Unexpected error from ACE/Agent API for RSA Authentication Agent for PAM 223Number of Views Get Java Auth API sample code to authenticate consistently with 'Requires Name Lock' enabled 36Number of Views How to remove RSA ACE/Server node secret when RADIUS is in use and no RSA ACE/Agent is installed 108Number of Views Unable to re-use a deleted account name if the account was previously disabled in RSA Identity Governance & Lifecycle 433Number of Views
Trending Articles
RSA Authentication Manager Patch Updates RSA SecurID Software Token 4.1.2 and 4.2.1 for Mac OS X displays: No token storage device was detected. Verify that the de… How to manipulate imported RSA SecurID Software Token(s) on an iPhone or iPad device RSA SecurID software token .sdtid file fails to import into RSA SecurID Software Token 5.0 for Windows Configuring a Checkpoint firewall to work with SecurID
Don't see what you're looking for?