![]() |
Codeigniter Application with LDAP Authentication - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Codeigniter Application with LDAP Authentication (/showthread.php?tid=1578) |
Codeigniter Application with LDAP Authentication - rameshfernandez - 03-23-2015 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 RE: Codeigniter Application with LDAP Authentication - sintakonte - 03-24-2015 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 ? RE: Codeigniter Application with LDAP Authentication - rameshfernandez - 03-24-2015 (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. RE: Codeigniter Application with LDAP Authentication - sintakonte - 03-24-2015 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.) |