Codeigniter Application with LDAP Authentication |
03-23-2015, 04:15 AM
(This post was last modified: 03-23-2015, 08:42 PM by rameshfernandez. Edit Reason: To upload sample code and stackoverflow link )
Without codeigniter i am able to connect to ldap_connect but in my codeigniter project i want to embed ldap connectivity also.
the following are the scenarios 1. If the username and email id exist in database then it is connected to ldap using ldap_connect() and get the windows login password and then validate.(Note: the users with username, mail id and windows login password) 2. if username and password exist in database it will be validated and loggedin.(the users with username and no windows login password or mail id) i did it without codeigniter but here i don't know how to use ldap Sample code: PHP Code: /******LDAP CONNECTIVITY STARTS HERE*********/ Your help is appreciated
I don't understand what you mean with
Quote: i don't know how to use ldap The question is: can you connect but not authenticate ?
(03-24-2015, 03:16 AM)sintakonte Wrote: I don't understand what you mean with All i want is to authenticate user by windows username and password in codeigniter. Suggest me a very simple way please. I tried Auth_Ldap library but it is very complex for me.
the thing is, this isn't a codeigniter problem
you can use the ldap_connect with CI and this is my question again can you connect but not authenticate ? remove the slashes in your code and see what happens PHP Code: if ($ldapbind) { and show me your CI Code (Controller, Models etc.) |
Welcome Guest, Not a member yet? Register Sign In |