Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8054 Posts in 1860 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)Anyone used custom user DB?
Pages: [1]   Go Down
Print
Author Topic: Anyone used custom user DB?  (Read 375 times)
0 Members and 1 Guest are viewing this topic.
Zim
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: April 02, 2004, 02:16:00 PM »

Has anyone used their own non-CS user database?

I could easily sacrifice much/all of the user interface management within CS (and instead use the same out of another tool).

Then, all I'd need CS to do is open the other DB, and verify that the login, pwd are a match, and I would assign a set of default permissions to all of those users.

So rather than rewrite a bunch of code inside CS, I think I could essentially just not use that part.

Suggestions?

Thanks,
Mike

Logged
Zim
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #1 on: April 10, 2004, 04:20:00 PM »

I'm hampered in this a bit b/c I simply am not a guy that thinks OO style  

But what I seem to see, using Data: umper, is that the entire user table is loaded in the User variable at all times (under permissions)?

I'm wondering how well this scales... ie. what I want is CS to user an external mySQL DB, that would contain username, pwd, and maybe a single digit access level, which would get translated into essentially add-event, self-approve.

The external DB (with its mechanisms) would help me enforce some things such as using real names, require real email addrs, etc... plus it only makes sense to share username/pwd info between web tools on the same site.

But how to do this, is not apparent to me yet... any ideas?

Mike

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 235

Please don't PM me. Post in the open forum.


WWW
« Reply #2 on: April 11, 2004, 01:23:00 PM »

** Has anyone used their own non-CS user database? **

I haven't heard of anyone but it may be possible.

** the entire user table is loaded in the User variable at all times? **

AFAIK, just the user's record in held in the User variable not the user whole table.

Dan O.

------------------

Logged
Zim
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #3 on: April 12, 2004, 12:47:00 PM »

I'm making some progress....

My current strategy is to create a dummy user with mini-Admin privs, ie. add event, approve/edit own.

I've modded User.pm so that if the username is not anonymous, and not my admin name, then it checks a mySQL DB of user/pwd data to validate.  

The challenge is then to maintain the CS placeholder username (to get each person the same privs), but to add in a field with the users real name.. ie. adding $User->{'fullname'}.

So far that works thru the log-in and first calendar view, but I think now its getting lost as this info is moved into Session variables.. so I need to add info to those, methinks.

Still working thru it, but making progress.

Will report when I have more working.

Oddly what I had found was that when I first loaded the calendar, all of my users were in the dump of $User.

<tr><td colspan="7"><pre>
<% use Data: umper; print Dumper($User); %>
</pre></td></tr>

but after logging in/out they were not. Shrug.


Mike

------------------

[This message has been edited by Zim (edited April 12, 2004).]

Logged
Pages: [1]   Go Up
Print
Jump to: