WebSphere Portal Server - How to disable 'Sign Up' (PrepareEnrollment)

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > May 2004 > How to disable 'Sign Up' (PrepareEnrollment)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to disable 'Sign Up' (PrepareEnrollment)
rdetuinman@hotmail.com

2004-05-10, 5:40 pm

Hello all,

Is it possible to disable auto-registration for users? Ofcourse you can
hide the 'Sign Up'-Link in the Toolbar, but then it still is possible to
register a user by entering the URL manually.

Maybe it is possible to disable the PrepareEnrollment command?

We are using Portal v5 and i only want known LDAP users to log in. Else it
would be possible to add users to the LDAP via the PrepareEnrollment
command.

Thanks in advance.
Ricardo A. Ribeiro

2004-05-10, 5:40 pm

Try This,

Abstract
Perform the following steps to disable the self-registration function in WebSphere Portal.

Content
Stop the portal.
If you are using the default portal theme, continue with option (2a). Otherwise, if you are using Science, Engineering, Corporate, or any of your custom themes continue with option (2b).
Edit ToolBarInclude.jsp in <PortalServerRoot>/WPS.EAR/WPS.war/Themes/html/ folder.
Comment out the lines:

enroll button
<wps:if loggedIn="no">
<% String dt =
com.ibm.wps.puma.UserManager.instance().getDirectoryType();
if (dt==null)
{
dt = "";
}
if (!dt.equals("SSPM"))
{
%>
<% if (firstButton) { firstButton = false; } else { %> | <% } %>
<a class="wpsToolBarLink" href='<wps:url
command="PrepareEnrollment" home="public" reqid="no"/>'><wps:text key="link.enrollment" bundle="nls.engine"/></a>
<%
}
%>
</wps:if>

Edit the banner.jsp file located in <PortalServerRoot>/app/WPS.EAR/WPS.war/Themes/html/<ThemeName>/ folder.
Comment out the link to the enroll module, as shown here:

enroll button
<wps:if loggedIn="no">
<td valign="middle">
<a href='<wps:url command="PrepareEnrollment" home="public" reqid="no"/>'><img
src='<wps:urlFindInTheme file="nav_create_account.gif"/>'
alt='<wps:text key="link.enrollment" bundle="nls.engine"/>' border="0"
align="absmiddle" width="26" height="25" title='<wps:text
key="link.enrollment" bundle="nls.engine"/>'></a>
</td>
</wps:if>

Delete the contents of the <WebsphereAppserver>/temp directory.
Start WebSphere Portal.


for v5 the changes should be the same but the file paths are different

step1a <WSAS_ROOT>/installedApps/<host_name>/wps.ear/wps.war/themes/html
step1b

<WSAS_ROOT>/installedApps/<host_name>/wps.ear/wps.war/themes/html/<ThemeName>/

<rdetuinman@hotmail.com> escreveu na mensagem news:c7ln95$4kcg$1@news.boulder.ibm.com...

Hello all,

Is it possible to disable auto-registration for users? Ofcourse you can hide the 'Sign Up'-Link in the Toolbar, but then it still is possible to register a user by entering the URL manually.

Maybe it is possible to disable the PrepareEnrollment command?

We are using Portal v5 and i only want known LDAP users to log in. Else it would be possible to add users to the LDAP via the PrepareEnrollment command.

Thanks in advance.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com