Giter VIP home page Giter VIP logo

ldapuserui's Introduction

LDAP UserUI

一个用户身份管理工具,使用Flask-User框架,LDAP作为DbAdapter,实现了注册、登录、修改密码、找回密码、用户信息编辑等功能。

配置

配置文件在LDAPUserUI/config.py

  • LDAP_SERVER LDAP的服务器地址
  • LDAP_ADMIN_DN,LDAP_ADMIN_PASSWORD LDAP中管理员的账号名和密码,本程序将使用该账号完成用户登录、注册的功能
  • LDAP_BASE_DN 本程序使用在此dn的单层子entries中的条目作为用户,用户名即子entrycn 一个有效的用户dn cn=test,<BASE_DN>
  • LDAP_PREFERRED_HASH_METHOD 设置用户密码时使用的hash方法,仅支持md5,sha,sha256,sha384,sha512,同样的,只有LDAP系统entry的密码hash方法在这里出现的才可以通过本程序登录,不支持明文密码(clear)

用户模型(schema:inetOrgPerson)

  • username,即dn
  • email,即mail
  • displayName,即displayName,会被默认填充为username
  • password,即userPassword

sn会被默认填充为displayName,usernameemail均唯一。

其他建议

后续开发中会完成LDAP系统中的uniqueMember,MemberOf属性与Flask-User中的Roles的绑定,建议下设两个ou分别为PeopleGroups,并将LDAP_BASE_DN设为ou=People,dn...

ldapuserui's People

Contributors

heymind avatar

Watchers

James Cloos avatar

Forkers

eggitayi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.