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
RSA Authenticator 4.3.3 App Update iOS Only 30Number of Views PAM Agent Solaris 10 sshd allows SecurID challenged user with blank Unix password access without challenge 62Number of Views PAM Agent Solaris 10 sshd always increments /etc/shadow auth failure field 24Number of Views RSA MFA Agent 3.x AD FS for Windows Not Prompting for MFA on Test Page 17Number of Views A completed change request to remove Aveksa Application/Directory entitlements from a user does not remove the access from… 192Number of Views
Trending Articles
Quick Setup Guide - Passwordless Authentication in Windows MFA Agent for Active Directory RSA Authentication Manager 8.9 Release Notes (January 2026) RSA Governance & Lifecycle 8.0.0 Administrators Guide RSA MFA Agent 2.3.6 for Microsoft Windows Installation and Administration Guide RSA MFA Agent 2.5 for Microsoft Windows Installation and Administration Guide
Don't see what you're looking for?