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 always increments /etc/shadow auth failure field 24Number of Views RSA Identity Governance and Lifecycle 7.0 identity collector fails with error ORA-01422: exact fetch returns more than req… 50Number of Views RSA Identity Governance and Lifecycle 7.1 Release Notes 29Number of Views PAM Agent Solaris 10 sshd allows SecurID challenged user with blank Unix password access without challenge 62Number of Views
Trending Articles
Passwordless Authentication in Windows MFA Agent for Active Directory – Quick Setup Guide RSA Authentication Manager 8.9 Release Notes (January 2026) RSA Authentication Manager Upgrade Process RSA Authentication Manager 8.7 SP2 Setup and Configuration Guide An example of SSO using SAML and ADFS with RSA Identity Management and Governance 6.9.x
Don't see what you're looking for?