Has anyone used the OpenWithBasicSignon Method to access a namespace on an LAE?
Documentation:
OpenWithBasicSignon Method - Opens an existing namespace on a directory server or local authentication export file by using a basic signon.
Syntax:
AuthenticatorDocuments.OpenWithBasicSignon Namespace, Signon, [Password],
[UserClassName]
Here's a sample of my code:
'-----------------------------------------------------------
Sub Main()
Dim objAuthApp as Object
Dim objAuthDoc as Object
Dim objLAEConfig as Object
Dim sLAEPath as String
Dim objUserClass() as Object 'Object array for Access Manager UserClasses
'-----------------------------------------------------------
'In Use: used for directly writing to the LAE file in sLAEPath.
'Script is the namespace
sLAEPath = "E:\Cognos\cer3\bin\Backup\Default.lae"
Set objAuthApp = CreateObject("Authenticator2.Application")
Set objLAEConfig = objAuthApp.LAEConfigurations.Add(sLAEPath)
Set objAuthDoc = objAuthApp.Documents.OpenWithBasicSignon ("Script", "administrator", "password", 0)
'Not In Use: used for directly writing to the Directory Server.
'Set objAuthApp = CreateObject("Authenticator2.Application")
'Set objAuthDoc = objAuthApp.Documents.OpenWithBasicSignon ("Default", "administrator", "password", 0
'ReDim's objUserClass arrays to number of UserClasses
ReDim objUserClass(6) as Object
Set objUserClass(0) = objAuthDoc.RootUserClass
Set objAuthDoc = Nothing
Set objAuthApp = Nothing
Set objLAEConfig = Nothing
End Sub
'-----------------------------------------------------------
Problem:
I don't think I am accessing the namespace in the LAE correctly because the following code fails:
Set objUserClass(0) = objAuthDoc.RootUserClass
(If you use the commented-out "not in use" code to access the directory server, the line above works!)
Thanks for reading this...
Documentation:
OpenWithBasicSignon Method - Opens an existing namespace on a directory server or local authentication export file by using a basic signon.
Syntax:
AuthenticatorDocuments.OpenWithBasicSignon Namespace, Signon, [Password],
[UserClassName]
Here's a sample of my code:
'-----------------------------------------------------------
Sub Main()
Dim objAuthApp as Object
Dim objAuthDoc as Object
Dim objLAEConfig as Object
Dim sLAEPath as String
Dim objUserClass() as Object 'Object array for Access Manager UserClasses
'-----------------------------------------------------------
'In Use: used for directly writing to the LAE file in sLAEPath.
'Script is the namespace
sLAEPath = "E:\Cognos\cer3\bin\Backup\Default.lae"
Set objAuthApp = CreateObject("Authenticator2.Application")
Set objLAEConfig = objAuthApp.LAEConfigurations.Add(sLAEPath)
Set objAuthDoc = objAuthApp.Documents.OpenWithBasicSignon ("Script", "administrator", "password", 0)
'Not In Use: used for directly writing to the Directory Server.
'Set objAuthApp = CreateObject("Authenticator2.Application")
'Set objAuthDoc = objAuthApp.Documents.OpenWithBasicSignon ("Default", "administrator", "password", 0
'ReDim's objUserClass arrays to number of UserClasses
ReDim objUserClass(6) as Object
Set objUserClass(0) = objAuthDoc.RootUserClass
Set objAuthDoc = Nothing
Set objAuthApp = Nothing
Set objLAEConfig = Nothing
End Sub
'-----------------------------------------------------------
Problem:
I don't think I am accessing the namespace in the LAE correctly because the following code fails:
Set objUserClass(0) = objAuthDoc.RootUserClass
(If you use the commented-out "not in use" code to access the directory server, the line above works!)
Thanks for reading this...