Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
LL_SessionAllocEX Returns E_HTTPACCESSDENIED
Mohammed_Abushmais
Hi everyone,I'm using LL Directory services 2.3 with Livelink 9.5 and Windows 2003 Server, Livelink is installed Windows 2003 Server with IIS 6.0. Livelink is configured to use NTLM Synchronization and NTLM Authentication (Username only) as per the installation guide.IIS setting for both Livelink and livelink support virtual directories are:- Anonymous Access is disabled- Integrated windows authentication is enabled- Basic authentication is enabledThe authentication is working fine when we use Livelink URL directly, but calling LL_SessionAllocEx fails and return LL_E_HTTPACCESSDENIED unless I passed the username and password in the Config parameter. LAPI documentation says "LAPI's NTLM component uses the currently logged in Windows user to try to establish a connection when the Web server requires NTLM authentication and the user name and password are not specified."I need to connect to livelink via HTTP port without providing the username and password; I tried not to pass then and to pass empty strings to them bu I always get LL_E_HTTPACCESSDENIED Here is my code: ErrStatus = LL_Initialize(LL_HEADER_VERSION) errStatus = LL_ValueAlloc(config1) ErrStatus = LL_ValueSetAssocInArgs(config1) ErrStatus = LL_AssocSetInteger(config1, "HTTPS", LL_FALSE) ErrStatus = LL_AssocSetString(config1, "LivelinkCGI", "/Livelink/Livelink.exe") ErrStatus = LL_AssocSetString(config1, "HTTPUserName", "") ErrStatus = LL_AssocSetString(config1, "HTTPPassword", "") ErrStatus = LL_AssocSetString(config1, "DomainName", "DC") ErrStatus = LL_SessionAllocEx(Session_ID, "DC", 80, "OPENTEXT", "", "", config1)ErrStatus returns LL_E_HTTPACCESSDENIED Does anyone have a clue?
Find more posts tagged with
Comments
Developers_Comparex_Africa_(x-comparexdevelopment_
From your code it looks as if you want to do a non-secure tunneling connection to the Livelink server? For NTLM authentication you would need to get hold of the Livelink session cookie and then use the LL_SessionAllocFromCookieEx() function. This will give the "see through" connection to the Livelink server.