When connecting by way of LAPI to a Livelink server that uses DirectoryServices NTLM authentication, you may receive the error ‘A requiredprivilege is not held by the client’ and the login fails.
This error message is generated by Microsoft Windows when a userattempts to perform an operation for which they do not hold the requiredprivilege. In this case, the user that runs the Livelink service is trying tolog in to Windows as the LAPI client user to verify the credentials. The userperforming the operation must have the ‘Act as a part of the operatingsystem’ right.
This is normally not an issue as the default install of Livelinkcreates services that run as the system account, which already has the right.This problem is caused when the Livelink service is set to run as a user thatdoes not have the ‘Act as a part of the operating system’ right.
To get Livelink NTLM authentication to work while running the Livelinkservice as a user other than system, make sure the account running Livelink hasthe ‘Act as a part of the operating system’ right. Refer to theMicrosoft Knowledge Base for information on setting user rights in Windows NTand Windows 2000.
From: eLinkDiscussion: Development Discussion [mailto:development@elinkkc.opentext.com] Sent: Wednesday, May 12, 2004 1:51AMTo: eLink RecipientSubject: LAPI to Port 2099 andNTLM
LAPI to Port 2099 and NTLM
Posted by GSchlechtriem (Schlechtriem, Guido) on 05/12/2004 01:50 AM
We write a VB Application to connect Livelink via Port 2099. We want to publish a new Document to Livelink. We are using SingleSignOn and the password is hidden. I read the existing Topics in the discussion, but all of them were corresponding to Port 80 (IIS-Webserver)!? The code works fine when we try it with port 2099 and Admin / adminpwd. (or any Not NTLM User) If we try an NTLM User, we have an Error: "A required privilege is not held by the client." If we try LAPI to correspond over Port 80 the Session hangs up. Sample: If (Status = LL_OK) Then Status = LL_SessionAlloc( _ m_lSession, _ m_sServername, _ m_lServerport, _ m_sConnection, _ m_sLivelinkuser, _ m_sLivelinkPassword) End If Anybody can give me a hint?