Previous Thread
Next Thread
Print Thread
Hop To
#32303 02/28/2002 7:15 AM
Anonymous
Unregistered
Anonymous
Unregistered
How can I integrate our own user authentication of our website instead of ubbthreads'. Like when a user that have already logged-in from the main page enters the ubbthreads area theyre already logged-in and no longer have to login again on ubbthread. Just like a centralized authentication.

ngets <img border="0" title="" alt="[Embarrassed]" src="images/icons/blush.gif" /> )

#32304 02/28/2002 10:24 AM
Anonymous
Unregistered
Anonymous
Unregistered
Doing that via LDAP is a good question and a subject that I am researching.

Can you tell me a bit more about your current authentication schema? Area you looking to do this on an intranet where you already have an LDAP Server running which authenticates other applications written in PhP?

Regards,

Brett Harris
Infopop Corporation

#32305 02/28/2002 12:52 PM
Anonymous
Unregistered
Anonymous
Unregistered
We have this cantralized authentication for our subscribers wherein a user can use his login name on other services like webbased-email, ftp, game site, etc.

As of now, authentication on our website is done using cgi. This cgi creates a cookie for the client. Im planning on doing a new authentication method using php that will query our ldap server, and also store a cookie that ubbthread could also use.

Any suggestions? <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

ngets

#32306 03/01/2002 4:09 AM
Anonymous
Unregistered
Anonymous
Unregistered
That would be the simplest method - for your existing users I would simply to "INSERT" statements into the database to register them.

Then I would set the cookies correctly to log them in or set the sessions up.

Querying off the LDAP server in a 'live' environment will be a neat trick but I have yet to do it and have not even heard of it being done.

It's one of my 'pet projects' but I am ways from getting it off the ground.

Making PhP connect to and list out a Public LDAP Server will be a good start but most of the samples I have not seen work correctly. Still working on it <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" />

Regards,

Brett Harris
Infopop Corporation

#32307 03/01/2002 6:52 PM
Anonymous
Unregistered
Anonymous
Unregistered
Hi there,

we're looking to do the same thing.

I'm in the midst of upgrading our sites to a php/mysql based content management system that I will use to "wrap" around UBBT.

it will be running an LDAP server so I would like to not have to require the users to log in again.

I would also like the live link to the LDAP server and I think its something that Infopop should look at seriously because it allows UBBT to be integrated more easily in multi-application website environments which is what pretty much all of us are working with these days.

I would be OK with the cookie method you described, Brett. since I'm not a programmer could you please outline in more detail how I could get the website to provide a cookie that is compatible with UBBT?

I seem to recall that they have to physically login to our website each time but once in there I would like them not to have to re-login to UBBT.

also how do we go about synchronizing the username and password information so that if a new user creates an account on our website the information can be passed to UBBT?

I'm OK with duplicate information for now but I would like a more elegant solution in the near future where everything just queries the LDAP server.

thanks,

KC

Kurt Carter
Florist Systems
"The Business and Technology Partner of the Local Florist"

PS. I just read Rick's response to somebody else on this same subject on january 14th I believe.

it was pretty clear. full LDAP integration is not going to happen any time soon because it would necessitate a total rewrite. oh well, hopefully someday. but at least a level of "cookie integration" would be great in the interim.

[This message was edited by Kurt Carter on 01 Mar 02 at 03:07 PM.]

[This message was edited by Kurt Carter on 01 Mar 02 at 03:08 PM.]

#32308 03/01/2002 7:10 PM
Anonymous
Unregistered
Anonymous
Unregistered
Do you have some php code samples and a Public LDAP server to connect to so that we can at least pull some user data to have a play with?

That is where I am having trouble right now - a criminal lack of useful public data which I can use to even parse out and pass forward...

Regards,

Brett Harris
Infopop Corporation

#32309 03/01/2002 8:12 PM
Anonymous
Unregistered
Anonymous
Unregistered
sorry none yet.

I am still in the process of implementing it.

its the ldap server that comes with redhat v7.1 and the nadminstudio content management application.

cheers,

KC

Kurt Carter
Florist Systems
"The Business and Technology Partner of the Local Florist"

#32310 03/02/2002 10:20 AM
Anonymous
Unregistered
Anonymous
Unregistered
OOOoooooohhhhhh - gotcha.. Thank you - I will have a talk with Don and some of the other network admins here and see if we can get something worked out and cooked up. Please keep in mind that this is most likely not going to happen anytime soon and is a total 'pet project' which means that I work on it when I have a few minutes here and there.

Regards,

Brett Harris
Infopop Corporation

#32311 03/05/2002 11:59 PM
Anonymous
Unregistered
Anonymous
Unregistered
How about implementing it WebCrossing style?

ngets <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

#32312 03/06/2002 12:50 AM
Anonymous
Unregistered
Anonymous
Unregistered
works for me.

nifty way to do it.

KC

Kurt Carter
Florist Systems
"The Business and Technology Partner of the Local Florist"

#32313 03/11/2002 5:45 AM
Anonymous
Unregistered
Anonymous
Unregistered
im getting closer and closer into this. LOL

- I edited adduser.php so that it will automatically add users that have already logged in in the main page and is not yet existing in the ubbt.

- Changed the "new user" link to our own registration page.

- Changed the "edit personal info" link in the "my home" so it points to our "change profile" page.

ngets <img border="0" title="" alt="[Big Grin]" src="images/icons/grin.gif" />

#32314 03/13/2002 1:55 AM
Anonymous
Unregistered
Anonymous
Unregistered
Got the ldap part to work now. All I need now is to auto add existing users once they enter ubbt.

I need some help on displaying "new PM messages" on our homepage once the user has logged-in.

ngets <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

#32315 03/13/2002 1:18 PM
Anonymous
Unregistered
Anonymous
Unregistered
</font><blockquote><font size="1" face="">quote:</font><hr /><font size="" face="">Originally posted by ngets:
Got the ldap part to work now. All I need now is to auto add existing users once they enter ubbt.

I need some help on displaying "new PM messages" on our homepage once the user has logged-in.

ngets <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" /> </font><hr /></blockquote><font size="" face="">wow, ngets.

I'm impressed.

would you be willing to share your code or instructions on how to make it work?

I think I've been following what you've been saying but I want to be able to duplicate it myself.

I will be setting my ldap server and website authentication system next week so I plan to get right on this.

if your scenario works, ie. using ldap server to authenticate people on your website and then UBBT is able to use this info, this would be a pretty significant advancement for UBBT in portal-type environments.

KC

Kurt Carter
Florist Systems
"The Business and Technology Partner of the Local Florist"

#32316 03/15/2002 1:34 AM
Anonymous
Unregistered
Anonymous
Unregistered
HELPPP!!! <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

In "ubbt.inc.php" where should I put the scripts that will check if the user exists on ubbt db.


------some scripts from adduser.php-------

// --------------------------------------------
// Check to make sure the user is in ubbt db
$Username_q = addslashes($Username);
$query = "
SELECT U_Username
FROM w3t_Users
WHERE U_Username = '$Username_q'
";
$sth = $dbh -> do_query($query);
list ($check) = $dbh -> fetch_array($sth);
$dbh -> finish_sth($sth);

// If sql returned a row then the user is already in ubbt db.
if( $check ) {
// go to main index
} else {
// adduser
}

------scripts from adduser.php-------


ngets <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

#32317 03/15/2002 2:08 AM
Anonymous
Unregistered
Anonymous
Unregistered
</font><blockquote><font size="1" face="">quote:</font><hr /><font size="" face="">Originally posted by Kurt Carter:

would you be willing to share your code or instructions on how to make it work?

I think I've been following what you've been saying but I want to be able to duplicate it myself.

I will be setting my ldap server and website authentication system next week so I plan to get right on this.

if your scenario works, ie. using ldap server to authenticate people on your website and then UBBT is able to use this info, this would be a pretty significant advancement for UBBT in portal-type environments.

</font><hr /></blockquote><font size="" face="">Well the first thing I did was to replace the random password generation and password encryption (adduser.php, changebasic.php) of ubbt to our own password generation and encryption so that it would be the same with our LDAP server. Then I added some scripts on our login/verify scripts to create the $w3t_myname and $w3t_mypass variables.

To test it. Coz I dont have yet the scripts to autoadd validated users, I then registered on ubbt using username/password that exist on our LDAP. (Now ubbt uses the same password encryption as that of our LDAP.) Then I logged out from ubbt. I then go to our main login page and after validation I entered ubbt and voila! IT WORKED! (apache web server)! LOL.

ngets <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
0 members (), 396 guests, and 110 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)