This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Authentication Script (passwd or mysql)

Old posts that have not been replied to for several years.
Locked
R
RaidenS
Voice
Posts: 2
Joined: Sat Dec 11, 2004 4:53 pm

Authentication Script (passwd or mysql)

Post by RaidenS »

Hi

I'm not asking any direct TCL Questions. I'm not so far yet. It's just a question about possibilities and maybe script wich are allready wandering around somewhere in the net.

I have a Webcommunity, with Users stored in a mysql db. Encrypted Password etc.
Now I have a IRC Chat too and want to protect it.

So now i'm looking for possibilites to authenticate them with the same user/passwd combination.

I see two ways:
a) Use a mysql module to compare the user and passwd entry in the database
b) Use a passwd file. I could add a user to this file when the user registers.

Now the main questions, are there any simple tcl scripts avaiabale? (i searched the forum and the scriptsides i know but didn't found something)

If not, what's the best way to start? (I have no real knowledge of tcl)

TIA
--
raiden
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

what do you mean by "I have a IRC Chat too and want to protect it."?

you run an IRC server and want only your registered webusers to be able to use it?

or you run just a channel and want only webusers to use it? or only webusers to have ops?
R
RaidenS
Voice
Posts: 2
Joined: Sat Dec 11, 2004 4:53 pm

Post by RaidenS »

I mean that i just run a channel on a irc server.

With "protect" i mean that i don't want users in there that are not members of the community.
(Ok, simplest thing would be to use a phpchat or something like that, but we have a lot of users who want to join from mobile devices and so irc is preferable)

We have all the users in a mysqlDB (that would be the "best" thing) but my knowledge of tcl is not allready good enough to handle this. So i thought of useing something like PAM Auth.

--
raiden
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you either set a channel key and let only your registered webusers to know it (but the key may of course leak to others) or you make the channel invite-only and set up a bot which would invite your registered webusers upon identifying
Locked