Jump to content

rayburke519

Members
  • Posts

    6
  • Joined

  • Last visited

rayburke519's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Anyone able to help me out with this LDAP stuff? Really need help trying to understand how to set it up.
  2. I have installed the question2answer faq site. Everything is working awesome, except, I can't figure out how to get the LDAP plugin working. I haven't had a lot of luck on the support pages from within the site. Wondering if anyone can help me with this. Main site addon's: http://question2answer.org/addons.php LDAP Login plugin: https://github.com/z...k/qa-ldap-login I followed the setup instructions, but when I try and login, I get "user not found". I think it might be something to do with the ldap config. That is something I am not familiar with as well - looking up the ou, o, dc etc info needed.
  3. Great, thank you VERY much PFMaBiSmAd. I will review these comments/suggestions and try them tonight/this coming week. I'll let you know how I make out. Ideally, I am after creating an simple, efficient CMS/KMS where I can post articles to a database, allow users to easily search them without a lot of noise or overhead. This is a project I am taking on myself, and would like to present it to my employer if i can get a solid, working template. Another part is being able to allow users to login to the site, using current LDAP or network credentials (likely a whole new topic/discussion). Again, appreciate the help, and I'll reply back when I have made these changes.
  4. On the index.php page (login page), I am seeing these messages along the top: Notice: Undefined index: username in /Applications/MAMP/htdocs/administrator/admin_check.php on line 3 Notice: Undefined index: admin in /Applications/MAMP/htdocs/administrator/admin_check.php on line 26 After enabling the error logging, this is what I am seeing: Fatal error: Call to undefined function session_register() in /Applications/MAMP/htdocs/administrator/admin_check.php on line 15
  5. Where would I inject this function check, Sanjib? Do I need a new logout.php file?
  6. Followed some great instructions on developphp.com (Building a custom CMS site). Here is a copy of the code/page. When I attempt to log in, I am getting a 500 error. Not sure what I missed out. Even looking over the source code, still throwing an error. <?php $error_msg = ""; if ($_POST['username']) { $username = $_POST['username']; $password = $_POST['password']; // Simple hard coded values for the correct username and password $admin = "admin"; $adminpass = "xxxxx"; // connect to mysql here if you store admin username and password in your database // This would be the prefered method of storing the values instead of hard coding them here into the script if (($username != $admin) || ($password != $adminpass)) { $error_msg = ': <font color="#FF0000">Your login information is incorrect</font>'; } else { session_register('admin'); $_SESSION['admin'] = $username; require_once "index.php"; exit(); } }// close if post username ?> <?php if ($_SESSION['admin'] != "admin") { echo '<h3>Only the administrator can view this page</h3><br /> <table width="340" border="0"> <form action="admin_check.php" method="post" target="_self"> <tr> <td colspan="2">Please Log In Here' . $error_msg . '</td> </tr> <tr> <td width="96">Username:</td> <td width="234"><input type="text" name="username" id="username" style="width:98%" /></td> </tr> <tr> <td>Password:</td> <td><input type="password" name="password" id="password" style="width:98%" /></td> </tr> <tr> <td colspan="2" align="center"><input type="submit" name="button" id="button" value="Log In Now" /></td> </tr> </form> </table> <br /> <br /> <br /> <a href="../">Or click here to head back to the homepage</a>'; exit(); } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.