Welcome Guest, Not a member yet? Register   Sign In
New LDAP Library!
#54

[eluser]targee[/eluser]
I am somewhat reluctant to make a post to this forum since I am a CI baby newbee, but I have been using ldap authentication for a number of years within a PHP environment I wrote myself. My approach was somewhat different than I understand what is presented here. We are using a postgres db which we have setup with direct ldap authentication not password authentication. After we did that I setup a very basic user group called stdusr_group where all my users are members.

When my users login with their user name and password I check their authority in a two stage process. First I attempt to connect to the a user database using their user name and emcrypted pasword. After I have set the error_reporting to 0 allowing me to catch errors myself. If an error is thrown while attempting to connection I present the standard unable to login message. If they pass the connection phase I compare their user name and encrypted password with those on the user database/user table. If they have passed both tests I carry their user information and authorized boolean value an a session database/session table using the session_id as the primary key. Them I allow them the most basic of access in my application and tables using group rights. I have my menus generated per user rights etc on their home page.

One reason I used this approach I wanted to maintain user db rights through database rights groups and I wanted to use database triggers one for each table to keep a copy of the record before any changes were made and to use the current user function making those changes. I also have three additional fields in my history tables mod_user, mod_datetime and mod_action (C,U,D.). I found the postgres code triggers a easy and seamless way to monitor and maintain database activity.

Using this approach I didn't require a php classes to communicate with the ldap server but have the database server do the dirty work.

If I am posting the wrong information to the wrong forum I apologize but I just thought I would share my experiences and techniques so someone could benefit from them. Feel free to identify the weaknesses my design and approach as I am here to learn.



Messages In This Thread
New LDAP Library! - by El Forum - 11-14-2008, 01:42 PM
New LDAP Library! - by El Forum - 11-14-2008, 02:28 PM
New LDAP Library! - by El Forum - 11-14-2008, 03:22 PM
New LDAP Library! - by El Forum - 11-14-2008, 03:56 PM
New LDAP Library! - by El Forum - 11-14-2008, 04:43 PM
New LDAP Library! - by El Forum - 11-14-2008, 08:25 PM
New LDAP Library! - by El Forum - 11-14-2008, 11:52 PM
New LDAP Library! - by El Forum - 11-15-2008, 08:55 AM
New LDAP Library! - by El Forum - 11-15-2008, 05:40 PM
New LDAP Library! - by El Forum - 11-16-2008, 06:27 AM
New LDAP Library! - by El Forum - 11-16-2008, 05:07 PM
New LDAP Library! - by El Forum - 11-16-2008, 05:16 PM
New LDAP Library! - by El Forum - 11-17-2008, 08:48 AM
New LDAP Library! - by El Forum - 12-01-2008, 07:45 AM
New LDAP Library! - by El Forum - 12-18-2008, 05:04 PM
New LDAP Library! - by El Forum - 12-19-2008, 08:39 AM
New LDAP Library! - by El Forum - 12-19-2008, 08:43 AM
New LDAP Library! - by El Forum - 01-13-2009, 01:45 PM
New LDAP Library! - by El Forum - 01-13-2009, 02:35 PM
New LDAP Library! - by El Forum - 01-13-2009, 02:49 PM
New LDAP Library! - by El Forum - 01-13-2009, 03:07 PM
New LDAP Library! - by El Forum - 01-14-2009, 11:06 AM
New LDAP Library! - by El Forum - 01-26-2009, 10:00 AM
New LDAP Library! - by El Forum - 01-26-2009, 10:06 AM
New LDAP Library! - by El Forum - 01-26-2009, 10:19 AM
New LDAP Library! - by El Forum - 02-03-2009, 04:10 AM
New LDAP Library! - by El Forum - 02-03-2009, 02:37 PM
New LDAP Library! - by El Forum - 02-05-2009, 03:02 PM
New LDAP Library! - by El Forum - 02-09-2009, 01:14 PM
New LDAP Library! - by El Forum - 02-09-2009, 02:56 PM
New LDAP Library! - by El Forum - 03-13-2009, 03:41 PM
New LDAP Library! - by El Forum - 05-08-2009, 07:19 AM
New LDAP Library! - by El Forum - 05-21-2009, 04:06 PM
New LDAP Library! - by El Forum - 06-03-2009, 05:02 PM
New LDAP Library! - by El Forum - 06-04-2009, 06:00 AM
New LDAP Library! - by El Forum - 06-26-2009, 08:39 AM
New LDAP Library! - by El Forum - 07-06-2009, 03:59 PM
New LDAP Library! - by El Forum - 07-28-2009, 09:25 AM
New LDAP Library! - by El Forum - 07-28-2009, 09:33 AM
New LDAP Library! - by El Forum - 07-28-2009, 09:36 AM
New LDAP Library! - by El Forum - 07-28-2009, 02:31 PM
New LDAP Library! - by El Forum - 09-17-2009, 01:07 PM
New LDAP Library! - by El Forum - 02-23-2010, 08:35 AM
New LDAP Library! - by El Forum - 02-25-2010, 02:42 PM
New LDAP Library! - by El Forum - 02-25-2010, 02:57 PM
New LDAP Library! - by El Forum - 04-21-2010, 08:46 AM
New LDAP Library! - by El Forum - 04-21-2010, 09:53 AM
New LDAP Library! - by El Forum - 04-21-2010, 10:03 AM
New LDAP Library! - by El Forum - 04-21-2010, 10:19 AM
New LDAP Library! - by El Forum - 07-27-2010, 04:18 AM
New LDAP Library! - by El Forum - 08-25-2010, 07:42 AM
New LDAP Library! - by El Forum - 06-09-2011, 04:07 AM
New LDAP Library! - by El Forum - 01-26-2012, 03:51 PM
New LDAP Library! - by El Forum - 01-26-2012, 10:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB