pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Servers24 Network <servers24@gmail.com>
To: Brew <brew@themode.com>
Cc: pgsql-php@postgresql.org
Subject: Re: PgSQL and integration between 2 PHP programs and a Java program
Date: Thu, 9 Nov 2006 21:33:15 +0330
Message-ID: <7b872b430611091003q10f48coee46572e51c6f6e3@mail.gmail.com> (raw)
In-Reply-To: <1d7288990611090702w2b93e727qc2447fc5bef42fe7@mail.gmail.com>
References: <7b872b430611090218k55fc4cf3kf1fc83f0dccdebf2@mail.gmail.com>
	<1d7288990611090702w2b93e727qc2447fc5bef42fe7@mail.gmail.com>

Hi Brew,

Well this is a new project and we will import our users to this system after
the project is done.
yes, the same usernames in different applications are the same user and they
should be able to login with their single username and password in each
application. From those applications I'm going to use, half has built-in
PgSQL capabilities and half have MySQL as their databases.
I also have CAS ( Centeral Authentication Service ) in mind for SSO ( Single
Sign On ). They also have a phpCAS class that authenticates the users
against the CAS server and this way the user won't need to login again in
each application as phpCAS will check their ticket to see if they're logged
in or not.
Also I can do the project in another way, not using PgSQL and using their
native databases. This way I will have duplication of data in each
application as each application will store its username & password in its
own database. But a modification should be done in all the applications to
prevent the users from signing up and editing their profile inside the
application, and then write a central signup & profile editing section where
users can update their passwords for example, and this central profile
editing will update the password stored in all databased ( suppose 10
databases ! ).
But I think this way is really silly :( As it will cause the server to
handle too many queries!
This was the description of my project. If anyone have a better solution
please let me know. I also have researched about using LDAP as the main DB
server but seems it can only be used as the CAS and not the main DB for
applications as it's main use is as a directory and can not be used in a
high volume of changing data environment. Also very much modification should
be done in each application to be able to talk to LDAP server!!
Also I have another question : do I need to edit MySQL queries very much in
my PHP applications to interact with a PgSQL or not? Because most of the
queries are the same and maybe very few should be changed ( as far as I
know! ).


-- 

Warm Regards,
Amir



On 11/9/06, Brew <brew@themode.com> wrote:
>
> Amir......
>
> It seems to me you have greater issues than simply combining the three
> username and password tables!!!
>
> What if there are existing users on the three different systems with the
> same user name?  Are they garanteed to be the same person?  Maybe so, if
> they have the same password, but what will you do if they have different
> passwords?
>
> But beyond that, from what you say, you have to convert three different
> systems from whatever database programs you are using now to postgreSQL.
> The current databases are doing more than just keeping track of users and
> passwords, right?  Possibly you plan to keep the existing database program
> and just use postgreSQL to log in?
>
> And do you hope your users will log in once and go back and forth between
> your aplications without logging in again, or not?
>
> At any rate, unless the applications are very simple, there is a lot more
> work to be done than simply joining the three password tables together!!!!!
>
> brew
>
> On 11/9/06, Servers24 Network <servers24@gmail.com> wrote:
> >
> > Hi,
> >
> > I'm a newby so please bare with me :
> >
> > I want to integrate 2 PHP scripts and a Java program that all have the
> > capability of using PgSQL as their databases.
> > The point is that all the programs have their own DB and table
> > structure.
> > What I want to do is to have a single DB for all of them and have them
> > authenticate the users somehow that a registered user in PHP script can
> > login to Java program too!
> > suppose that PHP1 scripts have a table called members with 2 fields
> > "username" and "password". PHP2 has its own table called logins and have 2
> > fields "login_name" & "login_password". and my Java program have a table
> > called profiles with "plogin" and "ppass". suppose that the password field
> > in all the programs are MD5. Now I want to integrate them. I have read some
> > PgSQL help books and it seems that there are many options that PgSQL offers
> > for this, like inheritance, views and join. but I don't know exactly what to
> > do. Can anyone help please?
> >
>
>
> --
>
> Strange Brew (brew@theMode.com)
>
> Check out my Stock Option website http://www.callpix.com
> and my Musicians Free Classified http://www.TheMode.com<http://www.themode.com/;

view thread (11+ messages)  latest in thread

Message-ID: <7b872b430611091003q10f48coee46572e51c6f6e3@mail.gmail.com>
Permalink:  ../7b872b430611091003q10f48coee46572e51c6f6e3@mail.gmail.com/
Also on:    postgresql.org/message-id/7b872b430611091003q10f48coee46572e51c6f6e3@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: servers24@gmail.com, brew@themode.com
  Subject: Re: PgSQL and integration between 2 PHP programs and a Java program
  In-Reply-To: <7b872b430611091003q10f48coee46572e51c6f6e3@mail.gmail.com>
  References: <7b872b430611090218k55fc4cf3kf1fc83f0dccdebf2@mail.gmail.com> <1d7288990611090702w2b93e727qc2447fc5bef42fe7@mail.gmail.com> <7b872b430611091003q10f48coee46572e51c6f6e3@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox