| View previous topic :: View next topic |
| Author |
Message |
tgentry
Joined: 28 Aug 2008 Posts: 2
|
Posted: Thu Aug 28, 2008 4:25 am Post subject: Authentication with Joomla |
|
|
| I need to know how to get the action.php to understand the md5 encryption that joomla 1.5.6. uses. I have the tables setup to in the joomla user table and when I go to the icecastauth on my server and I login as admin i can see all the users and mounts fine. the users passwords are being seen in some type of md5 hash. But when I try to login with the password that I used in joomla it will not authenticate me. Do I need to add anything to the action.php to see and accept the password in the regular format? meaning if my login to joomla is test with a password of test joomla then encrypts the password to lets say ad456g. I can see the ad456g in the admin section of the icecastauth fine. But when I bring up the stream and it asks for user name and password I put in test with password test and it will not connect. It keeps bringing up the login again. Any help is appreciated |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Aug 28, 2008 1:40 pm Post subject: |
|
|
the box will be reappearing because it doesn't match the auth. If so then your script is not sending back the right header and that is probably because the username and passwords don't match correctly. You need debug from your script to see which path it is taking.
karl. |
|
| Back to top |
|
 |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Fri Aug 29, 2008 1:46 am Post subject: |
|
|
The better technique to follow is to take the UN/PW sent to the PHP file, and use whatever method Joomla uses to verify the credentials. It's quite likely you won't be able to make a direct comparison against the database.
For my XOOPS module, I take the UN/PW and run that against the member handler functions. I would be surprised if Joomla doesn't have something similar. _________________ ++I; |
|
| Back to top |
|
 |
tgentry
Joined: 28 Aug 2008 Posts: 2
|
Posted: Sat Aug 30, 2008 6:29 pm Post subject: Joomla and Icecast |
|
|
| Thanks for the replies. I could get the user name and password to work when I used the md5 hash password in its hash form. Thats whats confusing me. I have also left the same questions in the joomla forums but no reply there. I'm thinking on just giving up on the idea of trying to use the login and password all together as this for some strange reason seems to be difficult. As for the Xoops module I downloaded it and looked at its coding but couldn't see how I could integrate it with joomla. |
|
| Back to top |
|
 |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Mon Sep 01, 2008 4:29 am Post subject: |
|
|
If I knew how to convert it to a Jooma-friendly module, I'd consider giving it a go, but that's a little bit beyond my capabilities at the moment.
I think the function you'll be looking for is something that converts the password into a MD5 hash. I'm not sure if this can generate the has you need, but it might help:
http://us3.php.net/md5 _________________ ++I; |
|
| Back to top |
|
 |
|