Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Plugin Manager Error

Status
Not open for further replies.

chris777

MIS
Jan 3, 2002
228
0
0
US
If this has been answered before, I appologize but I can't seem to get the site's search function to work, so here goes.

I am trying to write a logon script for CE 8.0; after I create the Session Manager, I try to logon and get the following error:
Plugin Manager error: "Unable to locate the requested plugin Enterprise on the server."

The code is simple: Set Sess = SessionManager.Logon(UserID, Password, APS, Aut)

I am checking for err.description after creating the Session Manager, so it should be ok. I have copied all the code from Crystal's logon.csp page and I get the same error. I have accessed the page from my own virtual directory and from the default virtual application ("Crystal") that the install creates and I have had no luck.

It's got be something simple....<sniffle>!

Thanks.

Chris

Chris
DFW Crystal User Group
 
In the line:-
Set Sess = SessionManager.Logon(UserID, Password, APS, Aut)
What is in Aut? It should be 'secEnterprise' for Crystal Enterprise authentication.

 
It is the authentication method. I guess I should have pasted the whole page; it's not very long. This is cut and paste from Crystal's logon.csp. The only thing I changed was the request.form items to match my HTML page and I commented out the JavaScript error message because it was causing some kind of error.


<%OPTION EXPLICIT%>
<%

Dim UserID, Password, APS, Aut

'Retrieve the user information from the form
'in the previous page.
APS = Request.form(&quot;apsname&quot;)
UserID = Request.form(&quot;username&quot;)
Password= Request.form(&quot;password&quot;)

'Authentication type.
Aut = Request.form(&quot;authentication&quot;)

response.write &quot;APS Name: &quot; & aps
response.write &quot;<br>User Name: &quot; & userid
response.write &quot;<br>Password: &quot; & password
response.write &quot;<br>Authentication: &quot; & aut & &quot;<br>&quot;

Response.Expires = 0

On Error Resume Next
Dim SessionManager

'Create an Enterprise SessionManager.
Set SessionManager = Server.CreateObject(&quot;CrystalEnterprise.SessionMgr&quot;)

If Err.Number <> 0 then
Response.Write &quot;Couldn't create SessionManager&quot;
'Handle error here.
Else
Dim Sess
'Log the user onto Crystal Enterprise.
Set Sess = SessionManager.Logon(UserID, Password, APS, Aut)

'Check to see if logon failed.
If Err.Number <> 0 then


'If the logon failed show a message box with an error description.
''''Response.Write &quot;<SCRIPT language=&quot;&quot;javascript&quot;&quot;> &quot; & _
''''&quot; Alert (&quot;&quot;Sorry - you could not be logged on to &quot; & _
''''&quot;this server. Ensure that your user name and &quot; & _
''''&quot;password, as well as the APS name are correct. &quot; & _
''''&quot;&quot;&quot;);</SCRIPT>&quot;

'Redirect the user back to the logon page.
'Response.Redirect &quot;default2.csp&quot;
response.write &quot;<br>&quot; & err.description
Else
Dim IStore
Dim LogonTokenMgr

'Create the InfoStore object.
Set IStore = Sess.Service (&quot;&quot;, &quot;InfoStore&quot;)

'Store the InfoStore object in the session.
Session(&quot;IStore&quot;) = IStore

'Retrieve the LogonTokenManager.
Set LogonTokenMgr = Sess.LogonTokenMgr

'Session(&quot;IStore&quot;) = Sess.LogonTokenMgr

'Retrieve a Logon Token and store it in the user's cookie file for later use.
Response.Cookies(&quot;LogonToken&quot;) = LogonTokenMgr.CreateLogonToken(&quot;&quot;, 1, 100)

'Redirect the user to the site's home page.
Response.Redirect &quot;home.csp?FolderID=0&quot;
End If
End If
%>


Chris
DFW Crystal User Group
 
Yes, but what is the value of 'Aut'? (i.e. what is the value of aut that is posted to the page or requested in a querystring? It should be 'secEnterprise', not 'Enterprise' to use Enterprise authentication, otherwise you will get the error message that you describe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top