Rahil Hurzuk

Greenhorn
+ Follow
since Dec 28, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Rahil Hurzuk

Hi guys

SInce there was no reply so I thought of just ellaborating on my question.

I want to implement Single Sign On feature for my multiple apps.
These multiple apps use different technologies

app1 ) PHP(apache) & PostgreSQL
app2 ) Python(zoneapp) & ZoDB
app3 ) ASP & SQLServer 2k

All of these apps currently hav user management system in the DB

I want to centralize this user management to OpenLDAP & have a single sign on which will enable me to login in all the 3 apps the moment I log in once

Can someone post some leads where i can find help to acheive the same

Rgrds
Rahil
19 years ago
Hi All

Here is what I want to do by reading all the posts on LDAP in this forum.

We currently have 4 apps (each with its own proprietary authentication & authorisation system)
Platform : REDHAT LINUX

We plan to use OPEN LDAP. This will be our centralized user management system.
Now say I create around 250 users in this OPEN LDAP. How do I map these open ldap users with the ones proprietary to the individual apps which we have.

I want to implement a Single Sign on sort of feature.

A particular user who logs in get authenticated & authorised by open LDAP & then depending upon his priviliges he/she is able to access the other individual applications.

WHere can I find some docs/tutorials which will give me info on the above


Thanks
RAHIL
19 years ago
Hi All

I have now around 4-5 yrs of experience in Java & J2ee. My experience entails mostly in coding & very limited in designing apps.

I have completed SCJP, SCWCD & SCBCD & now want to pursue SCEA.

What should i opt for SCJD or SCEA. Kindly advice

Does SCEA require more expereince in designing J2ee apps

Thanks
Rahil
Hi All

Forgive me if this question sounds frivolous to you OO gurus.

In Java say I have 2 classes (father & mother)

Now I want 2 create a child class which has all the functionalities of both the parent classes
As Java does not support multiple inheritance how can we get around this problem

Rgrds
Rahil
Hi All


A newbie question

Say if I have a String objects

String s = "nothing special"; //line1
s = s.toUpperCase(); //line2

Now the s object reference in line2 is a new one & different from the 1 created initially at line1 as Strings are immutable objects

My question is what happens to the previous String object (s) in this case

Do respond

Rgrds

Rahil
20 years ago
Hi

So far from my reading of EJB I have gathered that we cannot use a Bean Managed Transaction (BMT) with Entity Beans & Entity Beans strictly have to be CMT

Can someone explain why it has to be that way i.e . Why cannot we have Entity beans with BMT

Rgrds
Rahil
Hi All

I am trying out struts example from the Struts Alive available for free download at TheServerSide.com

I am facing some problem accessing the database. I am using Tomcat5.0 & also have the commons-dbcp & commons-pool jar in the appropriate classpath.
I am using the HSQLDB as given in the book.


here is the db code for your perusal. Could somebody point where I am going wrong.


struts-config.xml
-----------------

<data-sources>
<data-source
type="org.apache.commons.dbcp.BasicDataSource"
key="userDB">
<set-property property="driverClassName"
value="org.hsqldb.jdbcDriver" />
<set-property property="url"
value="jdbc:hsqldb:c:/strutsTutorial/db" />
<set-property property="username" value="sa" />
<set-property property="password" value="" />
</data-source>
</data-sources>


build.xml
---------
<target name="builddb"
description="builds the database tables">
<sql driver="org.hsqldb.jdbcDriver"
userid="sa"
password=""
url="jdbc:hsqldb:c:/strutsTutorial/db">
<classpath>
<pathelement
path="C:/tools/hsqldb/lib/hsqldb.jar"/>
</classpath>
CREATE TABLE USER(
EMAIL VARCHAR(80),
FIRST_NAME VARCHAR(80),
LAST_NAME VARCHAR(80),
PASSWORD VARCHAR(11),
PHONE VARCHAR(11),
FAX VARCHAR(11),
CONSTRAINT USER_PK PRIMARY KEY
(EMAIL)
);
</sql>
</target>


Action class
-------------
import java.sql.Connection;
import javax.sql.DataSource;
import java.sql.PreparedStatement;


public class UserRegistrationAction extends Action {

static Category cat = Category.getInstance( UserRegistrationAction.class.getName());


public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response)
throws Exception {

DataSource dataSource =getDataSource(request);
Connection conn = dataSource.getConnection();
UserRegistrationForm userForm =(UserRegistrationForm) form;

----------
some more code
----------


try{
PreparedStatement statement = conn.prepareStatement(
"insert into USER " +
"(EMAIL, FIRST_NAME, LAST_NAME, PASSWORD, PHONE, FAX)" +
" values (?,?,?,?,?,?)");
statement.setString(1,userForm.getEmail());
statement.setString(2,userForm.getFirstName());
statement.setString(3,userForm.getLastName());
statement.setString(4,userForm.getPassword());
statement.setString(5,userForm.getPhone());
statement.setString(6,userForm.getFax());
statement.executeUpdate();
}finally{
conn.close();
}


return mapping.findForward("success");
}
}

The error which I get on the browser

----------------------------------------------------------------------------

HTTP Status 404 - Servlet action is not available

type Status report

message Servlet action is not available

description The requested resource (Servlet action is not available) is not available.


Apache Tomcat/5.0.28

----------------------------------------------------------------------------

The moment i remove the database tags from the struts-config.xml & the db code from Action class everything works fine

Kindly respond

Rgrds
RAHIL
20 years ago