Skip to content

Commit

Permalink
Edited ldap for all students
Browse files Browse the repository at this point in the history
  • Loading branch information
prakhar1989 committed Aug 10, 2012
1 parent 2c295e3 commit 6b74929
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.py
Expand Up @@ -7,7 +7,7 @@ class ProductionConfig(Config):
SQLALCHEMY_DATABASE_URI = 'mysql://root:prakhar@localhost/voting_app'

class DevelopmentConfig(Config):
DEBUG = True
DEBUG = False
USERNAME = 'admin'
PASSWORD = 'admin'
ADMIN_COUPON = 'admin'
Expand Down
2 changes: 1 addition & 1 deletion lib/ldap_helper.py
Expand Up @@ -8,7 +8,7 @@
__license__ = "Python"

import ldap, sys
base_dn = "ou=2013,ou=Student,ou=Person,dc=iimcal,dc=ac,dc=in"
base_dn = "ou=Student,ou=Person,dc=iimcal,dc=ac,dc=in"
searchScope = ldap.SCOPE_SUBTREE

def connect_ldap():
Expand Down
3 changes: 2 additions & 1 deletion main.py
Expand Up @@ -339,5 +339,6 @@ def submit_votes():
db.session.commit()
return jsonify(status="Votes successfully added")


if __name__ == "__main__":
app.run()
app.run(host='0.0.0.0')

0 comments on commit 6b74929

Please sign in to comment.