One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#!/usr/bin/env python | |
# victorvortex.py - A simple Python IRC bot | |
# Authors: mrtux and OldCoder | |
# License: CC BY-NC-SA 3.0 | |
# Revision: see git rev. | |
#--------------------------------------------------------------------- | |
# Suggestions. | |
# These are just suggestions: |
# Customize BASH PS1 prompt to show current GIT repository and branch. | |
# by Mike Stewart - http://MediaDoneRight.com | |
# SETUP CONSTANTS | |
# Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
# I don't remember where I found this. o_O | |
__git_ps1 () | |
{ | |
local b="$(git symbolic-ref HEAD 2>/dev/null)"; |
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
# /secure passphrase A-PASSWORD | |
# ---- Defaults ---- | |
/set irc.server_default.username "tracphil" | |
/set irc.server_default.nicks "tracphil, tracphil_" | |
/set irc.server_default.sasl_mechanism dh-blowfish | |
# ---- IRC Servers ---- | |
# Nick and auth settings for freenode | |
/server add freenode chat.freenode.net |
<?php | |
$ldap_dn = "cn=read-only-admin,dc=example,dc=com"; | |
$ldap_password = "password"; | |
$ldap_con = ldap_connect("ldap.forumsys.com"); | |
ldap_set_option($ldap_con, LDAP_OPT_PROTOCOL_VERSION, 3); | |
if(ldap_bind($ldap_con, $ldap_dn, $ldap_password)) { |
<?php | |
$ldap_dn = "cn=read-only-admin,dc=example,dc=com"; | |
$ldap_password = "password"; | |
$ldap_con = ldap_connect("ldap.forumsys.com"); | |
ldap_set_option($ldap_con, LDAP_OPT_PROTOCOL_VERSION, 3); | |
if(ldap_bind($ldap_con, $ldap_dn, $ldap_password)) { |
<?php | |
$ldap_dn = "uid=".$_POST["username"].",dc=example,dc=com"; | |
$ldap_password = $_POST["password"]; | |
$ldap_con = ldap_connect("ldap.forumsys.com"); | |
ldap_set_option($ldap_con, LDAP_OPT_PROTOCOL_VERSION, 3); | |
if(@ldap_bind($ldap_con,$ldap_dn,$ldap_password)) | |
echo "Authenticated"; |