AD Server authentication in Python

  • Status: Closed
  • Prize: $60
  • Entries Received: 3
  • Winner: developerstan

Contest Brief

Need to create a login page which will authenticate users based on the username and password from AD server. Also pull out the first name of the user based on username.

Recommended Skills

Employer Feedback

“Stan is a very professional and completes the work to the best of his ability. He responds immediately and solves any issues. He responds quickly and I would recommend him. Would surely hire him again!”

Profile image ShekharAgrawal15, United States.

Top entries from this contest

View More Entries

Public Clarification Board

  • ShekharAgrawal15
    Contest Holder
    • 5 years ago

    The code in python can look like this (It is just the base-You need to build it)

    from flask import Flask, redirect, request, render_template, jsonify
    import ldap

    app = Flask(__name__)

    @app.route('/login', methods=['GET', 'POST'])
    def login():
    error = None
    if request.method == 'POST':
    username = request.form['username']
    password = request.form['password']

    if request.form['username'] != '13326' or request.form['password'] != 'password':
    error = 'Invalid Credentials. Please try again.'
    else:
    return render_template('calendar.html')

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

    • 5 years ago
  • jjmutumi
    jjmutumi
    • 5 years ago

    What do you mean by AD server?

    • 5 years ago
    1. ShekharAgrawal15
      Contest Holder
      • 5 years ago

      AD-Active Directory

      • 5 years ago
    2. ShekharAgrawal15
      Contest Holder
      • 5 years ago

      You need to authenticate the username and password from the Active Directory server. I have the server's IP but you need to create a script that can work and later it can be tested with the server.

      • 5 years ago
  • peng72083
    peng72083
    • 5 years ago

    Hello
    I have full experience with Angular and Flask.
    I built insurance admin site and food delivery site, job matching site using angular and Flask, Node.js
    what kind of site you want?
    What about your server?
    Do you have design for frontend?

    I think we can discuss via chat.
    Please feel free to ping me at any time.
    Regards.

    Peng

    • 5 years ago
    1. ShekharAgrawal15
      Contest Holder
      • 5 years ago

      I have the server details.
      I need a simple login page where user enters his username and password and his credentials are verified from the AD server.

      • 5 years ago
    2. ShekharAgrawal15
      Contest Holder
      • 5 years ago

      Create a script and then submit it as an entry. That will help me to chat with you! Also, please ask any question that you may have.

      • 5 years ago
  • ShekharAgrawal15
    Contest Holder
    • 5 years ago

    The one who can write the code in Python and I can test that it is working will get the prize awarded. Keep in mind that I will have a lot of projects in the future so whoever can win this contest will win future projects as well.

    • 5 years ago

Show more comments

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!