Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Authentication with Joomla

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
tgentry



Joined: 28 Aug 2008
Posts: 2

PostPosted: Thu Aug 28, 2008 4:25 am    Post subject: Authentication with Joomla Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Aug 28, 2008 1:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
iunderwood



Joined: 23 Aug 2008
Posts: 114
Location: Leicester, MA

PostPosted: Fri Aug 29, 2008 1:46 am    Post subject: Reply with quote

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
View user's profile Send private message
tgentry



Joined: 28 Aug 2008
Posts: 2

PostPosted: Sat Aug 30, 2008 6:29 pm    Post subject: Joomla and Icecast Reply with quote

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
View user's profile Send private message
iunderwood



Joined: 23 Aug 2008
Posts: 114
Location: Leicester, MA

PostPosted: Mon Sep 01, 2008 4:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber